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

Three-dimensional map model generation method and device Download PDF

Info

Publication number
CN113034688A
CN113034688A CN202110448835.3A CN202110448835A CN113034688A CN 113034688 A CN113034688 A CN 113034688A CN 202110448835 A CN202110448835 A CN 202110448835A CN 113034688 A CN113034688 A CN 113034688A
Authority
CN
China
Prior art keywords
gis data
model
target area
dimensional
generating
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
CN202110448835.3A
Other languages
Chinese (zh)
Other versions
CN113034688B (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

Images

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)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Computer Graphics (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; determining coordinate values of the GIS data under a spherical coordinate system according to the GIS data of the target area; generating a three-dimensional grid model according to the coordinate value of the GIS data in the spherical 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 three-dimensional map model is not required to be manually created as in the prior art, so that the problems of modeling error, low efficiency, time consumption and labor consumption caused by operation error 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 application 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 the three-dimensional WebGIS, and the requirement for quickly creating a three-dimensional model and simultaneously combining with a WebGIS geographic engine is higher and higher. However, in the conventional method, a three-dimensional model is created manually, and meanwhile, a cartesian coordinate system used by three-dimensional modeling software is not consistent with a coordinate system used in the GIS, so that problems of time and labor consuming and low efficiency of modeling, modeling errors caused by operation errors easily occur 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.
Disclosure of Invention
The application provides a method for generating a three-dimensional map model, so that the efficiency and the accuracy of creating the three-dimensional map model can be improved, and further the user experience is improved.
In a first aspect, the present application provides a method for generating a three-dimensional map model, the method including:
acquiring GIS data of a target area;
determining coordinate values of the GIS data under a spherical coordinate system according to the GIS data of the target area;
generating a three-dimensional grid model according to the coordinate value of the GIS data in the spherical 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 spherical coordinate system according to the GIS data of the target area comprises the following steps:
and determining the coordinate value of the GIS data under the spherical coordinate system according to the latitude coordinate value of the target area.
Optionally, the spherical coordinate system is a Mercator projection system.
Optionally, the GIS data of the target area includes longitude and latitude coordinate values of vertices of a plurality of polygons; generating a three-dimensional grid model according to the coordinate values of the GIS data in the spherical coordinate system, wherein the three-dimensional grid model comprises the following steps:
aiming at each polygon, generating a polygon mesh corresponding to the polygon according to the coordinate value of the vertex of the polygon under the spherical coordinate system;
and generating a three-dimensional mesh model according to the polygonal meshes respectively corresponding to the plurality of polygons.
Optionally, the GIS data of the target region includes depth information corresponding to each of the plurality of polygons; the generating a three-dimensional mesh model according to the respective polygonal meshes corresponding to the plurality of polygons comprises:
connecting the polygon meshes respectively corresponding to a plurality of polygons to generate an initial three-dimensional mesh model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the plurality of polygons to obtain the three-dimensional mesh model.
Optionally, the GIS data of the target area further includes: longitude and latitude coordinate values of vertexes of the 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 includes:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the spherical 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 rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area comprises the following steps:
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 an apparatus for generating a three-dimensional map model, the apparatus comprising:
the data acquisition unit is used for acquiring GIS data of a target area;
the coordinate determination unit is used for determining the coordinate value of the GIS data under the spherical coordinate system according to the GIS data of the target area;
the model generation unit is used for generating a three-dimensional grid model according to the coordinate value of the GIS data under the spherical 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 determination unit is specifically configured to:
and determining the coordinate value of the GIS data under the spherical coordinate system according to the latitude coordinate value of the target area.
Optionally, the spherical coordinate system is a 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 generation unit is specifically configured to:
aiming at each polygon, generating a polygon mesh corresponding to the polygon according to the coordinate value of the vertex of the polygon under the spherical coordinate system;
and generating a three-dimensional mesh model according to the polygonal meshes respectively corresponding to the plurality of polygons.
Optionally, the GIS data of the target region includes depth information corresponding to each of the plurality of polygons; the model generation unit is specifically configured to:
connecting the polygon meshes respectively corresponding to a plurality of polygons to generate an initial three-dimensional mesh model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the plurality of polygons to obtain the three-dimensional mesh model.
Optionally, the GIS data of the target area further includes: longitude and latitude coordinate values of vertexes of the plurality of holes; the apparatus further comprises a hole generation 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 spherical 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 executable instructions, which when executed by a processor of an electronic device, perform the method according to any of the first aspect.
In a fourth aspect, the present application provides an electronic device comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
According to the technical scheme, the method for generating the three-dimensional map model can acquire GIS data of a target area; then, according to the GIS data of the target area, determining the coordinate value of the GIS data in a spherical coordinate system; then, a three-dimensional grid model can be generated according to the coordinate value of the GIS data in the spherical 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 method and the device can convert the GIS data of the target area into the coordinate values under the spherical coordinate system, generate the three-dimensional grid model by utilizing the coordinate values under the spherical coordinate system, and then generate the three-dimensional map model corresponding to the GIS data of the target area based on the three-dimensional grid model.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present application, the drawings needed for describing the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic flowchart of a method for generating a three-dimensional map model according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating an effect of a rendered three-dimensional mesh model according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus for generating a three-dimensional map model 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
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the traditional method for creating a three-dimensional model is to create the three-dimensional model manually, and meanwhile, a cartesian coordinate System used by three-dimensional modeling software is inconsistent with a coordinate System used in a GIS (Geographic Information System), so that the problems of time and labor consuming and low efficiency of modeling, modeling errors caused by operation errors easily occur 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 method for generating a three-dimensional map model, which can firstly acquire GIS data of a target area; then, according to the GIS data of the target area, determining the coordinate value of the GIS data in a spherical coordinate system; then, a three-dimensional grid model can be generated according to the coordinate value of the GIS data in the spherical 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 method and the device can convert the GIS data of the target area into the coordinate values under the spherical coordinate system, generate the three-dimensional grid model by utilizing the coordinate values under the spherical coordinate system, and then generate the three-dimensional map model corresponding to the GIS data of the target area based on the three-dimensional grid model.
It should be noted that the embodiment 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 also possible, and are not limited herein.
Various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a method for generating a three-dimensional map model in an embodiment of the present application is shown, and in this embodiment, the method may include the following steps:
s101: and acquiring GIS data of the target area.
In this embodiment, Geographic Information System (GIS) data may be preset, where the GIS data includes a plurality of areas, and in response to a user operating (for example, clicking or circling an area) on an area in the GIS data, the area may be determined as a target area, and the GIS data of the target area may be extracted from the preset GIS data.
S102: and determining the coordinate value of the GIS data under the spherical 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 the plurality of points in the target area respectively.
After the GIS data of the target area are acquired, the coordinate values of the GIS data in the spherical coordinate system can be determined according to the latitude coordinate values of the target area. That is, after the longitude and latitude coordinate values respectively corresponding to the plurality of points in the target area are obtained, the coordinate values respectively corresponding to the points in the spherical 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 the Mercator projection system (Web Mercator), and the origin of the Mercator projection coordinate system is (0, λ)0) Wherein the origin of the coordinate system represents the x-axis of the origin corresponding to the equator and the y-axis of the origin at the longitude of λ0And if the latitude coordinate value is perpendicular to the equator, converting the latitude coordinate value of the target area into a coordinate value of the GIS data in a spherical coordinate system by using the following formula:
Figure BDA0003037838800000071
wherein λ is the longitude of a point in the target region, Φ is the latitude of a point in the target region, and x and y are the longitude and latitude coordinates of a point in the target region, which are converted into the Web Mercator coordinates, and then correspond to the values on the X, Y coordinate axis (i.e. the coordinate values of the longitude and latitude coordinates of the point in the target region in the spherical coordinate system).
S103: and generating a three-dimensional grid model according to the coordinate value of the GIS data in the spherical 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 is to be understood that the target area may include a plurality of polygons, and the plurality of polygons are spliced together to obtain the target area, and each polygon may include a plurality of vertices, and each vertex has a corresponding latitude and longitude coordinate value, where the polygon may be a square, a triangle, a rectangle, a pentagon, a rhombus, or other polygons, and it should be noted that, in this embodiment, a 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 the coordinate values of the vertices of the polygon in the spherical coordinate system. Specifically, the coordinate values of the vertices of the polygon in the spherical coordinate system are determined, and then the vertices of the polygon are sequentially connected according to the coordinate values of the vertices of the polygon in the spherical coordinate system to obtain a closed polygon region, and the closed polygon region is used as the polygon mesh corresponding to the polygon.
Then, a three-dimensional mesh model may be generated from the polygon meshes to which the plurality of polygons respectively correspond. It should be noted that, connection relationships between two polygons of the plurality of polygons are pre-stored in the GIS data, at this time, the polygon meshes respectively corresponding to the plurality of polygons may be connected according to the connection relationships between two polygons of the plurality of polygons, so as to generate an initial three-dimensional mesh model, that is, the polygon meshes respectively corresponding to the plurality of polygons are connected according to the connection relationships between the polygons respectively corresponding to the plurality of polygon meshes, so as to generate the initial three-dimensional mesh model.
It should be noted that, because the target area has different heights in each area, in an implementation manner, the GIS data of the target area may include depth information (i.e., heights/depths corresponding to polygons) corresponding to a plurality of polygons respectively, where it should be noted that in this embodiment, a plurality of polygons may be understood as one or a plurality of polygons. In this embodiment, the polygon meshes corresponding to the plurality of polygons respectively may be connected to generate an initial three-dimensional mesh model; then, the depth of each polygon can be adjusted according to the depth information corresponding to each of the plurality of polygons, so as to obtain a three-dimensional mesh model.
It should be noted that there may be holes in the target area, and therefore, in an implementation manner of the present application, the GIS data of the target area may further include: and the longitude and latitude coordinate values of the vertexes of the holes. Correspondingly, after the step of generating the three-dimensional mesh model according to the polygon meshes respectively corresponding to the plurality of polygons, the method further comprises the following steps:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the spherical 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 in the spherical coordinate system may be determined according to the longitude and latitude coordinate values of the vertices of the holes. That is, after the longitude and latitude coordinate values corresponding to the vertexes of the holes in the target area are obtained, the coordinate values corresponding to the vertexes of the holes in a spherical coordinate system (such as a Mercator projection system) may be determined according to the longitude and latitude coordinate values corresponding to the vertexes of the holes. Then, according to the coordinate values of the vertexes of the holes under the spherical coordinate system, the positions corresponding to the vertexes of the holes (namely the positions of the vertexes of the holes on the three-dimensional mesh model) are determined on the three-dimensional mesh model. Then, the holes may be generated on the three-dimensional mesh model according to the positions of the vertices of the holes on the three-dimensional mesh model, so that the three-dimensional mesh model including the 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: and model rendering information, wherein the model rendering information may understand a target effect of rendering the three-dimensional mesh model, that is, a desired rendering effect corresponding to the three-dimensional map model, and for example, the model rendering information may include information such as a color, a transparency, and an added diffuse reflection material of the three-dimensional model. In this implementation manner, the three-dimensional grid model may be rendered (for example, the front, the back, and both sides of the grid surface in the three-dimensional grid model may be rendered) according to the model rendering information, so as to obtain the three-dimensional map model corresponding to the GIS data of the target area. For example, as shown in fig. 2, a rendered effect diagram of a three-dimensional mesh model is shown.
According to the technical scheme, the method for generating the three-dimensional map model can acquire GIS data of a target area; then, according to the GIS data of the target area, determining the coordinate value of the GIS data in a spherical coordinate system; then, a three-dimensional grid model can be generated according to the coordinate value of the GIS data in the spherical 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 method and the device can convert the GIS data of the target area into the coordinate values under the spherical coordinate system, generate the three-dimensional grid model by utilizing the coordinate values under the spherical coordinate system, and then generate the three-dimensional map model corresponding to the GIS data of the target area based on the three-dimensional grid model.
Fig. 3 shows a specific embodiment of an apparatus for generating a three-dimensional map model according to the present application. The apparatus of this embodiment is a physical apparatus for executing the method of the above embodiment. The technical solution is essentially the same as the above embodiments, and the apparatus in this embodiment includes:
a data acquisition unit 301, configured to acquire GIS data of a target area;
a coordinate determination unit 302, configured to determine, according to the GIS data in the target region, a coordinate value of the GIS data in a spherical coordinate system;
the model generation unit 303 is configured to generate a three-dimensional grid model according to the coordinate value of the GIS data in the spherical coordinate system;
and a model rendering unit 304, 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 determination unit 302 is specifically configured to:
and determining the coordinate value of the GIS data under the spherical coordinate system according to the latitude coordinate value of the target area.
Optionally, the spherical coordinate system is a 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:
aiming at each polygon, generating a polygon mesh corresponding to the polygon according to the coordinate value of the vertex of the polygon under the spherical coordinate system;
and generating a three-dimensional mesh model according to the polygonal meshes respectively corresponding to the plurality of polygons.
Optionally, the GIS data of the target region includes depth information corresponding to each of the plurality of polygons; the model generating unit 303 is specifically configured to:
connecting the polygon meshes respectively corresponding to a plurality of polygons to generate an initial three-dimensional mesh model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the plurality of polygons to obtain the three-dimensional mesh model.
Optionally, the GIS data of the target area further includes: longitude and latitude coordinate values of vertexes of the plurality of holes; the apparatus further comprises a hole generation 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 spherical 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. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a 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, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry standard architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry standard architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding execution instruction from the nonvolatile memory to the memory and then runs the corresponding execution instruction, and the corresponding execution instruction can also be obtained from other equipment so as 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, so that the three-dimensional map model generation method provided by any embodiment of the application is realized through the executed execution instructions.
The method performed by the device for generating a three-dimensional map model according to the embodiment shown in fig. 1 of the present application may be applied to 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 instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed 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 the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The embodiment of the present application further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can be caused to execute the method for generating a three-dimensional map model provided in any embodiment of the present application, and is specifically configured to execute the method for generating the three-dimensional map model.
The electronic device described in the foregoing embodiments may be a computer.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of generating a three-dimensional map model, the method comprising:
acquiring GIS data of a target area;
determining coordinate values of the GIS data under a spherical coordinate system according to the GIS data of the target area;
generating a three-dimensional grid model according to the coordinate value of the GIS data in the spherical coordinate system;
rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area.
2. The method of claim 1, wherein the GIS data for the target area includes longitude and latitude coordinate values; the determining the coordinate value of the GIS data under the spherical coordinate system according to the GIS data of the target area comprises the following steps:
and determining the coordinate value of the GIS data under the spherical coordinate system according to the latitude coordinate value of the target area.
3. The method of claim 1 or 2, wherein the spherical coordinate system is a Mercator projection system.
4. The method of claim 1, wherein the GIS data for the target region includes longitude and latitude coordinate values of vertices of a number of polygons; generating a three-dimensional grid model according to the coordinate values of the GIS data in the spherical coordinate system, wherein the three-dimensional grid model comprises the following steps:
aiming at each polygon, generating a polygon mesh corresponding to the polygon according to the coordinate value of the vertex of the polygon under the spherical coordinate system;
and generating a three-dimensional mesh model according to the polygonal meshes respectively corresponding to the plurality of polygons.
5. The method of claim 4, wherein the GIS data of the target region comprises depth information corresponding to each of a plurality of polygons; the generating a three-dimensional mesh model according to the respective polygonal meshes corresponding to the plurality of polygons comprises:
connecting the polygon meshes respectively corresponding to a plurality of polygons to generate an initial three-dimensional mesh model;
and respectively adjusting the depth of each polygon according to the depth information respectively corresponding to the plurality of polygons to obtain the three-dimensional mesh model.
6. The method of claim 4 or 5, wherein the GIS data of the target region further comprises: longitude and latitude coordinate values of vertexes of the 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 includes:
and generating the holes on the three-dimensional grid model according to the coordinate values of the vertexes of the holes under the spherical coordinate system to obtain the three-dimensional grid model comprising the holes.
7. The method of any of claims 1-2 and 4-5, wherein the GIS data of the target region further comprises: model rendering information;
the rendering the three-dimensional grid model to obtain a three-dimensional map model corresponding to the GIS data of the target area comprises the following steps:
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.
8. An apparatus for generating a three-dimensional map model, the apparatus comprising:
the data acquisition unit is used for acquiring GIS data of a target area;
the coordinate determination unit is used for determining the coordinate value of the GIS data under the spherical coordinate system according to the GIS data of the target area;
the model generation unit is used for generating a three-dimensional grid model according to the coordinate value of the GIS data under the spherical 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.
9. An electronic device, comprising: a processor and a memory for storing a program; the processor is configured to execute the program to implement the method for generating a three-dimensional map model according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to execute the method of generating a three-dimensional map model according to any one of claims 1-7.
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 true CN113034688A (en) 2021-06-25
CN113034688B 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)

Cited By (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 (12)

* 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
US20060152507A1 (en) * 2005-01-08 2006-07-13 Samsung Electronics Co., Ltd. Depth image-based modeling method and apparatus
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

Patent Citations (12)

* 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
US20060152507A1 (en) * 2005-01-08 2006-07-13 Samsung Electronics Co., Ltd. Depth image-based modeling method and apparatus
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 (1)

* Cited by examiner, † Cited by third party
Title
李鹤元;陈刚;: "基于改进Web墨卡托投影的瓦片地图服务设计与实现", 测绘工程, no. 02, pages 147 - 16 *

Cited By (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

Also Published As

Publication number Publication date
CN113034688B (en) 2024-01-30

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
CN113112579A (en) Rendering method, rendering device, electronic equipment and computer-readable storage medium
Nadalutti et al. Rendering of X3D content on mobile devices with OpenGL ES
CN109683858B (en) Data processing method and device
CN112419460B (en) Method, apparatus, computer device and storage medium for baking model map
CN115937439A (en) Method and device for constructing three-dimensional model of urban building and electronic equipment
CN111228816A (en) Scene layout method and device in game
CN116934994B (en) Method, system, equipment and storage medium for building three-dimensional map of EAM equipment distribution
CN116385622B (en) Cloud image processing method, cloud image processing device, computer and readable storage medium
CN112669432A (en) Volume cloud rendering method and device, electronic equipment and storage medium
CN110378948B (en) 3D model reconstruction method and device and electronic equipment
Qiu et al. Web-based 3D map visualization using WebGL
CN110796722A (en) Three-dimensional rendering presentation method and device
CN109410304B (en) Projection determination method, device and equipment
GB2593946A (en) Methods and systems for constructing ray tracing acceleration structures
JP2005043135A (en) Method and apparatus for setting building data of air diffusion simulation system
CN112419459A (en) Method, apparatus, computer device and storage medium for baked model AO mapping
CN112190933A (en) Special effect processing method and device in game scene
CN111311745A (en) Model placing method and device
EP3940650A1 (en) Methods and systems for constructing ray tracing acceleration structures
CN115861561B (en) Contour line generation method and device based on semantic constraint
CN115471550B (en) 2.5-dimensional image space geometric azimuth correction method, device, equipment and medium
CN107943479B (en) Method, device and equipment for defining physical boundary in graphical user interface
CN116030171A (en) Method, device and storage medium for realizing real-time image crushing special effect

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