CN113034688B - Three-dimensional map model generation method and device - Google Patents

Three-dimensional map model generation method and device Download PDF

Info

Publication number
CN113034688B
CN113034688B CN202110448835.3A CN202110448835A CN113034688B CN 113034688 B CN113034688 B CN 113034688B CN 202110448835 A CN202110448835 A CN 202110448835A CN 113034688 B CN113034688 B CN 113034688B
Authority
CN
China
Prior art keywords
gis data
target area
model
generating
dimensional
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.)
Active
Application number
CN202110448835.3A
Other languages
Chinese (zh)
Other versions
CN113034688A (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 Electronic System Technology Co ltd
Original Assignee
China Electronic System Technology 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 Electronic System Technology Co ltd filed Critical China Electronic System Technology Co ltd
Priority to CN202110448835.3A priority Critical patent/CN113034688B/en
Publication of CN113034688A publication Critical patent/CN113034688A/en
Application granted granted Critical
Publication of CN113034688B publication Critical patent/CN113034688B/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
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • 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/20Finite element generation, e.g. wire-frame surface description, tesselation
    • G06T17/205Re-meshing

Landscapes

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

Abstract

The application discloses a method for generating a three-dimensional map model, which comprises the following steps: acquiring GIS data of a target area; according to the GIS data of the target area, determining coordinate values of the GIS data under a sphere coordinate system; generating a three-dimensional grid model according to coordinate values of the GIS data under a sphere coordinate system; rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area. Therefore, the method and the device have the advantages that the three-dimensional map model is not required to be created manually as in the prior art, so that the problems of modeling errors, low efficiency and time and labor consumption caused by operation errors in the manual creation process can be avoided, the efficiency and the accuracy of creating the three-dimensional map model are improved, and the user experience is further improved.

Description

Three-dimensional map model generation method and device
Technical Field
The present invention relates to the field of image processing, and in particular, to a method and an apparatus for generating a three-dimensional map model.
Background
With the development of artificial intelligence, more and more applications are applied based on three-dimensional WebGIS, and the requirements for rapidly creating a three-dimensional model and simultaneously combining with a WebGIS geographic engine are higher and higher. However, the conventional method is to manually create a three-dimensional model, and meanwhile, a cartesian coordinate system used by three-dimensional modeling software is inconsistent with a coordinate system used in a GIS, so that modeling is time-consuming and labor-consuming, efficiency is low, modeling errors caused by operation errors easily occur in a manual creation process, and the three-dimensional model cannot be used in combination with a GIS engine. Therefore, a new generation scheme of the three-dimensional map model is needed.
Disclosure of Invention
The method for generating the three-dimensional map model can improve efficiency and accuracy of creating the three-dimensional map model, and further improve user experience.
In a first aspect, the present application provides a method for generating a three-dimensional map model, where the method includes:
acquiring GIS data of a target area;
according to the GIS data of the target area, determining coordinate values of the GIS data under a sphere coordinate system;
generating a three-dimensional grid model according to coordinate values of the GIS data under a sphere coordinate system;
rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area.
Optionally, the GIS data of the target area includes longitude and latitude coordinate values; the determining the coordinate value of the GIS data under the sphere coordinate system according to the GIS data of the target area comprises the following steps:
and determining coordinate values of the GIS data under a sphere coordinate system according to the latitude coordinate values of the target area.
Optionally, the sphere coordinate system is an ink-card-holder (Mercator) projection system.
Optionally, the GIS data of the target area includes longitude and latitude coordinate values of vertices of a plurality of polygons; the generating a three-dimensional grid model according to the coordinate values of the GIS data under a sphere coordinate system comprises the following steps:
generating a polygon mesh corresponding to each polygon according to the coordinate value of the vertex of the polygon under the sphere coordinate system;
and generating a three-dimensional grid model according to the polygon grids respectively corresponding to the polygons.
Optionally, the GIS data of the target area includes depth information corresponding to each of the plurality of polygons; generating a three-dimensional grid model according to the polygon grids respectively corresponding to the polygons, wherein the three-dimensional grid model comprises the following steps:
connecting the polygon grids respectively corresponding to the polygons to generate an initial three-dimensional grid model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the polygons to obtain a three-dimensional grid model.
Optionally, the GIS data of the target area further includes: longitude and latitude coordinate values of vertexes of a plurality of holes; after the step of generating a three-dimensional mesh model according to the polygon meshes respectively corresponding to the plurality of polygons, the method further comprises:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the sphere coordinate system to obtain the three-dimensional grid model comprising the holes.
Optionally, the GIS data of the target area further includes: model rendering information;
rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to GIS data of the target area, wherein the three-dimensional map model comprises the following components:
and rendering the three-dimensional grid model according to the model rendering information to obtain a three-dimensional map model corresponding to the GIS data of the target area.
In a second aspect, the present application provides a generating apparatus for a three-dimensional map model, the apparatus including:
the data acquisition unit is used for acquiring GIS data of the target area;
the coordinate determining unit is used for determining coordinate values of the GIS data under a sphere coordinate system according to the GIS data of the target area;
the model generating unit is used for generating a three-dimensional grid model according to the coordinate values of the GIS data under a sphere coordinate system;
and the model rendering unit is used for rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area.
Optionally, the GIS data of the target area includes longitude and latitude coordinate values; the coordinate determining unit is specifically configured to:
and determining coordinate values of the GIS data under a sphere coordinate system according to the latitude coordinate values of the target area.
Optionally, the sphere coordinate system is an ink-card-holder (Mercator) projection system.
Optionally, the GIS data of the target area includes longitude and latitude coordinate values of vertices of a plurality of polygons; the model generating unit is specifically configured to:
generating a polygon mesh corresponding to each polygon according to the coordinate value of the vertex of the polygon under the sphere coordinate system;
and generating a three-dimensional grid model according to the polygon grids respectively corresponding to the polygons.
Optionally, the GIS data of the target area includes depth information corresponding to each of the plurality of polygons; the model generating unit is specifically configured to:
connecting the polygon grids respectively corresponding to the polygons to generate an initial three-dimensional grid model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the polygons to obtain a three-dimensional grid model.
Optionally, the GIS data of the target area further includes: longitude and latitude coordinate values of vertexes of a plurality of holes; the device further comprises a hole generating unit for:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the sphere coordinate system to obtain the three-dimensional grid model comprising the holes.
Optionally, the GIS data of the target area further includes: model rendering information;
the model rendering unit is specifically configured to:
and rendering the three-dimensional grid model according to the model rendering information to obtain a three-dimensional map model corresponding to the GIS data of the target area.
In a third aspect, the present application provides a readable medium comprising execution instructions which, when executed by a processor of an electronic device, perform the method according to any of the first aspects.
In a fourth aspect, the present application provides an electronic device comprising a processor and a memory storing execution instructions, the processor performing the method according to any one of the first aspects when executing the execution instructions stored in the memory.
According to the technical scheme, the three-dimensional map model generation method can be used for acquiring GIS data of a target area; then, according to the GIS data of the target area, the coordinate value of the GIS data under a sphere coordinate system can be determined; then, a three-dimensional grid model can be generated according to the coordinate values of the GIS data under a sphere coordinate system; and then, rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area. Therefore, the three-dimensional map model corresponding to the GIS data of the target area can be automatically generated according to the GIS data of the target area without manually creating the three-dimensional map model as in the prior art, so that the problems of modeling errors, low efficiency, time and labor consumption caused by operation errors easily occurring in the manual creation process can be avoided, the efficiency and the accuracy of creating the three-dimensional map model are improved, and the user experience is further improved.
Further effects of the above-described non-conventional preferred embodiments will be described below in connection with the detailed description.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present application, the drawings that are required for the description of the embodiments or prior art will be briefly described below, it being apparent that the drawings in the following description are only some of the embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for generating a three-dimensional map model according to an embodiment of the present application;
FIG. 2 is a schematic view of an effect of a three-dimensional mesh model after rendering according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a three-dimensional map model generating apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
At present, the traditional method for creating the three-dimensional model is to create the three-dimensional model manually, meanwhile, the Cartesian coordinate system used by the three-dimensional modeling software is inconsistent with the coordinate system used in the GIS (geographic information system ), so that the modeling is time-consuming and labor-consuming, the efficiency is low, the problem of modeling errors caused by operation errors easily occurs in the manual creation process, and the three-dimensional model cannot be used in combination with the GIS engine. Therefore, a new generation scheme of the three-dimensional map model is needed.
The application provides a three-dimensional map model generation method, which can firstly acquire GIS data of a target area; then, according to the GIS data of the target area, the coordinate value of the GIS data under a sphere coordinate system can be determined; then, a three-dimensional grid model can be generated according to the coordinate values of the GIS data under a sphere coordinate system; and then, rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area. Therefore, the three-dimensional map model corresponding to the GIS data of the target area can be automatically generated according to the GIS data of the target area without manually creating the three-dimensional map model as in the prior art, so that the problems of modeling errors, low efficiency, time and labor consumption caused by operation errors easily occurring in the manual creation process can be avoided, the efficiency and the accuracy of creating the three-dimensional map model are improved, and the user experience is further improved.
It should be noted that the embodiments of the present application may be applied to an electronic device (such as a mobile phone, a tablet, etc.) or a server. In addition to the above-mentioned embodiments, other embodiments are possible, and the present invention is not limited thereto.
Various non-limiting embodiments of the present application are described in detail below with reference to the attached drawing figures.
Referring to fig. 1, a method for generating a three-dimensional map model in an embodiment of the present application is shown, where in the embodiment, the method may include the following steps:
s101: and acquiring GIS data of the target area.
In this embodiment, geographic information system (Geographic Information System or Geo-Information system, GIS) data may be preset, where the GIS data includes a plurality of regions, and the region may be determined to be a target region in response to a user's operation on a region in the GIS data (for example, by clicking or delineating a region), and GIS data of the target region is extracted from the preset GIS data.
S102: and determining coordinate values of the GIS data under a sphere coordinate system according to the GIS data of the target area.
In this embodiment, the GIS data of the target area may include longitude and latitude coordinate values, specifically, the target area may include a plurality of points (i.e., a specific coordinate point), and the GIS data of the target area may include longitude and latitude coordinate values corresponding to each of the plurality of points in the target area.
After the GIS data of the target area are obtained, the coordinate value of the GIS data under the sphere coordinate system can be determined according to the latitude coordinate value of the target area. That is, in acquiring the longitude and latitude coordinate values respectively corresponding to the plurality of points in the target area, the coordinate values respectively corresponding to the points in the sphere coordinate system can be determined according to the longitude and latitude coordinate values respectively corresponding to the points.
For example, assume that the sphere coordinate system is an ink-card-holder (Mercator) projection system (i.e., web Mercator), and that the origin of the coordinate system of the ink-card-holder projection is (0, λ) 0 ) Wherein the x-axis of the origin of the coordinate system representing the origin corresponds to the equator, and the y-axis of the origin has the longitude lambda 0 When the coordinate value is perpendicular to the equator, the latitude coordinate value of the target area can be converted into the coordinate value of the GIS data under a sphere coordinate system by using the following formula:
where λ is the longitude of a point in the target area, Φ is the latitude of a point in the target area, x and y are the longitude and latitude coordinates of a point in the target area, respectively, after being converted into Web Mercator coordinates, the Web Mercator coordinates correspond to values on the X, Y coordinate axes respectively (i.e., the coordinate values of the longitude and latitude coordinate values of the point in the target area under the sphere coordinate system).
S103: and generating a three-dimensional grid model according to the coordinate values of the GIS data under the sphere coordinate system.
In this embodiment, the GIS data of the target area may further include longitude and latitude coordinate values of vertices of a plurality of polygons. It may be understood that the target area may include a plurality of polygons, where the plurality of polygons are spliced together to obtain the target area, each polygon may include a plurality of vertices, and each vertex has its corresponding longitude and latitude coordinate value, where the polygon may be a square, triangle, rectangle, pentagon, diamond, or other polygons, and it should be noted that, in this embodiment, the specific shape of the polygon is not limited.
In this embodiment, for each polygon, a polygon mesh corresponding to the polygon may be generated according to coordinate values of vertices of the polygon in a sphere coordinate system. Specifically, the coordinate values of each vertex of the polygon under the sphere coordinate system are determined first, then each vertex of the polygon is sequentially connected according to the coordinate values of each vertex of the polygon under the sphere coordinate system, a closed polygon area is obtained, and the closed polygon area is used as a polygon mesh corresponding to the polygon.
Then, a three-dimensional mesh model may be generated according to the polygon meshes respectively corresponding to the plurality of polygons. In the GIS data, the connection relationships between the plurality of polygons are stored in advance, and at this time, the polygon meshes corresponding to the plurality of polygons respectively may be connected according to the connection relationships between the plurality of polygons, so as to generate an initial three-dimensional mesh model, that is, the polygon meshes corresponding to the plurality of polygons respectively are connected according to the connection relationships between the polygons corresponding to the plurality of polygon meshes respectively, so as to generate the initial three-dimensional mesh model.
It should be noted that, because the heights of the respective regions are different in the target region, in one implementation manner, the GIS data of the target region may include depth information (i.e., the height/depth corresponding to the polygon) corresponding to each of the plurality of polygons, where in this embodiment, the plurality of polygons may be understood as one or may be understood as a plurality of polygons. In this embodiment, the multiple polygons may be connected to the corresponding polygon meshes to generate an initial three-dimensional mesh model; and then, respectively adjusting the depth of each polygon according to the depth information corresponding to each of the plurality of polygons to obtain a three-dimensional grid model.
It should be noted that, in the case that there may be a hole in the target area, therefore, in an implementation manner of the present application, GIS data of the target area may further include: longitude and latitude coordinate values of vertexes of a plurality of holes. Accordingly, after the step of generating a three-dimensional mesh model according to the polygon meshes respectively corresponding to the plurality of polygons, the method further includes the steps of:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the sphere coordinate system to obtain the three-dimensional grid model comprising the holes.
It can be understood that in this embodiment, the coordinate values of the vertices of the holes under the sphere coordinate system may be determined according to the longitude and latitude coordinate values of the vertices of the holes. That is, after obtaining the longitude and latitude coordinate values respectively corresponding to the vertices of the multiple holes in the target area, the coordinate values respectively corresponding to the vertices of the multiple holes under a sphere coordinate system (such as a Mercator) projection system can be determined according to the longitude and latitude coordinate values respectively corresponding to the vertices of the multiple holes. And then, according to the coordinate values of the vertexes of the holes in the sphere coordinate system, determining the positions corresponding to the vertexes of the holes on the three-dimensional grid model (namely, the positions of the vertexes of the holes on the three-dimensional grid model). Next, the plurality of holes may be generated on the three-dimensional mesh model according to positions of the respective vertices of the respective holes on the three-dimensional mesh model, so that a three-dimensional mesh model including the plurality of holes may be obtained.
S104: rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area.
In this embodiment, after the three-dimensional grid model is obtained, three-dimensional layer rendering may be performed on the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area. In one implementation, the GIS data of the target area further includes: the model rendering information may understand a target effect of rendering the three-dimensional grid model, that is, a desired rendering effect corresponding to the three-dimensional map model, for example, the model rendering information may include information such as a three-dimensional model color, transparency, and adding diffuse reflection materials. In this implementation manner, the three-dimensional grid model may be rendered according to the model rendering information (for example, the front, the back, and the two sides of the grid surface in the three-dimensional grid model may be rendered), so as to obtain a three-dimensional map model corresponding to the GIS data of the target area. For example, as shown in fig. 2, an effect diagram after rendering a three-dimensional grid model is shown.
According to the technical scheme, the three-dimensional map model generation method can be used for acquiring GIS data of a target area; then, according to the GIS data of the target area, the coordinate value of the GIS data under a sphere coordinate system can be determined; then, a three-dimensional grid model can be generated according to the coordinate values of the GIS data under a sphere coordinate system; and then, rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area. Therefore, the three-dimensional map model corresponding to the GIS data of the target area can be automatically generated according to the GIS data of the target area without manually creating the three-dimensional map model as in the prior art, so that the problems of modeling errors, low efficiency, time and labor consumption caused by operation errors easily occurring in the manual creation process can be avoided, the efficiency and the accuracy of creating the three-dimensional map model are improved, and the user experience is further improved.
Referring to fig. 3, a three-dimensional map model generating apparatus according to an embodiment of the present application is shown. The apparatus of this embodiment is an entity apparatus for performing the method of the foregoing embodiment. The technical solution is essentially the same as the above embodiment, and the device in this embodiment includes:
a data acquisition unit 301, configured to acquire GIS data of a target area;
a coordinate determining unit 302, configured to determine coordinate values of the GIS data in a sphere coordinate system according to GIS data of the target area;
a model generating unit 303, configured to generate a three-dimensional grid model according to coordinate values of the GIS data in a sphere coordinate system;
and the model rendering unit 304 is configured to render the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area.
Optionally, the GIS data of the target area includes longitude and latitude coordinate values; the coordinate determining unit 302 is specifically configured to:
and determining coordinate values of the GIS data under a sphere coordinate system according to the latitude coordinate values of the target area.
Optionally, the sphere coordinate system is an ink-card-holder (Mercator) projection system.
Optionally, the GIS data of the target area includes longitude and latitude coordinate values of vertices of a plurality of polygons; the model generating unit 303 is specifically configured to:
generating a polygon mesh corresponding to each polygon according to the coordinate value of the vertex of the polygon under the sphere coordinate system;
and generating a three-dimensional grid model according to the polygon grids respectively corresponding to the polygons.
Optionally, the GIS data of the target area includes depth information corresponding to each of the plurality of polygons; the model generating unit 303 is specifically configured to:
connecting the polygon grids respectively corresponding to the polygons to generate an initial three-dimensional grid model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the polygons to obtain a three-dimensional grid model.
Optionally, the GIS data of the target area further includes: longitude and latitude coordinate values of vertexes of a plurality of holes; the device further comprises a hole generating unit for:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the sphere coordinate system to obtain the three-dimensional grid model comprising the holes.
Optionally, the GIS data of the target area further includes: model rendering information;
the model rendering unit 304 is specifically configured to:
and rendering the three-dimensional grid model according to the model rendering information to obtain a three-dimensional map model corresponding to the GIS data of the target area.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. At the hardware level, the electronic device comprises a processor, optionally an internal bus, a network interface, a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry StandardArchitecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry StandardArchitecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that executes instructions may be executed. The memory may include memory and non-volatile storage and provide the processor with instructions and data for execution.
In one possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory into the memory and then executes the execution instruction, and may also acquire the corresponding execution instruction from other devices to form the generating device of the three-dimensional map model on a logic level. The processor executes the execution instructions stored in the memory to implement the method for generating a three-dimensional map model provided in any embodiment of the present application through the execution of the execution instructions.
The method executed by the apparatus for generating a three-dimensional map model according to the embodiment shown in fig. 1 of the present application may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-Programmable gate arrays (FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The embodiment of the application also provides a readable medium, wherein the readable storage medium stores execution instructions, and when the stored execution instructions are executed by a processor of electronic equipment, the electronic equipment can be enabled to execute the method for generating the three-dimensional map model provided in any embodiment of the application, and the method is specifically used for executing the method for generating the three-dimensional map model.
The electronic device described in the foregoing embodiments may be a computer.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware aspects.
All embodiments in the application are described in a progressive manner, and identical and similar parts of all embodiments are mutually referred, so that each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (9)

1. A method for generating a three-dimensional map model, the method comprising:
acquiring GIS data of a target area;
according to the GIS data of the target area, determining coordinate values of the GIS data under a sphere coordinate system;
generating a three-dimensional grid model according to coordinate values of the GIS data under a sphere coordinate system;
rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to GIS data of the target area;
the GIS data of the target area comprises longitude and latitude coordinate values of vertexes of a plurality of polygons;
the generating a three-dimensional grid model according to the coordinate values of the GIS data under a sphere coordinate system comprises the following steps:
generating a polygon mesh corresponding to each polygon according to the coordinate value of the vertex of the polygon under the sphere coordinate system;
and generating a three-dimensional grid model according to the polygon grids respectively corresponding to the polygons.
2. The method of claim 1, wherein the GIS data of the target area includes latitude and longitude coordinate values; the determining the coordinate value of the GIS data under the sphere coordinate system according to the GIS data of the target area comprises the following steps:
and determining coordinate values of the GIS data under a sphere coordinate system according to the latitude coordinate values of the target area.
3. The method of claim 1 or 2, wherein the sphere coordinate system is an ink-card-holder (Mercator) projection system.
4. The method of claim 1, wherein the GIS data of the target area includes depth information corresponding to each of a plurality of polygons;
generating a three-dimensional grid model according to the polygon grids respectively corresponding to the polygons, wherein the three-dimensional grid model comprises the following steps:
connecting the polygon grids respectively corresponding to the polygons to generate an initial three-dimensional grid model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the polygons to obtain a three-dimensional grid model.
5. The method of claim 1 or 4, wherein the GIS data of the target area further comprises: longitude and latitude coordinate values of vertexes of a plurality of holes;
after the step of generating a three-dimensional mesh model according to the polygon meshes respectively corresponding to the plurality of polygons, the method further comprises:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the sphere coordinate system to obtain the three-dimensional grid model comprising the holes.
6. The method of any one of claims 1-2, 4, wherein the GIS data of the target area further comprises: model rendering information;
rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to GIS data of the target area, wherein the three-dimensional map model comprises the following components:
and rendering the three-dimensional grid model according to the model rendering information to obtain a three-dimensional map model corresponding to the GIS data of the target area.
7. A three-dimensional map model generation apparatus, characterized in that the apparatus comprises:
the data acquisition unit is used for acquiring GIS data of a target area, wherein the GIS data of the target area comprises longitude and latitude coordinate values of vertexes of a plurality of polygons;
the coordinate determining unit is used for determining coordinate values of the GIS data under a sphere coordinate system according to the GIS data of the target area;
the model generating unit is used for generating a three-dimensional grid model according to the coordinate values of the GIS data under a sphere coordinate system; the generating a three-dimensional grid model according to the coordinate values of the GIS data under a sphere coordinate system comprises the following steps: generating a polygon mesh corresponding to each polygon according to the coordinate value of the vertex of the polygon under the sphere coordinate system; generating a three-dimensional grid model according to the polygon grids respectively corresponding to the polygons;
and the model rendering unit is used for rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area.
8. An electronic device, comprising: a processor and a memory for storing a program; the processor is configured to run the program to implement the method of generating a three-dimensional map model according to any one of claims 1 to 6.
9. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of generating a three-dimensional map model according to any one of claims 1-6.
CN202110448835.3A 2021-04-25 2021-04-25 Three-dimensional map model generation method and device Active CN113034688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110448835.3A CN113034688B (en) 2021-04-25 2021-04-25 Three-dimensional map model generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110448835.3A CN113034688B (en) 2021-04-25 2021-04-25 Three-dimensional map model generation method and device

Publications (2)

Publication Number Publication Date
CN113034688A CN113034688A (en) 2021-06-25
CN113034688B true CN113034688B (en) 2024-01-30

Family

ID=76457732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110448835.3A Active CN113034688B (en) 2021-04-25 2021-04-25 Three-dimensional map model generation method and device

Country Status (1)

Country Link
CN (1) CN113034688B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113781893A (en) * 2021-09-18 2021-12-10 万翼科技有限公司 Traffic route three-dimensional model generation method, device, equipment and storage medium
CN114333413A (en) * 2022-01-10 2022-04-12 成都四方伟业软件股份有限公司 Three-dimensional visualization method and device based on parking lot

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050096255A (en) * 2004-03-29 2005-10-05 삼성탈레스 주식회사 Coordinate conversion method by selecting spheroid
KR101032397B1 (en) * 2010-02-26 2011-05-03 고려대학교 산학협력단 Apparatus and method for representing 3d shape using spherical coordinate system
CN102214368A (en) * 2010-04-07 2011-10-12 北京国遥新天地信息技术有限公司 Implementation method of three dimensional full-dimension digital globe
CN103493036A (en) * 2011-02-23 2014-01-01 谷歌公司 Map creation
KR101659780B1 (en) * 2016-02-23 2016-09-27 (주)이지스 Method for Representing Global Spherical Space of 2 Dimentional Drawing data in GIS
CN109859613A (en) * 2019-01-18 2019-06-07 驭势(上海)汽车科技有限公司 A kind of high-precision cartography method and mobile unit based on projected coordinate system
KR20190072105A (en) * 2017-12-15 2019-06-25 주식회사 상헌 Apparatus for providing 3d terrain and facility data using online map open api and method thereof
CN110363844A (en) * 2019-07-16 2019-10-22 华北科技学院 A kind of coal mine roadway three-dimensional modeling method and system
CN110458930A (en) * 2019-08-13 2019-11-15 网易(杭州)网络有限公司 Rendering method, device and the storage medium of three-dimensional map
CN110910504A (en) * 2019-11-28 2020-03-24 北京世纪高通科技有限公司 Method and device for determining three-dimensional model of region
CN112085826A (en) * 2020-09-27 2020-12-15 广州海格星航信息科技有限公司 Efficient three-dimensional space grid rendering method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100624457B1 (en) * 2005-01-08 2006-09-19 삼성전자주식회사 Depth-image based modeling method and apparatus

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050096255A (en) * 2004-03-29 2005-10-05 삼성탈레스 주식회사 Coordinate conversion method by selecting spheroid
KR101032397B1 (en) * 2010-02-26 2011-05-03 고려대학교 산학협력단 Apparatus and method for representing 3d shape using spherical coordinate system
CN102214368A (en) * 2010-04-07 2011-10-12 北京国遥新天地信息技术有限公司 Implementation method of three dimensional full-dimension digital globe
CN103493036A (en) * 2011-02-23 2014-01-01 谷歌公司 Map creation
KR101659780B1 (en) * 2016-02-23 2016-09-27 (주)이지스 Method for Representing Global Spherical Space of 2 Dimentional Drawing data in GIS
KR20190072105A (en) * 2017-12-15 2019-06-25 주식회사 상헌 Apparatus for providing 3d terrain and facility data using online map open api and method thereof
CN109859613A (en) * 2019-01-18 2019-06-07 驭势(上海)汽车科技有限公司 A kind of high-precision cartography method and mobile unit based on projected coordinate system
CN110363844A (en) * 2019-07-16 2019-10-22 华北科技学院 A kind of coal mine roadway three-dimensional modeling method and system
CN110458930A (en) * 2019-08-13 2019-11-15 网易(杭州)网络有限公司 Rendering method, device and the storage medium of three-dimensional map
CN110910504A (en) * 2019-11-28 2020-03-24 北京世纪高通科技有限公司 Method and device for determining three-dimensional model of region
CN112085826A (en) * 2020-09-27 2020-12-15 广州海格星航信息科技有限公司 Efficient three-dimensional space grid rendering method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
全国信息化计算机应用技术资格认证管理中心.AutoCAD辅助设计标准教程.北京理工大学出版社,2006,第147页. *
基于改进Web墨卡托投影的瓦片地图服务设计与实现;李鹤元;陈刚;;测绘工程(第02期);第11-16页 *

Also Published As

Publication number Publication date
CN113034688A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113034688B (en) Three-dimensional map model generation method and device
US11810240B2 (en) Methods and systems for constructing ray tracing acceleration structures
CN111133472B (en) Method and apparatus for infrastructure design using 3D reality data
CN114723870B (en) Three-dimensional model rendering method and system
CN109683858B (en) Data processing method and device
CN111986326A (en) Construction method and device of three-dimensional road model, computer equipment and storage medium
CN115222806A (en) Polygon processing method, device, equipment and computer readable storage medium
CN110136262B (en) Water body virtual visualization method and device
CN108744520B (en) Method and device for determining placement position of game model and electronic equipment
CN114494646A (en) Scene rendering method and device and electronic equipment
CA3023564A1 (en) Computer graphics method for terrain rendering
CN109949421B (en) Triangular net cutting method and device
CN110378948B (en) 3D model reconstruction method and device and electronic equipment
CN111476308A (en) Remote sensing image classification method and device based on prior geometric constraint and electronic equipment
CN110796722A (en) Three-dimensional rendering presentation method and device
CN107393019B (en) Particle-based cloth simulation method and device
CN115511701A (en) Method and device for converting geographic information
CN112711783B (en) Jewelry design method and system based on three-dimensional software and illusion engine
CN115311401A (en) Method and device for drawing model map and electronic equipment
CN114817619A (en) Map generation method, system, medium, and apparatus based on grid re-projection
GB2593946A (en) Methods and systems for constructing ray tracing acceleration structures
CN109410304B (en) Projection determination method, device and equipment
EP3940650A1 (en) Methods and systems for constructing ray tracing acceleration structures
CN115861561B (en) Contour line generation method and device based on semantic constraint
CN115619929A (en) Model generation method and device and electronic equipment

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
GR01 Patent grant