Nothing Special   »   [go: up one dir, main page]

CN118379448A - Method for generating three-dimensional coordinates of target area - Google Patents

Method for generating three-dimensional coordinates of target area Download PDF

Info

Publication number
CN118379448A
CN118379448A CN202410484670.9A CN202410484670A CN118379448A CN 118379448 A CN118379448 A CN 118379448A CN 202410484670 A CN202410484670 A CN 202410484670A CN 118379448 A CN118379448 A CN 118379448A
Authority
CN
China
Prior art keywords
terrain model
target area
software
dimensional coordinates
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410484670.9A
Other languages
Chinese (zh)
Other versions
CN118379448B (en
Inventor
李秀君
李文纲
田兴
代忠权
张斌
陈斌
王高辉
刘威
毕伟
冯立
刘国亮
张超彦
秦跟虎
任志刚
何鹏
解备战
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Railway First Engineering Group Co Ltd
Fifth Engineering Co Ltd of China Railway First Engineering Group Co Ltd
Original Assignee
China Railway First Engineering Group Co Ltd
Fifth Engineering Co Ltd of China Railway First Engineering Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Railway First Engineering Group Co Ltd, Fifth Engineering Co Ltd of China Railway First Engineering Group Co Ltd filed Critical China Railway First Engineering Group Co Ltd
Priority to CN202410484670.9A priority Critical patent/CN118379448B/en
Priority claimed from CN202410484670.9A external-priority patent/CN118379448B/en
Publication of CN118379448A publication Critical patent/CN118379448A/en
Application granted granted Critical
Publication of CN118379448B publication Critical patent/CN118379448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A method for generating three-dimensional coordinates of a target area relates to the technical field of computers. In the method, a first terrain model of a target area is acquired from a geospatial data cloud; preprocessing the first terrain model through first software to generate a second terrain model; converting the format of the second terrain model through second software to obtain a third terrain model; and processing third topographic data through third software to generate three-dimensional coordinates of the target area. By implementing the technical scheme provided by the application, the accuracy and the efficiency of acquiring the three-dimensional coordinates of the target area can be improved.

Description

一种用于生成目标区域三维坐标的方法A method for generating three-dimensional coordinates of a target area

技术领域Technical Field

本申请涉及计算机技术领域,具体涉及一种用于生成目标区域三维坐标的方法。The present application relates to the field of computer technology, and in particular to a method for generating three-dimensional coordinates of a target area.

背景技术Background technique

现有技术中,对于全球各个地区的三维坐标数据,大多采用人工勘察的方式,由于勘察的地区大多处于野外或人烟稀少的地区,对于勘察人员来说存在一定的危险性和不稳定性,而且由于是人工对地形的三维坐标数据进行采集,导致了部分区域地形的三维坐标数据不完整,进而使得到的三维坐标数据不准确,且采集的效率不高。In the prior art, the three-dimensional coordinate data of various regions in the world are mostly obtained by manual survey. Since the surveyed areas are mostly in the wild or sparsely populated areas, there are certain risks and instability for the surveyors. In addition, since the three-dimensional coordinate data of the terrain is collected manually, the three-dimensional coordinate data of the terrain in some areas is incomplete, which makes the obtained three-dimensional coordinate data inaccurate and the collection efficiency is low.

因此,如何提高获取三维坐标数据的准确性和效率,成为需要解决的问题。Therefore, how to improve the accuracy and efficiency of acquiring three-dimensional coordinate data becomes a problem that needs to be solved.

发明内容Summary of the invention

本申请提供了一种用于生成目标区域三维坐标的方法,可以提高获取目标区域三维坐标的准确性和效率。The present application provides a method for generating three-dimensional coordinates of a target area, which can improve the accuracy and efficiency of obtaining the three-dimensional coordinates of the target area.

第一方面,本申请提供了一种用于生成目标区域三维坐标的方法,包括从地理空间数据云中获取目标区域的第一地形模型;通过第一软件对所述第一地形模型进行预处理,生成第二地形模型;通过第二软件对第二地形模型的进行格式转换,得到第三地形模型;通过第三软件对第三地形模型进行处理,生成目标区域的三维坐标。In a first aspect, the present application provides a method for generating three-dimensional coordinates of a target area, comprising obtaining a first terrain model of the target area from a geospatial data cloud; preprocessing the first terrain model through a first software to generate a second terrain model; converting the format of the second terrain model through a second software to obtain a third terrain model; and processing the third terrain model through a third software to generate the three-dimensional coordinates of the target area.

本申请实施例提供的一种用于生成目标区域三维坐标的方法,根据从地理空间数据云中获取的目标区域的地形模型转换为目标区域的三维坐标,与现有技术中人工勘察的手段比较,由于地理空间数据云中的目标区域的地形模型数据是卫星采集得到的,进而提高了获得目标区域三维数据的完整性和准确性,同时,由于不需要人工勘测,提高了勘察人员的安全性并提高了获取地区三维坐标点的效率。进一步的,由于地理空间数据云中包括全球各个地区的地形模型数据,进而通过本申请提供的方法,可以获取全球任何地区的三维坐标数据,进而提高了获取三维坐标数据的范围。The embodiment of the present application provides a method for generating three-dimensional coordinates of a target area, which is converted into three-dimensional coordinates of the target area based on the terrain model of the target area obtained from the geospatial data cloud. Compared with the manual survey method in the prior art, since the terrain model data of the target area in the geospatial data cloud is acquired by satellite, the integrity and accuracy of the three-dimensional data of the target area are improved. At the same time, since no manual survey is required, the safety of the surveyors is improved and the efficiency of obtaining three-dimensional coordinate points of the region is improved. Furthermore, since the geospatial data cloud includes terrain model data of various regions in the world, the three-dimensional coordinate data of any region in the world can be obtained through the method provided by the present application, thereby increasing the scope of obtaining three-dimensional coordinate data.

在一种可能的实现方式中,基于目标区域的预设范围,通过第一软件对第一地形模型进行裁剪,生成第四地形模型;通过第一软件对第四地形模型进行格式转换,得到第二地形模型。In a possible implementation, based on a preset range of the target area, the first terrain model is clipped by the first software to generate a fourth terrain model; and the format of the fourth terrain model is converted by the first software to obtain the second terrain model.

通过采用上述技术方案,通过第一软件对第一地形模型按照目标区域的预设范围进行裁剪和格式转换,可以提高获得的第二模型的准确性。By adopting the above technical solution, the accuracy of the obtained second model can be improved by cutting and converting the format of the first terrain model according to the preset range of the target area through the first software.

在一种可能的实现方式中,通过第一软件,对第一地形模型进行缩放,判断缩放后的第一地形模型是否在目标区域的预设范围;当缩放后的第一地形模型在目标区域的预设范围时,则对缩放后的第一地形模型进行裁剪,生成第四地形模型。In a possible implementation, the first terrain model is scaled by the first software to determine whether the scaled first terrain model is within a preset range of the target area; when the scaled first terrain model is within the preset range of the target area, the scaled first terrain model is cropped to generate a fourth terrain model.

通过采用上述技术方案,通过判断缩放后的第一地形模型是否在目标的预设范围之后,在对第一地形模型进行裁剪,提高了裁剪的精确性。By adopting the above technical solution, by judging whether the scaled first terrain model is behind the preset range of the target, the first terrain model is clipped, thereby improving the accuracy of clipping.

在一种可能的实现方式中,通过第四软件对第三地形模型进行格式转换,生成格式转换后的第三地形模型;通过第三软件对所述格式转换后的第三地形模型进行处理,生成目标区域的三维坐标。In a possible implementation, the third terrain model is converted into a format by a fourth software to generate a third terrain model after the conversion; and the third terrain model after the conversion is processed by a third software to generate three-dimensional coordinates of the target area.

通过采用上述技术方案,能够提高生成目标区域的三维坐标的准确性。By adopting the above technical solution, the accuracy of generating the three-dimensional coordinates of the target area can be improved.

在一种可能的实现方式中,通过第三软件将格式转换后的第三地形模型转换为几何形体;获取几何形体的第一三维坐标;将几何形体的第一三维坐标确定为目标区域的三维坐标。In a possible implementation, the format-converted third terrain model is converted into a geometric shape by a third software; the first three-dimensional coordinates of the geometric shape are obtained; and the first three-dimensional coordinates of the geometric shape are determined as the three-dimensional coordinates of the target area.

通过采用上述技术方案,将格式转换后的第三地形模型转换为几何形体,能够获取目标区域的三维坐标。By adopting the above technical solution, the third terrain model after format conversion is converted into a geometric shape, so that the three-dimensional coordinates of the target area can be obtained.

在一种可能的实现方式中,获取几何形体的第二三维坐标,几何形体的第二三维坐标为二维数组;通过第三软件将几何形体的第二三维坐标转换为几何形体的第一三维坐标,几何形体的第一三维坐标为一维数组。In one possible implementation, the second three-dimensional coordinates of the geometric shape are obtained, and the second three-dimensional coordinates of the geometric shape are a two-dimensional array; the second three-dimensional coordinates of the geometric shape are converted into the first three-dimensional coordinates of the geometric shape by third software, and the first three-dimensional coordinates of the geometric shape are a one-dimensional array.

通过采用上述技术方案,将几何形体的二维数组的第二三维坐标转换为一维数组三维坐标,能够提高目标区域三维坐标的准确性。By adopting the above technical solution, the second three-dimensional coordinates of the two-dimensional array of the geometric shape are converted into three-dimensional coordinates of a one-dimensional array, so that the accuracy of the three-dimensional coordinates of the target area can be improved.

在一种可能的实现方式中,通过第五软件将目标区域的三维坐标转换成第五地形模型,所述第五地形模型为BIM模型。In a possible implementation manner, the three-dimensional coordinates of the target area are converted into a fifth terrain model by fifth software, and the fifth terrain model is a BIM model.

第二方面,本申请提供了用于生成目标区域三维坐标的装置,该装置包括:In a second aspect, the present application provides a device for generating three-dimensional coordinates of a target area, the device comprising:

获取模块,用于从地理空间数据云中获取目标区域的第一地形模型;预处理模块,用于通过第一软件对第一地形模型进行预处理,生成第二地形模型;格式转换模块,用于通过第二软件对第二地形模型进行格式转换,得到第三地形模型;处理模块;用于通过第三软件对第三地形模型进行处理,生成目标区域的三维坐标。An acquisition module is used to acquire a first terrain model of a target area from a geospatial data cloud; a preprocessing module is used to preprocess the first terrain model through a first software to generate a second terrain model; a format conversion module is used to convert the format of the second terrain model through a second software to obtain a third terrain model; a processing module is used to process the third terrain model through a third software to generate three-dimensional coordinates of the target area.

在一种可能的是实现方式中,预处理模块还包括缩放模块,用于通过第一软件第一地形模型进行缩放,判断缩放后的第一地形模型是否在目标区域的预设范围。In a possible implementation, the preprocessing module further includes a scaling module, which is used to scale the first terrain model through the first software, and determine whether the scaled first terrain model is within a preset range of the target area.

在一种可能的实现方式中,预处理模块还包括裁剪模块,用于当缩放后的第一地形模型在目标区域的预设范围时,则对缩放后的第一地形模型进行裁剪,生成第四地形模型。In a possible implementation, the preprocessing module further includes a clipping module, which is used to clip the scaled first terrain model to generate a fourth terrain model when the scaled first terrain model is within a preset range of the target area.

在一种可能的实现方式中,格式转换模块还包括格式转换子模块,用于通过第四软件对第三地形模型进行格式转换,生成格式转换后的第三地形模型。In a possible implementation, the format conversion module further includes a format conversion submodule, which is used to perform format conversion on the third terrain model by using fourth software to generate a third terrain model after format conversion.

在一种可能的实现方式中,处理模块还包括处理子模块模块,用于获取几何形体的第二三维坐标,第二三维坐标为二维数组;通过第三软件将第二三维坐标转换为第一三维坐标,第一三维坐标为一维数组。In one possible implementation, the processing module also includes a processing sub-module module, which is used to obtain the second three-dimensional coordinates of the geometric shape, and the second three-dimensional coordinates are a two-dimensional array; the second three-dimensional coordinates are converted into first three-dimensional coordinates by third software, and the first three-dimensional coordinates are a one-dimensional array.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器和接口;存储器,用于存储指令;接口,用于与其他设备通信;处理器,用于执行存储器中存储的指令,以使电子设备执行如第一方面所述的方法。In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory and an interface; the memory is used to store instructions; the interface is used to communicate with other devices; the processor is used to execute the instructions stored in the memory so that the electronic device executes the method described in the first aspect.

第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质包括计算机指令,当计算机指令在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a readable storage medium, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the method described in the first aspect.

综上所述,本申请实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

1、由于采用的地理空间数据云中的目标区域的地形模型数据是卫星采集得到的,进而解决了现有技术中由于人工勘察导致的数据不完整和准确性低的问题;从而提高了获得目标区域三维数据的完整性和准确性。1. Since the terrain model data of the target area in the geospatial data cloud is collected by satellite, the problem of incomplete data and low accuracy caused by manual survey in the prior art is solved; thereby improving the integrity and accuracy of the three-dimensional data of the target area.

2、由于采用软件对地理空间云数据的地形模型数据进行处理,生成目标区域的三维坐标,从而不需要勘察人员去目标地区进行现场勘察,提高了勘察人员的安全性,并降低了人工成本。2. Because the terrain model data of geospatial cloud data is processed by software to generate the three-dimensional coordinates of the target area, there is no need for surveyors to conduct on-site surveys in the target area, which improves the safety of surveyors and reduces labor costs.

3、由于地理空间数据云中包括全球各个地区的地形模型数据,进而通过本申请提供的方法,可以获取全球任何地区的三维坐标数据,进而提高了获取三维坐标数据的范围。3. Since the geospatial data cloud includes terrain model data of various regions in the world, the three-dimensional coordinate data of any region in the world can be obtained through the method provided by this application, thereby increasing the scope of obtaining three-dimensional coordinate data.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请实施例提供的用于生成目标区域三维坐标方法的流程示意图。FIG1 is a schematic flow chart of a method for generating three-dimensional coordinates of a target area provided in an embodiment of the present application.

图2是本申请实施例提供的通过第三软件获取目标区域三维坐标的流程图。FIG. 2 is a flow chart of obtaining the three-dimensional coordinates of the target area through the third software provided in an embodiment of the present application.

图3是本申请实施例提供的用于生成目标区域三维坐标的装置的一种可能的示意图。FIG. 3 is a possible schematic diagram of a device for generating three-dimensional coordinates of a target area provided in an embodiment of the present application.

图4是本申请实施例的提供的一种电子设备的结构示意图。FIG. 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

具体实施方式Detailed ways

为了使本领域的技术人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

在本申请实施例的描述中,“例如”或者“举例来说”等词用于表示作例子、例证或说明。本申请实施例中被描述为“例如”或者“举例来说”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“例如”或者“举例来说”等词旨在以具体方式呈现相关概念。In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

在本申请实施例的描述中,术语“多个”的含义是指两个或两个以上。例如,多个系统是指两个或两个以上的系统,多个屏幕终端是指两个或两个以上的屏幕终端。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

现有技术中,对于全球各个地区的三维坐标数据,大多采用人工勘察的方式,由于勘察的地区大多处于野外或人烟稀少的地区,对于勘察人员来说存在一定的危险性和不稳定性,而且由于是人工对地形的三维坐标数据进行采集,导致了部分区域地形的三维坐标数据不完整,进而使得到的三维坐标数据不准确,且效率不高。In the prior art, the three-dimensional coordinate data of various regions in the world are mostly obtained by manual survey. Since the surveyed areas are mostly in the wild or sparsely populated areas, there are certain risks and instability for the surveyors. In addition, since the three-dimensional coordinate data of the terrain is collected manually, the three-dimensional coordinate data of the terrain in some areas is incomplete, which makes the obtained three-dimensional coordinate data inaccurate and inefficient.

本申请实施例提供的一种用于生成目标区域三维坐标的方法,根据从地理空间数据云中获取的目标区域的地形模型转换为目标区域的三维坐标,与现有技术中人工勘察的手段比较,由于地理空间数据云中的目标区域的地形模型数据是卫星采集得到的,进而提高了获得目标区域三维数据的完整性和准确性,同时,由于不需要人工勘测,提高了勘察人员的安全性。进一步的,由于地理空间数据云中包括全球各个地区的地形模型数据,进而通过本申请提供的方法,可以获取全球任何地区的三维坐标数据,进而提高了获取三维坐标数据的范围。The method for generating three-dimensional coordinates of a target area provided in an embodiment of the present application is based on converting the terrain model of the target area obtained from the geospatial data cloud into the three-dimensional coordinates of the target area. Compared with the manual survey method in the prior art, since the terrain model data of the target area in the geospatial data cloud is acquired by satellite, the integrity and accuracy of the three-dimensional data of the target area are improved. At the same time, since no manual survey is required, the safety of the surveyors is improved. Furthermore, since the geospatial data cloud includes terrain model data of various regions in the world, the three-dimensional coordinate data of any region in the world can be obtained through the method provided by the present application, thereby increasing the scope of obtaining three-dimensional coordinate data.

下面结合图1对本申请实施例提供的一种用于生成目标区域三维坐标的方法,进行更为详细的描述。请参考图1,图1是本申请实施例提供的用于生成目标区域三维坐标方法的一个流程示意图。该用于生成目标区域三维坐标方法的流程100包括:The following is a more detailed description of a method for generating three-dimensional coordinates of a target area provided by an embodiment of the present application in conjunction with FIG1. Please refer to FIG1, which is a flow chart of a method for generating three-dimensional coordinates of a target area provided by an embodiment of the present application. The process 100 of the method for generating three-dimensional coordinates of a target area includes:

步骤101,从地理空间数据云中获取目标区域的第一地形模型。Step 101: Acquire a first terrain model of a target area from a geospatial data cloud.

在本申请实施例中,首先登录地理空间数据云的网址,通过地理空间数据云平台检索目标区域,下载目标区域地形模型数据,即目标区域的Dem模型,该Dem模型为GIS模型。其中,Dem模型为数字高程模型(Digital Elevation Model),它是用一组有序数值阵列形式表示地面高程的一种实体地面模型,是(Digital Terrain Model,简称DTM)的一个分支,其它各种地形特征值均可由此派生。一般认为,Dem是描述包括高程在内的各种地貌因子,如、坡向、坡度变化率等因子在内的线性和非线性组合的空间分布,其中Dem是零阶单纯的单项数字地貌模型,其他如坡度、坡向及坡度变化率等地貌特性可在Dem的基础上派生。进一步的,所获取目标区域的Dem模型的数据格式为tif格式。In the embodiment of the present application, first log in to the website of the geospatial data cloud, retrieve the target area through the geospatial data cloud platform, and download the terrain model data of the target area, that is, the Dem model of the target area, which is a GIS model. Among them, the Dem model is a digital elevation model (Digital Elevation Model), which is a physical ground model that represents the ground elevation in the form of a set of ordered numerical arrays. It is a branch of (Digital Terrain Model, referred to as DTM), and other various terrain characteristic values can be derived from it. It is generally believed that Dem describes the spatial distribution of linear and nonlinear combinations of various geomorphic factors including elevation, such as slope, slope aspect, slope change rate and other factors, wherein Dem is a zero-order simple single digital geomorphic model, and other geomorphic characteristics such as slope, slope aspect and slope change rate can be derived on the basis of Dem. Further, the data format of the Dem model of the target area obtained is tif format.

步骤102,通过第一软件对第一地形模型进行预处理,生成第二地形模型。Step 102: preprocess the first terrain model by using the first software to generate a second terrain model.

在本申请实施例中,第一软件为GIS软件,包括但不限于MapGIS、Super MapGIS、IMAGIS、GISVRMap3.0、GeoStar、CCGIS、Evia Earth、ArcGIS,InterGraph,、EV Globe、GeoGlobe、CityMaker、QGIS等,在本申请实施例中,第一软件以QGIS为例,对本申请实施例进行详细说明。QGIS是一个开源的桌面地理信息系统,它能够用于浏览、编辑、地图投影和分析地理空间数据等功能。而在本申请实施例中,通过QGIS软件对从地理空间数据云中获取的目标区域的第一地形模型,即目标区域的Dem模型进行预处理,生成第二地形模型。In the embodiment of the present application, the first software is GIS software, including but not limited to MapGIS, Super MapGIS, IMAGIS, GISVRMap3.0, GeoStar, CCGIS, Evia Earth, ArcGIS, InterGraph, EV Globe, GeoGlobe, CityMaker, QGIS, etc. In the embodiment of the present application, the first software takes QGIS as an example to explain the embodiment of the present application in detail. QGIS is an open source desktop geographic information system, which can be used for browsing, editing, map projection and analysis of geospatial data. In the embodiment of the present application, the first terrain model of the target area obtained from the geospatial data cloud, that is, the Dem model of the target area, is preprocessed by QGIS software to generate a second terrain model.

在一种可能的实现方式中,通过第一软件对第一地形模型进行预处理,生成第二地形模型,包括:基于目标区域的预设范围,通过第一软件对第一地形模型进行裁剪,生成第四地形模型;通过第一软件对第四地形模型进行格式转换,得到第二地形模型。In a possible implementation, the first terrain model is preprocessed by the first software to generate the second terrain model, including: based on a preset range of the target area, the first terrain model is cropped by the first software to generate a fourth terrain model; and the fourth terrain model is format converted by the first software to obtain the second terrain model.

在本申请实施例中,首先在QGIS软件中导入Dem模型,根据目标区域的预设范围,对Dem模型的大小进行裁剪,裁剪方式包括但不限于:从图层计算裁剪、从布局计算裁剪、在当前地图画布绘制、在当前视角范围裁剪以及通过多边形框裁剪,本申请实施例采用在当前视角范围裁剪的方式对Dem模型按照目标区域的预设范围进行裁剪,并将裁剪后目标区域的Dem模型进行格式转换,将tif格式的Dem模型转换成glb格式的Dem模型,进一步的,将转换的glb格式目标区域的Dem模型进行保存。In an embodiment of the present application, the Dem model is first imported into the QGIS software, and the size of the Dem model is cropped according to the preset range of the target area. The cropping methods include but are not limited to: cropping from layer calculation, cropping from layout calculation, drawing on the current map canvas, cropping in the current viewing angle range, and cropping through a polygonal box. The embodiment of the present application adopts the method of cropping in the current viewing angle range to crop the Dem model according to the preset range of the target area, and converts the format of the Dem model of the cropped target area, converting the Dem model in tif format into a Dem model in glb format, and further saving the converted Dem model of the target area in glb format.

在一种可能的实现方式中,基于目标区域的预设范围,通过第一软件对第一地形模型进行裁剪,生成第四地形模型,包括:通过第一软件,对第一地形模型进行缩放,判断缩放后的第一地形模型是否在目标区域的预设范围;当缩放后的第一地形模型在目标区域的预设范围时,则对缩放后的第一地形模型进行裁剪,生成第四地形模型。In a possible implementation, based on a preset range of the target area, the first terrain model is cropped by the first software to generate a fourth terrain model, including: scaling the first terrain model by the first software, and determining whether the scaled first terrain model is within the preset range of the target area; when the scaled first terrain model is within the preset range of the target area, cropping the scaled first terrain model to generate the fourth terrain model.

在本申请实施例中,由于采用的裁剪方式为在当前视角范围裁剪,进而在对通过QGIS对目标区域的Dem模型按照预设范围进行裁剪之前,需要对Dem模型进行缩放,在缩放过程中判断当前视角范围的Dem模型是否在目标区域的预设范围内,若在目标区域的预设范围内,则对当前视角范围的Dem模型进行裁剪,若不在则继续对目标区域的Dem模型进行缩放。In the embodiment of the present application, since the adopted cropping method is cropping within the current viewing angle range, before the Dem model of the target area is cropped according to the preset range through QGIS, the Dem model needs to be scaled. During the scaling process, it is determined whether the Dem model of the current viewing angle range is within the preset range of the target area. If it is within the preset range of the target area, the Dem model of the current viewing angle range is cropped; if not, the Dem model of the target area continues to be scaled.

在本申请的另一个实施例中,还可以采用在地图画布绘制的裁剪方式对目标区域的Dem模型进行裁剪,即在地图画布中,根据目标区域的预设范围,通过画笔在Dem模型绘制出目标区域的预设范围,在绘制完成后进行裁剪,并将裁剪后的目标区域预设范围的Dem模型进行格式转换,将tif格式的Dem模型转换成glb格式的Dem模型,并对glb格式的Dem模型进行保存。其中,通过QGIS对Dem模型进行裁剪,是在二维平面上对Dem模型进行裁剪。In another embodiment of the present application, the Dem model of the target area can also be cropped by using the cropping method drawn on the map canvas, that is, in the map canvas, according to the preset range of the target area, the preset range of the target area is drawn on the Dem model by a brush, and cropping is performed after the drawing is completed, and the cropped Dem model of the preset range of the target area is converted into a format, and the Dem model in tif format is converted into a Dem model in glb format, and the Dem model in glb format is saved. Among them, cropping the Dem model by QGIS is cropping the Dem model on a two-dimensional plane.

步骤103,通过第二软件对第二地形模型的进行格式转换,生成第三地形模型。Step 103: Convert the format of the second terrain model by using the second software to generate a third terrain model.

在本申请实施例中,第二软件为三维制图软件,可以包括但不限于Maya、3ds MAX、lumion、Keyshot、CINMEA 4D和Blender等,在本申请实施例中,第二软件以Blender为例,对本申请实施例进行详细说明。Blender是一款免费开源三维图形软件,提供从建模、动画、材质、渲染、到音频处理、视频剪辑等一系列动画短片制作解决方案。进一步的,在本申请实施例中,在Blender 中打开由步骤102中得到的glb格式的Dem模型,在Blender中对glb格式的Dem模型进行缩放,调整为合适的大小后,对glb格式的Dem模型进行格式转换,将glb格式的Dem模型转换为dxf格式的Dem模型,并对dxf格式的Dem模型进行保存。In the embodiment of the present application, the second software is a three-dimensional drawing software, which may include but is not limited to Maya, 3ds MAX, lumion, Keyshot, CINMEA 4D and Blender, etc. In the embodiment of the present application, the second software takes Blender as an example to explain the embodiment of the present application in detail. Blender is a free open source three-dimensional graphics software that provides a series of animation short film production solutions from modeling, animation, materials, rendering, to audio processing, video editing, etc. Further, in the embodiment of the present application, the Dem model in the glb format obtained in step 102 is opened in Blender, the Dem model in the glb format is scaled in Blender, and after adjusting to a suitable size, the Dem model in the glb format is converted into a format, the Dem model in the glb format is converted into a Dem model in the dxf format, and the Dem model in the dxf format is saved.

在本申请的另一种实现方式中,在通过Blender将glb格式的Dem模型转换成dxf格式的Dem模型之前,还可以通过Blender对glb格式的Dem模型进行优化,将二维的Dem模型调整缩放为三维模型,对三维的Dem模型上进行更精细化的裁剪,例如在目标区域的预设范围内,按照意愿对Dem模型的各个方位进行裁剪,其中裁剪方式包括任意形状框裁剪、地图画布绘制裁剪、根据模型结构裁剪等,通过Blender对glb格式的Dem模型裁剪后,进行格式转换,将转换为dxf格式的dem模型进行保存。In another implementation of the present application, before converting the Dem model in glb format into the Dem model in dxf format through Blender, the Dem model in glb format can also be optimized through Blender, the two-dimensional Dem model can be adjusted and scaled into a three-dimensional model, and the three-dimensional Dem model can be more finely cropped. For example, within the preset range of the target area, the Dem model can be cropped in various directions as desired, wherein the cropping methods include arbitrary shape box cropping, map canvas drawing cropping, cropping according to model structure, etc. After cropping the Dem model in glb format through Blender, the format conversion is performed and the dem model converted into dxf format is saved.

步骤104,通过第三软件对第三地形模型进行处理,生成目标区域的三维坐标。Step 104: Process the third terrain model through third software to generate three-dimensional coordinates of the target area.

在本申请实施例中,第三软件以revit为例,对本申请实施例作详细说明。首先在revit软件中打开目标区域的Dem模型,通过revit对Dem模型进行处理,包括对Dem模型的各个部分按照预设比例进行设置,使Dem模型的各个部分清晰化,进而获取目标区域的三维坐标。In the embodiment of the present application, the third software takes Revit as an example to explain the embodiment of the present application in detail. First, the Dem model of the target area is opened in the Revit software, and the Dem model is processed by Revit, including setting each part of the Dem model according to a preset ratio to make each part of the Dem model clear, and then obtaining the three-dimensional coordinates of the target area.

在一种可能的实现方式中,通过第三软件对第三地形模型进行处理,生成目标区域的三维坐标之前,包括:通过第四软件对第三地形模型进行格式转换,生成格式转换后的第三地形模型;通过第三软件对格式转换后的第三地形模型进行处理,生成目标区域的三维坐标。In a possible implementation, before the third terrain model is processed by the third software to generate the three-dimensional coordinates of the target area, the method includes: converting the format of the third terrain model by the fourth software to generate the third terrain model after the format conversion; and processing the third terrain model after the format conversion by the third software to generate the three-dimensional coordinates of the target area.

在本申请实施例中,通过第三软件对上述获得的dxf格式的目标区域Dem模型进行处理,得到目标区域的三维坐标之前,还需要通过第四软件对dxf格式的目标区域Dem模型进行格式转换,在本申请实施例中,第四软件为AUTO CAD,进一步的,通过AUTO CAD打开dxf格式的目标区域Dem模型,并将dxf格式转换为dwg格式的目标区域Dem模型。In an embodiment of the present application, the target area Dem model in dxf format obtained above is processed by the third software. Before obtaining the three-dimensional coordinates of the target area, it is necessary to convert the format of the target area Dem model in dxf format by the fourth software. In an embodiment of the present application, the fourth software is AUTO CAD. Further, the target area Dem model in dxf format is opened by AUTO CAD, and the dxf format is converted into the target area Dem model in dwg format.

在一种可能的实现方式中,通过第三软件对第三地形模型进行处理,生成目标区域的三维坐标,包括:通过第三软件将格式转换后的第三地形模型转换为几何形体;获取几何形体的第一三维坐标;将几何形体的第一三维坐标确定为目标区域的三维坐标。In a possible implementation, the third terrain model is processed by a third software to generate three-dimensional coordinates of the target area, including: converting the third terrain model after format conversion into a geometric shape by the third software; obtaining the first three-dimensional coordinates of the geometric shape; and determining the first three-dimensional coordinates of the geometric shape as the three-dimensional coordinates of the target area.

在本申请实施例中,还需要通过revit中的dynamo对dxf格式的目标区域Dem模型进行处理,进而生成目标区域的三维坐标。参考图2,图2是本申请实施例提供的通过第三软件获取目标区域三维坐标的流程图,其中通过dynamo对Dem模型进行处理的流程200包括:In the embodiment of the present application, the target area Dem model in dxf format needs to be processed by Dynamo in Revit to generate the three-dimensional coordinates of the target area. Referring to FIG. 2 , FIG. 2 is a flow chart of obtaining the three-dimensional coordinates of the target area by the third software provided in the embodiment of the present application, wherein the process 200 of processing the Dem model by Dynamo includes:

201:通过dynamo创建revit明细表,并添加要是显示的列;201: Create a Revit schedule through Dynamo and add the columns to be displayed;

首先在dynamo中创建明细表,在空白明细表中选择revit中项目中的几何图元,在本申请实施例中,选择revit中目标区域的Dem模型;First, create a list in Dynamo, select the geometric elements in the project in Revit in the blank list, and in the embodiment of the present application, select the Dem model of the target area in Revit;

202:获取几何图元中的所有参数信息;202: Get all parameter information in the geometric primitive;

在本申请实施例中,获取目标区域的Dem模型中的所有参数信息;In the embodiment of the present application, all parameter information in the Dem model of the target area is obtained;

203:将所有参数信息定义为几何形体;203: Define all parameter information as geometric shapes;

在本申请实施例中,根据目标区域的Dem模型的所有参数信息,将目标区域的Dem模型转换成几何形体,即mesh模型,mesh 模型是计算机图形学中常用的一种表示三维几何形状的方法它由一系列的顶点 ( Vertices) 和连接这些顶点的边 (Edges) 组成通过连接顶点和边,可以形成各种形状的多边形,如三角形、四边形等。In an embodiment of the present application, the Dem model of the target area is converted into a geometric shape, namely a mesh model, according to all parameter information of the Dem model of the target area. The mesh model is a method commonly used in computer graphics to represent three-dimensional geometric shapes. It consists of a series of vertices (Vertices) and edges (Edges) connecting these vertices. By connecting vertices and edges, polygons of various shapes, such as triangles, quadrilaterals, etc., can be formed.

204:获取几何形体的第一三维坐标;204: Obtain the first three-dimensional coordinates of the geometric shape;

在本申请实施例中,获取mesh模型的第一三维坐标,进而得到目标区域的三维坐标。In the embodiment of the present application, the first three-dimensional coordinates of the mesh model are acquired, and then the three-dimensional coordinates of the target area are obtained.

在一种可能的实现方式中,获取几何形体的第一三维坐标,包括:获取几何形体的第二三维坐标,几何形体的第二三维坐标为二维数组;通过第三软件将几何形体的第二三维坐标转换为几何形体的第一三维坐标,几何形体的第一三维坐标为一维数组。In one possible implementation, obtaining the first three-dimensional coordinates of a geometric shape includes: obtaining the second three-dimensional coordinates of the geometric shape, where the second three-dimensional coordinates of the geometric shape are a two-dimensional array; and converting the second three-dimensional coordinates of the geometric shape into the first three-dimensional coordinates of the geometric shape by third software, where the first three-dimensional coordinates of the geometric shape are a one-dimensional array.

在本申请实施例中,如上述步骤204中,获取几何形体的点坐标,其中获取的mesh模型的第二三维坐标为二维数组,通过pynamo将mesh模型的第二三维坐标转换为一维数组,并通过表格形式导出,保存格式可以为Excel、Xaml等,进而得到了目标区域的三维坐标。In an embodiment of the present application, as in the above step 204, the point coordinates of the geometric shape are obtained, wherein the second three-dimensional coordinates of the mesh model are obtained as a two-dimensional array. The second three-dimensional coordinates of the mesh model are converted into a one-dimensional array through pynamo and exported in a table format. The save format can be Excel, Xaml, etc., and the three-dimensional coordinates of the target area are obtained.

在一种可能的实现方式中,第一地形模型为GIS模型,通过第三软件对第三地形数据进行处理,生成目标区域的三维坐标之后,还包括:通过第五软件将目标区域的三维坐标转换成第五地形模型,第五地形模型为BIM模型。In a possible implementation, the first terrain model is a GIS model. After the third terrain data is processed by the third software to generate the three-dimensional coordinates of the target area, it also includes: converting the three-dimensional coordinates of the target area into a fifth terrain model by the fifth software, and the fifth terrain model is a BIM model.

在本申请实施例中,从地理空间数据云获取目标区域的Dem模型为目标区域的GIS模型,通过上述步骤得到了目标区域的三维坐标,进而还可以通过第五软件根据获取的三维坐标数据转换为目标区域的BIM模型。其中,第六软件采用Civil3D,进一步的,在Civil3D中,新建一个工程,点击工具栏,选择点,点击点文件,选择Excel格式的目标地区的三维坐标,即可生成目标区域的BIM模型。In the embodiment of the present application, the Dem model of the target area is obtained from the geospatial data cloud as the GIS model of the target area. The three-dimensional coordinates of the target area are obtained through the above steps, and then the BIM model of the target area can be converted into the BIM model of the target area according to the obtained three-dimensional coordinate data through the fifth software. Among them, the sixth software uses Civil3D. Further, in Civil3D, create a new project, click the toolbar, select point, click point file, select the three-dimensional coordinates of the target area in Excel format, and the BIM model of the target area can be generated.

可以理解的是,为了实现图1和/或图2所述的功能,用于生成目标区域三维坐标的方法的执行主体(例如服务器)包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It is understandable that, in order to implement the functions described in Figures 1 and/or 2, the execution subject (e.g., a server) of the method for generating three-dimensional coordinates of a target area includes hardware and/or software modules corresponding to the execution of each function. In combination with the steps of the various examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

本实施例可以根据上述方法示例对用于生成目标区域三维坐标的方法的执行主体(例如服务器)进行功能模块的划分,例如,可以对应各个功能划分各个不同功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the execution subject (e.g., server) of the method for generating three-dimensional coordinates of the target area can be divided into functional modules according to the above method example. For example, different functional modules can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

在采用对应各个功能划分各个功能模块的情况下,图3示出了上述实施例中涉及的用于生成目标区域三维坐标的装置300的一种可能的示意图,图3对应的用于生成目标区域三维坐标的装置300可以是软件装置,运行于服务器之上,或者用于生成目标区域三维坐标的装置300可以是一个软件和硬件结合的装置,被嵌入至用于生成目标区域三维坐标的方法的执行主体(例如服务器)中。如图3所示,该用于生成目标区域三维坐标的装置300可以包括:获取模块301,用于从地理空间数据云中获取目标区域的第一地形模型;预处理模块302,用于通过第一软件对第一地形模型进行预处理,生成第二地形模型;格式转换模块303,用于通过第二软件对第二地形模型进行格式转换,得到第三地形模型;处理模块304;用于通过第三软件对第三地形模型进行处理,生成目标区域的三维坐标。In the case of dividing each functional module according to each function, FIG3 shows a possible schematic diagram of the device 300 for generating the three-dimensional coordinates of the target area involved in the above embodiment. The device 300 for generating the three-dimensional coordinates of the target area corresponding to FIG3 can be a software device, which runs on a server, or the device 300 for generating the three-dimensional coordinates of the target area can be a device combining software and hardware, which is embedded in the execution body (such as a server) of the method for generating the three-dimensional coordinates of the target area. As shown in FIG3, the device 300 for generating the three-dimensional coordinates of the target area can include: an acquisition module 301, which is used to acquire a first terrain model of the target area from a geospatial data cloud; a preprocessing module 302, which is used to preprocess the first terrain model through a first software to generate a second terrain model; a format conversion module 303, which is used to convert the format of the second terrain model through a second software to obtain a third terrain model; a processing module 304; which is used to process the third terrain model through a third software to generate the three-dimensional coordinates of the target area.

在一种可能的是实现方式中,预处理模块还包括缩放模块,用于通过第一软件第一地形模型进行缩放,判断缩放后的第一地形模型是否在目标区域的预设范围。In a possible implementation, the preprocessing module further includes a scaling module, which is used to scale the first terrain model through the first software, and determine whether the scaled first terrain model is within a preset range of the target area.

在一种可能的实现方式中,预处理模块还包括裁剪模块,用于当缩放后的第一地形模型在目标区域的预设范围时,则对缩放后的第一地形模型进行裁剪,生成第四地形模型。In a possible implementation, the preprocessing module further includes a clipping module, which is used to clip the scaled first terrain model to generate a fourth terrain model when the scaled first terrain model is within a preset range of the target area.

在一种可能的实现方式中,格式转换模块还包括格式转换子模块,用于通过第四软件对第三地形模型进行格式转换,生成格式转换后的第三地形模型。In a possible implementation, the format conversion module further includes a format conversion submodule, which is used to perform format conversion on the third terrain model by using fourth software to generate a third terrain model after format conversion.

在一种可能的实现方式中,处理模块还包括处理子模块,用于获取几何形体的第二三维坐标,几何形体的第二三维坐标为二维数组;通过第三软件将几何形体的第二三维坐标转换为几何形体的第一三维坐标,几何形体的第一三维坐标为一维数组。In one possible implementation, the processing module also includes a processing sub-module for acquiring the second three-dimensional coordinates of the geometric shape, which is a two-dimensional array; and converting the second three-dimensional coordinates of the geometric shape into the first three-dimensional coordinates of the geometric shape through a third software, which is a one-dimensional array.

需要说明的是:上述实施例提供的用于生成目标区域三维坐标的装置300在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置和方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the device 300 for generating three-dimensional coordinates of a target area provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

本申请还公开一种电子设备。参照图4,图4是本申请实施例的公开的一种电子设备的结构示意图。该电子设备例如可以为服务器,该电子设备用于执行如图1或图2所示的方法流程。该电子设备可以包括:至少一个处理器401,至少一个网络接口404,用户接口403,存储器405,至少一个通信总线402。The present application also discloses an electronic device. Referring to FIG. 4 , FIG. 4 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. The electronic device may be, for example, a server, and the electronic device is used to execute the method flow shown in FIG. 1 or FIG. 2 . The electronic device may include: at least one processor 401, at least one network interface 404, a user interface 403, a memory 405, and at least one communication bus 402.

其中,通信总线402用于实现这些组件之间的连接通信。The communication bus 402 is used to realize the connection and communication between these components.

其中,用户接口403可以包括显示屏(Display)、摄像头(Camera),可选用户接口403还可以包括标准的有线接口、无线接口。The user interface 403 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.

其中,网络接口404可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

其中,处理器401可以包括一个或者多个处理核心。处理器401利用各种接口和线路连接整个服务器内的各个部分,通过运行或执行存储在存储器405内的指令、程序、代码集或指令集,以及调用存储在存储器405内的数据,执行服务器的各种功能和处理数据。可选的,处理器401可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器401可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器401中,单独通过一块芯片进行实现。Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

其中,存储器405可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器405包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器405可用于存储指令、程序、代码、代码集或指令集。存储器405可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及的数据等。存储器405可选的还可以是至少一个位于远离前述处理器401的存储装置。参照图4,作为一种计算机存储介质的存储器405中可以包括操作系统、网络通信模块、用户接口模块以及一种数据处理方法的应用程序。Among them, the memory 405 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be at least one storage device located away from the aforementioned processor 401. Referring to Figure 4, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a data processing method.

在图4所示的电子设备中,用户接口403主要用于为用户提供输入的接口,获取用户输入的数据;而处理器401可以用于调用存储器405中存储一种数据处理方法的应用程序,当由一个或多个处理器401执行时,使得电子设备执行如上述实施例中一个或多个所述的方法。需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必需的。In the electronic device shown in FIG4 , the user interface 403 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 401 can be used to call an application program storing a data processing method in the memory 405, and when executed by one or more processors 401, the electronic device executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

在本申请所提供的几种实施方式中,应该理解到,所披露的装置,可通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如单元模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些服务接口,装置或单元的间接耦合或通信连接,可以是电性或其他的形式。In the several implementation modes provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of unit modules, which is only a logical function division. There may be other division methods in actual implementation, such as multiple unit modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

作为分离部件说明的单元模块可以是或者也可以不是物理上分开的,作为单元模块显示的部件可以是或者也可以不是物理单元模块,即可以位于一个地方,或者也可以分布到多个网络单元模块上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit modules described as separate components may or may not be physically separated, and the components displayed as unit modules may or may not be physical unit modules, that is, they may be located in one place or distributed on multiple network unit modules. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元模块可以集成在一个处理单元中,也可以是各个单元模块单独物理存在,也可以两个或两个以上单元模块集成在一个单元中。上述集成的单元模块既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit module in each embodiment of the present application can be integrated into a processing unit, or each unit module can exist physically separately, or two or more unit modules can be integrated into one unit. The above-mentioned integrated unit module can be implemented in the form of hardware or in the form of software functional unit.

集成的单元模块如果以软件功能单元模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储器包括:U盘、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit module is implemented in the form of a software functional unit module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

以上所述者,仅为本公开的示例性实施例,不能以此限定本公开的范围。即但凡依本公开教导所作的等效变化与修饰,皆仍属本公开涵盖的范围内。本领域技术人员在考虑说明书及实践真理的公开后,将容易想到本公开的其他实施方案。The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未记载的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的范围和精神由权利要求限定。This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims (10)

1. A method for generating three-dimensional coordinates of a target area, comprising:
acquiring a first terrain model of a target area from a geospatial data cloud;
preprocessing the first terrain model through first software to generate a second terrain model;
Converting the format of the second terrain model through second software to generate a third terrain model;
and processing the third terrain model through third software to generate three-dimensional coordinates of the target area.
2. The method for generating three-dimensional coordinates of a target area according to claim 1, wherein the preprocessing of the first terrain model by the first software to generate a second terrain model comprises:
Cutting the first terrain model by the first software based on the preset range of the target area to generate a fourth terrain model;
And carrying out format conversion on the fourth terrain model through the first software to obtain the second terrain model.
3. The method for generating three-dimensional coordinates of a target area according to claim 2, wherein the generating a fourth terrain model by clipping the first terrain model by the first software based on the preset range of the target area comprises:
scaling the first terrain model through the first software, and judging whether the scaled first terrain model is in a preset range of the target area or not;
And when the scaled first terrain model is in the preset range of the target area, cutting the scaled first terrain model to generate the fourth terrain model.
4. The method for generating three-dimensional coordinates of a target area according to claim 1, wherein said processing the third terrain model by the third software to generate three-dimensional coordinates of the target area comprises:
Performing format conversion on the third terrain model through fourth software to generate a third terrain model after format conversion;
and processing the third terrain model after the format conversion by third software to generate the three-dimensional coordinates of the target area.
5. The method for generating three-dimensional coordinates of a target area according to claim 4, wherein said processing of said third terrain model by third software, prior to generating three-dimensional coordinates of said target area, comprises:
Converting the format-converted third terrain model into a geometric shape through third software;
acquiring a first three-dimensional coordinate of the geometric body;
a first three-dimensional coordinate of the geometric shape is determined as a three-dimensional coordinate of the target region.
6. The method for generating three-dimensional coordinates of a target area according to claim 5, wherein said acquiring the first three-dimensional coordinates of the geometric shape comprises:
acquiring a second three-dimensional coordinate of the geometric body, wherein the second three-dimensional coordinate of the geometric body is a two-dimensional array;
and converting the second three-dimensional coordinate of the geometric body into the first three-dimensional coordinate of the geometric body through the third software, wherein the first three-dimensional coordinate is a one-dimensional array.
7. The method for generating three-dimensional coordinates of a target area according to claim 1, wherein the first terrain model is a GIS model, and wherein after the third terrain data is processed by third software to generate the three-dimensional coordinates of the target area terrain, further comprising:
and converting the three-dimensional coordinates of the target area into a fifth terrain model by fifth software, wherein the fifth terrain model is a BIM model.
8. An apparatus for generating three-dimensional coordinates of a target area, the apparatus comprising:
The acquisition module is used for acquiring a first terrain model of the target area from the geospatial data cloud;
the preprocessing module is used for preprocessing the first terrain model through first software to generate a second terrain model;
the format conversion module is used for carrying out format conversion on the second terrain model through second software to generate a third terrain model;
A processing module; and the third terrain model is used for processing the third terrain model through third software to generate three-dimensional coordinates of the target area.
9. An electronic device comprising a processor, a memory, a user interface, and a network interface;
The memory is used for storing instructions;
The user interface and the network interface are used for communicating with other devices;
The processor configured to execute instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1-7.
10. A computer readable storage medium storing instructions which, when executed, perform the method steps of any of claims 1-7.
CN202410484670.9A 2024-04-22 A method for generating three-dimensional coordinates of a target area Active CN118379448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410484670.9A CN118379448B (en) 2024-04-22 A method for generating three-dimensional coordinates of a target area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410484670.9A CN118379448B (en) 2024-04-22 A method for generating three-dimensional coordinates of a target area

Publications (2)

Publication Number Publication Date
CN118379448A true CN118379448A (en) 2024-07-23
CN118379448B CN118379448B (en) 2025-02-25

Family

ID=

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101548647B1 (en) * 2014-12-19 2015-08-31 한국건설기술연구원 Processor for visualization of three dimensional geo-spatial information
CN111127649A (en) * 2019-12-30 2020-05-08 重庆市勘测院 Method, device and server for constructing three-dimensional block model
CN113034689A (en) * 2021-04-30 2021-06-25 睿宇时空科技(重庆)有限公司 Laser point cloud-based terrain three-dimensional model, terrain map construction method and system, and storage medium
CN113506370A (en) * 2021-07-28 2021-10-15 自然资源部国土卫星遥感应用中心 Three-dimensional geographic scene model construction method and device based on three-dimensional remote sensing image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101548647B1 (en) * 2014-12-19 2015-08-31 한국건설기술연구원 Processor for visualization of three dimensional geo-spatial information
CN111127649A (en) * 2019-12-30 2020-05-08 重庆市勘测院 Method, device and server for constructing three-dimensional block model
CN113034689A (en) * 2021-04-30 2021-06-25 睿宇时空科技(重庆)有限公司 Laser point cloud-based terrain three-dimensional model, terrain map construction method and system, and storage medium
CN113506370A (en) * 2021-07-28 2021-10-15 自然资源部国土卫星遥感应用中心 Three-dimensional geographic scene model construction method and device based on three-dimensional remote sensing image

Similar Documents

Publication Publication Date Title
US8817021B1 (en) System for writing, interpreting, and translating three-dimensional (3D) scenes
CN112560137B (en) Multi-model fusion method and system based on smart city
CN110647596B (en) Map data processing method and device
CN110399446A (en) Visualization method, device, equipment and storage medium for large-scale spatio-temporal data
CN109754464B (en) Method and apparatus for generating information
CN113706689B (en) Assembly guidance method and system based on Hololens depth data
CN115147265A (en) Virtual image generation method and device, electronic equipment and storage medium
CN114742931A (en) Method and device for rendering image, electronic equipment and storage medium
CN112634452B (en) Railway BIM model light weight method and device
CN116843811A (en) Three-dimensional model rendering method, device, equipment and storage medium
CN111768470A (en) Image generation method, apparatus, computer device, and computer-readable storage medium
WO2023231793A9 (en) Method for virtualizing physical scene, and electronic device, computer-readable storage medium and computer program product
JP2024527519A (en) Data processing method, device, electronic device and storage medium
CN112445394A (en) Screenshot method and device
CN114820972A (en) Contour line and/or contour surface generation method, system, device and storage medium
CN118379448A (en) Method for generating three-dimensional coordinates of target area
CN118379448B (en) A method for generating three-dimensional coordinates of a target area
CN114842127B (en) Terrain rendering method and device, electronic equipment, medium and product
CN116492689A (en) Game topography generation method, game topography generation device, electronic device and readable storage medium
CN118674880A (en) A method and device for generating a three-dimensional texture model of a city based on composite data
CN116541477A (en) Method, device, terminal and medium for visualization of electronic map in a large scene
CN114817619A (en) Map generation method, system, medium, and apparatus based on grid re-projection
CN115294312A (en) Three-dimensional model merging processing method, device and medium
CN114020390A (en) BIM model display method, device, computer equipment and storage medium
CN117112950B (en) Rendering method, device, terminal and storage medium for objects in electronic map

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant