Disclosure of Invention
In order to overcome the problems that the overground and underground integrated model is not combined and the underground model is blocked in the existing overground and underground three-dimensional model integrated display method or at least partially solve the problems, the invention provides an overground and underground three-dimensional model integrated display method and system.
According to a first aspect of the invention, an integrated display method for an overground and underground three-dimensional model is provided, which comprises the following steps:
s1, when capturing a target ground and underground integrated model which is selected by a user in advance, positioning the view angle of the three-dimensional earth surface model which is displayed in advance to the coordinate position of the target ground and underground integrated model; the target overground and underground integrated model is positioned in a pre-constructed overground and underground integrated model library;
s2, constructing an external ball or an external box of the target ground and underground integrated model, and if the ground and underground integrated model contained in the external ball or the external box exists in the ground and underground integrated model library, rendering the ground and underground integrated model contained in the external ball or the external box and hiding the three-dimensional earth surface model.
Specifically, the step S1 is preceded by:
constructing a three-dimensional sphere at a browser end based on a WebGL technology;
and after the global satellite image and the digital elevation model which are acquired in advance are registered, the global satellite image and the digital elevation model are superposed on the three-dimensional sphere to form a three-dimensional earth surface model.
Specifically, the step S1 is preceded by:
and S0, if the data ranges of the various aboveground models and the various underground models which are acquired in advance have intersection, performing integrated modeling on the various aboveground models and the various underground models, and constructing an underground and aboveground integrated model library based on a plurality of underground and aboveground models which are acquired by the integrated modeling.
Specifically, the method further includes, between the steps S0 and S1:
displaying a list of the overground and underground integrated models corresponding to the area names in a pre-constructed overground and underground integrated model library according to the area names input by a user, so that the user can select the overground and underground integrated models from the list; and the area names are stored in association with the various overground and underground integrated models in the overground and underground integrated model library in advance, and the overground and underground integrated model selected from the list by the user is used as a target overground and underground integrated model.
Specifically, the method further includes, between the steps S0 and S1:
and displaying the overground and underground integrated model corresponding to the coordinate position clicked by the user or the framed coordinate range in the overground and underground integrated model library according to the coordinate position clicked by the user on the three-dimensional earth surface model or the framed coordinate range.
Specifically, the steps between the step S1 and the step S2 further include:
and zooming the three-dimensional earth surface model according to the zoom scale set by the user.
Specifically, the steps between the step S1 and the step S2 further include:
and displaying the earth surface model corresponding to the area name in the three-dimensional earth surface model according to the area name of the target ground and underground integrated model.
According to a second aspect of the present invention, there is provided an integrated display system for an overground and underground three-dimensional model, comprising:
the display module is used for positioning a pre-displayed visual angle of the three-dimensional earth surface model to the coordinate position of the target ground and underground integrated model when capturing the target ground and underground integrated model which is selected by a user and constructed in advance; the target overground and underground integrated model is positioned in a pre-constructed overground and underground integrated model library;
and the rendering module is used for constructing an external sphere or an external box of the target overground and underground integrated model, if the overground and underground integrated model with the coordinate position completely positioned in the external sphere or the external box exists in the overground and underground integrated model library, rendering the overground and underground integrated model with the coordinate position completely positioned in the external sphere or the external box, and hiding the three-dimensional earth surface model.
According to a third aspect of the present invention, there is provided an integrated display apparatus for an overground and underground three-dimensional model, comprising:
at least one processor, at least one memory, and a bus; wherein,
the processor and the memory complete mutual communication through the bus;
the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the method as previously described.
According to a fourth aspect of the invention, there is provided a non-transitory computer readable storage medium storing a computer program of the method as described above.
The invention provides an integrated display method and system for an overground and underground three-dimensional model, wherein the method positions a pre-displayed visual angle of the three-dimensional earth surface model to a coordinate position of a target overground and underground integrated model, thereby positioning the specific position of the target overground and underground integrated model, displaying the outline of the periphery, and hiding the three-dimensional earth surface model when the target overground and underground integrated model is displayed, so that the target overground and underground model is not shielded by the surrounding surface model, and the target overground and underground model can be viewed in all directions.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In an embodiment of the present invention, an integrated displaying method for an underground and aboveground three-dimensional model is provided, and fig. 4 is an overall flowchart of the integrated displaying method for the underground and aboveground three-dimensional model provided in the embodiment of the present invention, and the method includes: s1, when capturing the target ground and underground integrated model which is selected by the user in advance, positioning the pre-displayed visual angle of the three-dimensional earth surface model to the coordinate position of the target ground and underground integrated model; the target overground and underground integrated model is positioned in a pre-constructed overground and underground integrated model library;
in S1, the target above-ground and underground integrated model is a three-dimensional above-ground and underground integrated model to be displayed. The overground and underground integrated model is a combination of a three-dimensional overground model and a three-dimensional underground model with intersection of coordinate positions. The target ground and underground integrated model is constructed in advance, and a user selects the model according to actual needs. The three-dimensional earth surface model is a pre-constructed surface model of the entire earth, as shown in fig. 5. Firstly, a target ground and underground integrated model selected by a user is obtained, and then a pre-displayed visual angle of the three-dimensional earth surface model is positioned to the coordinate position of the target ground and underground integrated model, so that the coordinate position of the target ground and underground integrated model is positioned on the three-dimensional earth surface model. And the coordinate positions of the target ground and underground integrated model are a series of longitude and latitude coordinates. For example, as shown in fig. 6, when the user clicks the first above-ground and underground integrated model in the left above-ground and underground integrated model list, the three-dimensional earth surface model with the first above-ground and underground integrated model as the viewing angle is displayed in the right window, and only the above-ground model corresponding to the first above-ground and underground integrated model is visible in the three-dimensional earth surface model.
And S2, constructing an external ball or an external box of the target overground and underground integrated model, and rendering the overground and underground integrated model contained in the external ball or the external box and hiding the three-dimensional earth surface model if the overground and underground integrated model contained in the external ball or the external box exists in the overground and underground integrated model library.
And S2, the external sphere of the target ground and underground integrated model is the smallest sphere containing the target ground and underground integrated model. The external box of the target integrated model is the smallest cube containing the target integrated model. And determining an external ball or an external box of the target underground and underground integrated model according to the triangular vertex coordinates of the target underground and underground integrated model. A plurality of overground and underground integrated models including a target overground and underground integrated model are stored in the overground and underground integrated model library. And judging whether the overground and underground integrated models in each region in the overground and underground integrated model library are within the range of the external ball or the external box according to the range of the external ball or the external box of the target overground and underground integrated model. And rendering the overground and underground integrated model with the coordinate position located in or above the coordinate position of the external ball or the external box, namely displaying the overground and underground integrated model in the interface. The overground and underground integrated model contained in the external ball or the external box comprises a target overground and underground integrated model. And meanwhile, the three-dimensional earth surface model is hidden, namely not displayed. Thereby stripping the target above-ground integrated model from the three-dimensional earth surface model and displaying only the target above-ground integrated model, as shown in fig. 7. FIG. 7 shows, on the left, a list containing the target above-ground and other above-ground integration models, and in the middle, the target above-ground and underground integration model. The target overground and underground integrated model can be dragged to be checked in an all-round mode at 360 degrees after being clicked by a mouse. The target ground and underground integrated model can be zoomed through a mouse wheel, and the details of the target ground and underground integrated model can be seen under the condition of amplification. The embodiment realizes the display of the integrated model of the ground and the underground by using a third-party open source framework Cesium.
In the embodiment, the pre-displayed visual angle of the three-dimensional earth surface model is positioned to the coordinate position of the target overground and underground integrated model, so that the specific position of the target overground and underground integrated model is positioned, the surrounding general situation is displayed, and the three-dimensional earth surface model is hidden when the target overground and underground integrated model is displayed, so that the target overground and underground model is not shielded by the surrounding ground surface model, and the target overground and underground model can be viewed in all directions.
On the basis of the foregoing embodiment, step S1 in this embodiment further includes: constructing a three-dimensional sphere at a browser end based on a WebGL technology; and after the pre-acquired global satellite image and the digital elevation model are registered, the global satellite image and the digital elevation model are superposed on a three-dimensional sphere to form a three-dimensional earth surface model.
Specifically, WebGL is a 3D drawing protocol, and this drawing technology standard allows JavaScript and OpenGL ES 2.0 to be combined together, and can provide hardware 3D accelerated rendering for Canvas in HTML5, so that a dedicated rendering plug-in is not required when a web page is developed. The global satellite image map is an image map which has a certain mathematical basis and is formed by inlaying and splicing a plurality of satellite remote sensing images according to geographical coordinates of the satellite remote sensing images. A Digital Elevation Model (DEM) is a solid ground Model that realizes Digital simulation of ground terrain through limited terrain Elevation data and expresses ground Elevation in the form of a set of ordered numerical arrays. The global satellite imagery and digital elevation model may be published to a data service, which may be accessed via a web link. Firstly, a three-dimensional sphere is constructed at a browser end. The registration of the global satellite image and the digital elevation model refers to the correspondence of the global satellite image and the digital elevation model at the same coordinate position. And superposing the registered global satellite image map and the digital elevation model on the three-dimensional sphere to form a three-dimensional earth surface model, as shown in fig. 5.
On the basis of the foregoing embodiment, step S1 in this embodiment further includes: and S0, if the data ranges of the aboveground models and the underground models which are acquired in advance have intersection, performing integrated modeling on the overground models and the underground models, and constructing an overground and underground integrated model library based on the plurality of overground and underground models acquired through the integrated modeling.
Specifically, whether an intersection exists between each ground model and each underground model is judged according to the data range of each ground model and each underground model acquired in advance. The ground model is an unmanned aerial vehicle oblique photography model. The above ground and below ground models can be published to a data service, which can be accessed through a web link. If the overground models and the underground models have intersections, the overground models and the underground models are subjected to integrated modeling, or the overground models and the underground models having the intersections can be directly used as the overground and underground integrated models for displaying without performing integrated modeling. The integrated modeling is a method for integrating an overground model and an underground model with intersection, a plurality of overground and underground integrated models are obtained after integrated modeling, and an overground and underground integrated model library is constructed by using the plurality of overground and underground integrated models obtained by integrated modeling. The overground and underground integrated model library comprises all the overground and underground integrated models obtained by integrated modeling.
On the basis of the above embodiment, the present embodiment further includes, between steps S0 and S1: displaying a list of the overground and underground integrated models corresponding to the domain names in the pre-constructed overground and underground integrated model library according to the domain names input by the user, so that the user can selectively upload and underground integrated models from the list; the region names and the various overground and underground integrated models in the overground and underground integrated model library are stored in a pre-associated mode, and the overground and underground integrated model selected from the list by the user is used as a target overground and underground integrated model.
Specifically, the area name may be a country name, a city name, a place name, and the like. According to the area name input by the user, displaying a list of the overground and underground integrated models corresponding to the area name in the pre-constructed overground and underground integrated model library, as shown in the left side of fig. 8. And taking the overground and underground integrated model in the list clicked by the user as a target overground and underground integrated model.
On the basis of the above embodiment, the present embodiment further includes, between the steps S0 and S1: and displaying the overground and underground integrated model corresponding to the coordinate position clicked by the user or the framed coordinate range in the overground and underground integrated model library according to the coordinate position clicked by the user on the three-dimensional earth surface model or the framed coordinate range.
On the basis of the foregoing embodiments, in this embodiment, the step S1 and the step S2 further include: and zooming the three-dimensional earth surface model according to the zoom ratio set by the user.
Specifically, the user can zoom the three-dimensional earth surface model using the mouse wheel in a manner similar to map zooming, from the perspective of the target above-ground integrated model, with more and more detail being displayed when the three-dimensional earth surface model is enlarged, so that the surface models around the target above-ground integrated model can be seen in more detail.
On the basis of the foregoing embodiments, in this embodiment, the step S1 and the step S2 further include:
and displaying the earth surface model corresponding to the area name in the three-dimensional earth surface model according to the area name of the target ground and underground integrated model.
Specifically, for example, if the target ground-underground integrated model is "light valley capital building" and the region in which the "light valley capital building" is located is named "light valley square", the surface model corresponding to the "light valley square" in the three-dimensional earth surface model is displayed.
In another embodiment of the present invention, an integrated display system for an overground and underground three-dimensional model is provided, and fig. 9 is a schematic diagram of an overall structure of the integrated display system for the overground and underground three-dimensional model provided by the embodiment of the present invention, and the system includes a display module 1 and a rendering module 2; wherein:
the display module 1 is used for positioning a pre-displayed visual angle of the three-dimensional earth surface model to a coordinate position of a target ground and underground integrated model when capturing the target ground and underground integrated model which is selected by a user and constructed in advance; the target overground and underground integrated model is positioned in a pre-constructed overground and underground integrated model library;
the target overground and underground integrated model is a three-dimensional overground and underground integrated model needing displaying. The overground and underground integrated model is a combination of a three-dimensional overground model and a three-dimensional underground model with intersection of coordinate positions. The target ground and underground integrated model is constructed in advance, and a user selects the model according to actual needs. The three-dimensional earth surface model is a pre-constructed surface model of the entire earth, as shown in fig. 5. The display module 1 firstly obtains a target ground and underground integrated model selected by a user, and then positions a pre-displayed view angle of the three-dimensional earth surface model to a coordinate position of the target ground and underground integrated model, so as to position the coordinate position of the target ground and underground integrated model on the three-dimensional earth surface model. And the coordinate positions of the target ground and underground integrated model are a series of longitude and latitude coordinates. For example, as shown in fig. 6, when the user clicks the first above-ground and underground integrated model in the left above-ground and underground integrated model list, the three-dimensional earth surface model with the first above-ground and underground integrated model as the viewing angle is displayed in the right window, and only the above-ground model corresponding to the first above-ground and underground integrated model is visible in the three-dimensional earth surface model.
The rendering module 2 is used for constructing an external sphere or an external box of the target overground and underground integrated model, if the overground and underground integrated model with the coordinate position completely positioned in the external sphere or the external box exists in the overground and underground integrated model library, rendering the overground and underground integrated model with the coordinate position completely positioned in the external sphere or the external box, and hiding the three-dimensional earth surface model.
The external sphere of the target overground and underground integrated model is the smallest sphere containing the target overground and underground integrated model. The external box of the target integrated model is the smallest cube containing the target integrated model. And the rendering module 2 determines an external sphere or an external box of the target overground and underground integrated model according to the triangular vertex coordinates of the target overground and underground integrated model. A plurality of overground and underground integrated models including a target overground and underground integrated model are stored in the overground and underground integrated model library. And judging whether the overground and underground integrated models in various places in the overground and underground integrated model library are within the range of the external ball or the external box according to the range of the external ball or the external box of the target overground and underground integrated model. And rendering the overground and underground integrated model with the coordinate position located in or above the coordinate position of the external ball or the external box, namely displaying the overground and underground integrated model in the interface. The overground and underground integrated model contained in the external ball or the external box comprises a target overground and underground integrated model and possibly other overground and underground integrated models near the target overground and underground integrated model. And meanwhile, the three-dimensional earth surface model is hidden, namely not displayed. Thereby stripping the target above-ground integrated model from the three-dimensional earth surface model and displaying only the target above-ground integrated model, as shown in fig. 7. FIG. 7 shows, on the left, a list containing the target above-ground and other above-ground integration models, and in the middle, the target above-ground and underground integration model. The target overground and underground integrated model can be dragged to be checked in an all-round mode at 360 degrees after being clicked by a mouse. The target ground and underground integrated model can be zoomed through a mouse wheel, and the details of the target ground and underground integrated model can be seen under the condition of amplification. The embodiment realizes the display of the integrated model of the ground and the underground by using a third-party open source framework Cesium.
In the embodiment, the pre-displayed visual angle of the three-dimensional earth surface model is positioned to the coordinate position of the target overground and underground integrated model, so that the specific position of the target overground and underground integrated model is positioned, the surrounding general situation is displayed, and the three-dimensional earth surface model is hidden when the target overground and underground integrated model is displayed, so that the target overground and underground model is not shielded by the surrounding ground surface model, and the target overground and underground model can be viewed in all directions.
On the basis of the above embodiment, the embodiment further includes a first constructing module, configured to construct a three-dimensional sphere at the browser end based on the WebGL technology; and after the pre-acquired global satellite image and the digital elevation model are registered, the global satellite image and the digital elevation model are superposed on a three-dimensional sphere to form a three-dimensional earth surface model.
On the basis of the above embodiment, the present embodiment further includes a second building module, configured to, if there is an intersection between data ranges of the above-ground models and the below-ground models that are obtained in advance, perform integrated modeling on the above-ground models and the below-ground models, and build an above-ground and underground integrated model library based on a plurality of above-ground and underground models that are obtained through the integrated modeling.
On the basis of the above embodiment, the present embodiment further includes a first selection module, configured to display a list of the above-ground and underground integrated models corresponding to the domain names in the pre-constructed above-ground and underground integrated model library according to the domain names input by the user, so that the user can select the above-ground and underground integrated models from the list; the region names and the various overground and underground integrated models in the overground and underground integrated model library are stored in a pre-associated mode, and the overground and underground integrated model selected from the list by the user is used as a target overground and underground integrated model.
On the basis of the above embodiment, the present embodiment further includes a second selection module, configured to display, according to a coordinate position clicked by the user on the three-dimensional earth surface model or a framed coordinate range, the above-ground and underground integrated model corresponding to the coordinate position clicked by the user or the framed coordinate range in the above-ground and underground integrated model library.
On the basis of the above embodiment, the embodiment further includes a scaling module, configured to scale the three-dimensional earth surface model according to a scaling set by a user.
On the basis of the above embodiment, the present embodiment further includes an intermediate module, configured to display, according to a name of an area where the target ground and underground integrated model is located, a surface model corresponding to the name of the area in the three-dimensional earth surface model.
The embodiment provides an integrated display device for an overground and underground three-dimensional model, and fig. 10 is a schematic diagram of an overall structure of the integrated display device for the overground and underground three-dimensional model, which is provided by the embodiment of the invention, and the device comprises: at least one processor 101, at least one memory 102, and a bus 103; wherein,
the processor 101 and the memory 102 communicate with each other through the bus 103;
the memory 102 stores program instructions executable by the processor 101, and the processor calls the program instructions to execute the methods provided by the method embodiments, for example, the method includes: s1, when capturing the target ground and underground integrated model which is selected by the user in advance, positioning the pre-displayed visual angle of the three-dimensional earth surface model to the coordinate position of the target ground and underground integrated model; the target overground and underground integrated model is positioned in a pre-constructed overground and underground integrated model library; and S2, constructing an external ball or an external box of the target overground and underground integrated model, and rendering the overground and underground integrated model contained in the external ball or the external box and hiding the three-dimensional earth surface model if the overground and underground integrated model contained in the external ball or the external box exists in the overground and underground integrated model library.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: s1, when capturing the target ground and underground integrated model which is selected by the user in advance, positioning the pre-displayed visual angle of the three-dimensional earth surface model to the coordinate position of the target ground and underground integrated model; the target overground and underground integrated model is positioned in a pre-constructed overground and underground integrated model library; and S2, constructing an external ball or an external box of the target overground and underground integrated model, and rendering the overground and underground integrated model contained in the external ball or the external box and hiding the three-dimensional earth surface model if the overground and underground integrated model contained in the external ball or the external box exists in the overground and underground integrated model library.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the integrated display device for the three-dimensional model of the ground and the underground are only schematic, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.