Method, device and equipment for data integration in two-dimensional and three-dimensional scene and medium
By building a unified reference coordinate system and coordinate transformation model, the viewpoint and data synchronization of the two- and three-dimensional scenes is achieved, and the problem of difficulty in synchronizing the visualization and spatial analysis of two- and three-dimensional scenes in the existing technology is solved, and the two- and three-dimensional integration of the geographical information system is realized, and the analysis and decision-making capabilities are improved.
Patent Information
- Application Number
- CN202510437297.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2045-04-09
AI Technical Summary
The existing technology cannot achieve the integration of viewpoints and data in two- and three-dimensional scenarios, and it is difficult to synchronize the visualization and spatial analysis of two- and three-dimensional scenarios.
Build two-dimensional and three-dimensional scenes based on a unified reference coordinate system, and build a coordinate conversion model to obtain the viewpoint view description and synchronization mode of the user interface, determine the synchronization strategy of the view based on the synchronization mode, and use the coordinate conversion model to synchronize the two-dimensional view with the three-dimensional view, synchronize the data and synchronize the drawing and spatial analysis of the data.
It realizes the linkage of two- and three-dimensional scenes, supports the integration of map data, plotted data and views, expands the visualization and spatial analysis capabilities of three-dimensional scenes, and provides strong support for the visual analysis and decision-making of war situations.
Smart Images

Figure CN119963712A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image data processing, and in particular to a method, device, equipment and medium for integrating data in two-dimensional and three-dimensional scenes. Background Art
[0002] Although the traditional two-dimensional geographic information system is relatively mature in spatial analysis and data management, it is difficult to express complete information such as geometric position information, spatial topology information and some semantic information in the third dimension, and has limitations in geographic space expression and visualization effects. Although the three-dimensional geographic information system can more realistically reflect the location, shape and texture of spatial geographic entities, compared with the two-dimensional geographic information system, the acquisition cost of three-dimensional spatial data is higher, the data model is more complex, and the algorithm efficiency of spatial query and analysis functions is lower.
[0003] Therefore, there is an urgent need for a two- and three-dimensional integrated geographic information system that can organically combine the advantages of two-dimensional geographic information systems and three-dimensional geographic information systems, realize the linkage of two- and three-dimensional scenes, and support the integration of map data, plotting data, and view interaction, thereby providing strong support for the visual analysis and decision-making of war situations. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method for integrating data in a two-dimensional and three-dimensional scene to solve the technical problems in the prior art that it is impossible to integrate viewpoints and data in a two-dimensional and three-dimensional scene and it is difficult to synchronize the visualization and spatial analysis of the two-dimensional and three-dimensional scene. The method includes: Constructing a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and constructing a coordinate conversion model, wherein the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate conversion model is used for mutual conversion between the two-dimensional projection coordinates of the two-dimensional scene and the three-dimensional Cartesian coordinates of the three-dimensional scene, and mutual conversion between screen pixel coordinates and geographic coordinates; Acquire a viewpoint field of view description of the user interface and a synchronization mode of the user interface, determine a view synchronization strategy according to the synchronization mode, and synchronize a two-dimensional view with a three-dimensional view in the user interface and / or synchronize a plot in the two-dimensional scene with a plot in the three-dimensional scene and / or synchronize two-dimensional spatial analysis data in the two-dimensional scene with three-dimensional spatial analysis data in the three-dimensional scene according to the synchronization strategy and the viewpoint field of view description using the coordinate transformation model; The synchronized two-dimensional scene and / or three-dimensional scene is rendered and displayed on the user interface.
[0005] The embodiment of the present invention also provides a device for integrating data in a two-dimensional and three-dimensional scene to solve the technical problems in the prior art that it is impossible to integrate viewpoints and data in a two-dimensional and three-dimensional scene and it is difficult to synchronize the visualization and spatial analysis of the two-dimensional and three-dimensional scene. The device includes: A coordinate definition module, used to construct a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and to construct a coordinate conversion model, wherein the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate conversion model is used for the mutual conversion between the two-dimensional projection coordinates of the two-dimensional scene and the three-dimensional Cartesian coordinates of the three-dimensional scene, and the mutual conversion between the screen pixel coordinates and the geographic coordinates; a data integration module, used for obtaining a viewpoint field of view description of the user interface and a synchronization mode of the user interface, determining a view synchronization strategy according to the synchronization mode, and synchronizing a two-dimensional view with a three-dimensional view in the user interface and / or synchronizing a plot in the two-dimensional scene with a plot in the three-dimensional scene and / or synchronizing two-dimensional spatial analysis data in the two-dimensional scene with three-dimensional spatial analysis data in the three-dimensional scene according to the synchronization strategy and the viewpoint field of view description using the coordinate transformation model; A scene display module is used to render the synchronized two-dimensional scene and / or the three-dimensional scene and display them on the user interface.
[0006] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for integrating data in any of the above-mentioned two-dimensional and three-dimensional scenes when executing the computer program, so as to solve the technical problems in the prior art that the integration of viewpoints and data in two-dimensional and three-dimensional scenes cannot be achieved, and the visualization and spatial analysis of two-dimensional and three-dimensional scenes are difficult to synchronize.
[0007] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program for executing any of the above-mentioned methods for integrating data in two-dimensional and three-dimensional scenes, so as to solve the technical problems in the prior art that it is impossible to integrate viewpoints and data in two-dimensional and three-dimensional scenes, and it is difficult to synchronize the visualization and spatial analysis of two-dimensional and three-dimensional scenes.
[0008] Compared with the prior art, the at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: It realizes the organic combination of two-dimensional scenes based on two-dimensional geographic information system and three-dimensional scenes based on three-dimensional geographic information system, gives full play to the advantages of both and realizes the linkage of two-dimensional and three-dimensional scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0010] Figure 1 It is a flow chart of a method for integrating data in a two-dimensional and three-dimensional scene provided by an embodiment of the present invention; Figure 2 is a structural block diagram of a computer device provided by an embodiment of the present invention; Figure 3 It is a structural block diagram of a device for integrating data in two-dimensional and three-dimensional scenes provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0011] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0012] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0013] In an embodiment of the present invention, a method for integrating data in a two-dimensional and three-dimensional scene is provided, such as Figure 1 As shown, the method includes: Step S101: constructing a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and constructing a coordinate conversion model, wherein the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate conversion model is used for mutual conversion between the two-dimensional projection coordinates of the two-dimensional scene and the three-dimensional Cartesian coordinates of the three-dimensional scene, and mutual conversion between screen pixel coordinates and geographic coordinates; Step S102: obtaining a viewpoint field of view description of the user interface and a synchronization mode of the user interface, determining a view synchronization strategy according to the synchronization mode, and synchronizing a two-dimensional view with a three-dimensional view in the user interface and / or synchronizing a plot in the two-dimensional scene with a plot in the three-dimensional scene and / or synchronizing two-dimensional spatial analysis data in the two-dimensional scene with three-dimensional spatial analysis data in the three-dimensional scene according to the synchronization strategy and the viewpoint field of view description using the coordinate transformation model; Step S103: Rendering the synchronized two-dimensional scene and / or three-dimensional scene, and displaying the rendered scene on the user interface.
[0014] In a specific implementation, in order to synchronize the view and the field of view, the following steps are performed to obtain the viewpoint field of view description of the user interface and the synchronization mode of the user interface, determine the view synchronization strategy according to the synchronization mode, and synchronize the two-dimensional view and the three-dimensional view in the user interface using the coordinate transformation model according to the synchronization strategy and the viewpoint field of view description: Define a viewpoint field of view description of the user interface, wherein the viewpoint field of view description includes viewpoint latitude and longitude, elevation, azimuth, pitch angle, roll angle, field of view angle and zoom level; obtain a synchronization mode of the user interface, wherein the synchronization mode includes master-slave synchronization, bidirectional synchronization, asynchronous mode and incremental synchronization; monitor changes in the two-dimensional view and / or the three-dimensional view in the user interface, and determine whether it is an active trigger operation based on the change; if it is the active trigger operation, obtain view change information based on the viewpoint field of view description, perform operation and solution on the view change information of the two-dimensional view or the three-dimensional view according to the synchronization mode, and apply the change information to the two-dimensional view or the three-dimensional view.
[0015] In a specific implementation, the view change information based on the viewpoint field of view description is obtained through the following steps, the view change information of the two-dimensional view or the three-dimensional view is operated and solved according to the synchronization mode, and the change information is applied to the two-dimensional view or the three-dimensional view: Determine the view that needs to be changed according to the synchronization mode, and loop through all the views that need to be changed until the processing is completed: if the operation on the two-dimensional view changes the field of view of the viewpoint, obtain the change range of the field of view; if the operation on the two-dimensional view changes the field of view of the viewpoint, obtain the change range of the field of view; solve the change range of the field of view to be synchronized, so that the range of the field of view that needs to be synchronized in the three-dimensional scene is consistent with the change range of the field of view of the two-dimensional view, calculate the plane field of view of the undisplayed area in the field of view of the two-dimensional view, and according to the field of view requirements of the three-dimensional view, reverse calculate the field of view of the three-dimensional view, and send the field of view reverse calculation result to the corresponding three-dimensional view , triggering a field of view change of the three-dimensional view, and displaying the transformed three-dimensional view on the terminal; if an operation on the three-dimensional view causes the field of view of the viewpoint to change, converting the spatial field of view based on the three-dimensional view into the plane field of view of the two-dimensional view, solving the range of the field of view to be synchronized, making the range of the field of view that needs to be synchronized in the two-dimensional scene consistent with the range of the field of view of the three-dimensional view, calculating the plane field of view range of the undisplayed area in the field of view of the three-dimensional view, and according to the field of view requirement of the two-dimensional view, back-calculating the field of view of the two-dimensional view, sending the field of view back-calculation result to the corresponding two-dimensional view, triggering the field of view change of the two-dimensional view, and displaying the transformed two-dimensional view on the terminal.
[0016] Specifically, a viewpoint description protocol is defined, and the viewpoint description protocol includes latitude and longitude, elevation, azimuth, pitch angle (three-dimensional specific parameter), roll angle (three-dimensional specific parameter), field of view angle, zoom level, etc. The interface synchronization mode is obtained, and the interface synchronization mode includes master-slave synchronization (active operation view triggers synchronization, suitable for multi-screen comparison and analysis scenarios), two-way synchronization (any view change is synchronized immediately, suitable for single-screen linkage object calibration), asynchronous mode (manual switching synchronization state, suitable for performance-sensitive scenarios), and incremental synchronization (suitable for large-scale data scenarios). The view synchronization strategy is determined according to the synchronization mode, wherein the synchronization strategy includes specifying a main view for other views to passively follow, any view change triggers other view updates, manually triggering the synchronization button to update all views, and only transmitting the change in viewing angle, etc. On the two-dimensional view or three-dimensional view displayed on any terminal, the user's interface operation is monitored, and the interface operation includes translation, scaling, rotation, positioning, etc. According to the context of the operation and the rules set by the system, it is determined whether the operation should be regarded as an active trigger, such as an editing operation performed directly by the user in the two-dimensional or three-dimensional view.
[0017] When a change in the data of the two-dimensional view or the three-dimensional view is detected, it is determined whether the change is an active trigger operation. If it is an active trigger operation, the change information such as the change range of the field of view is encapsulated.
[0018] If the change operation occurs on the 2D view, the 2D field of view change range is processed first. In the synchronous follow mode, the synchronous field of view range is solved to ensure that the field of view of the 3D scene matches the field of view of the 2D view. In the synchronous stitching mode, the plane field of view of the undisplayed area is calculated, and the 3D scene field of view is inversely calculated according to the requirements of the 3D scene field of view. The inverse calculation result and the passive trigger tag are sent to the corresponding 3D window to trigger the 3D field of view transformation, so that the 2D field of view smoothly transitions to the 3D field of view, and finally the corresponding 3D scene is displayed on the terminal.
[0019] If the change operation occurs on the 3D scene, first convert the spatial field of view to the plane field of view. In the synchronous follow mode, perform the synchronous plane field of view solution to ensure that the field of view of the 2D view matches the field of view of the 3D scene. In the synchronous stitching mode, calculate the plane field of view of the undisplayed area, and inversely calculate the 2D field of view in the window according to the requirements of the 2D scene field of view. Send the inverse calculation result and the passive trigger tag to the corresponding 2D window, trigger the 2D field of view transformation, so that the 3D field of view smoothly transitions to the 2D field of view, and finally display the corresponding 2D view on the terminal.
[0020] Specifically, when solving the two-dimensional view operation, if the operation on the two-dimensional view causes the field of view of the viewpoint to change, the change range of the two-dimensional field of view is obtained; the range of the synchronous field of view is solved through the two-dimensional view to make the field of view of the three-dimensional scene consistent with the field of view of the two-dimensional view; the plane field of view of the undisplayed area in the field of view of the two-dimensional view is calculated, and the three-dimensional scene field of view is inversely calculated according to the requirements of the three-dimensional scene field of view; result sending and field of view transformation: the inverse calculation result and the passive trigger tag are sent to the corresponding three-dimensional window, triggering the three-dimensional field of view transformation, so that the two-dimensional field of view smoothly transitions to the three-dimensional field of view, and finally the corresponding three-dimensional scene is displayed on the terminal.
[0021] When solving 3D scene operations, the spatial field of view is converted first. If the change operation occurs on the 3D scene, the two-way linkage solution module first converts the spatial field of view into a plane field of view. In the synchronous follow mode, the synchronous plane field of view is solved to ensure that the field of view of the 2D view matches the field of view of the 3D scene. In the synchronous stitching mode, the plane field of view of the undisplayed area is calculated, and the 2D field of view in the window is inverted according to the requirements of the 2D scene field of view. The inversion results and the passive trigger tag are sent to the corresponding 2D window to trigger the 2D field of view transformation, so that the 3D field of view smoothly transitions to the 2D field of view, and finally the corresponding 2D view is displayed on the terminal.
[0022] In specific implementation, the following steps are performed to synchronize the plotting in the two-dimensional scene with the plotting in the three-dimensional scene: Define a cross-dimensional plotting description protocol for plotting, wherein the cross-dimensional plotting description protocol includes a two-dimensional geometric expression, two-dimensional attributes, three-dimensional coordinates and three-dimensional attributes of the plotting; construct intermediate plotting data, wherein the intermediate plotting data is used to store plotting data based on the cross-dimensional plotting description protocol; obtain plotting operations through event monitoring, and obtain plotting data based on the cross-dimensional plotting description protocol, wherein the plotting operations include adding, editing and deleting; synchronize and render the plotting in the two-dimensional scene and the three-dimensional scene through the plotting data.
[0023] Specifically, points, lines and surface elements are selected on the two-dimensional scene for mapping, so that the corresponding mapping data can be displayed in a linked manner in the corresponding three-dimensional scene in a ground-based mode, thereby realizing real-time synchronization of the mapping data in the two- and three-dimensional scenes.
[0024] In specific implementation, the synchronization of the two-dimensional spatial analysis data in the two-dimensional scene with the three-dimensional spatial analysis data in the three-dimensional scene is achieved through the following steps: Constructing intermediate model data, wherein the intermediate model data is used to store a unified geometric expression of cross-dimensional analysis results, wherein the unified geometric expression includes an identification of the analysis task, analysis dimensions (2D / 3D), a two-dimensional geometric expression, a three-dimensional geometric expression, analysis parameters, and analysis results; setting an identification ID for each map element of the two-dimensional scene, and associating the map element of the two-dimensional scene with the spatial element of the three-dimensional scene through the identification ID to generate element association data; synchronizing the spatial analysis data of the two-dimensional scene with the spatial analysis data of the three-dimensional scene according to different spatial analysis types and the element association data.
[0025] In specific implementation, the following steps are performed to synchronize the spatial analysis data of the two-dimensional scene with the spatial analysis data of the three-dimensional scene according to different spatial analysis types and the element association data: When converting the two-dimensional buffer into a three-dimensional prism, the two-dimensional buffer is obtained through the element association data and the spatial analysis data, the elevation of the bottom surface of the two-dimensional buffer is dynamically adjusted according to the digital elevation model, the two-dimensional buffer is stretched along the normal direction, and the two-dimensional loop of the two-dimensional buffer is converted into a three-dimensional prism; When converting the three-dimensional line of sight analysis into a two-dimensional projection, a three-dimensional ray is obtained through the element association data and the spatial analysis data, and the three-dimensional ray is projected onto a two-dimensional plane to generate a visible area polygon, and the invisible area caused by occlusion is marked in the two-dimensional scene; when the overlay analysis is extended across dimensions, whether a two-dimensional overlay is performed is calculated through the element association data and the spatial analysis data, a filtering condition of the elevation interval is added to the generated two-dimensional overlay result, and the two-dimensional overlay polygon generated by the two-dimensional overlay result is used to cut the three-dimensional model in the three-dimensional scene to generate a cross-section of the three-dimensional model; when converting the three-dimensional path analysis into a two-dimensional projection, the three-dimensional path is projected onto a two-dimensional plane to generate a trajectory line through the element association data and the spatial analysis data, the elevation change and slope are marked on the trajectory line, and the conflict detection between the path and the terrain and / or building is displayed in the two-dimensional scene.
[0026] Specifically, the spatial analysis types include the conversion between two-dimensional buffer and three-dimensional body, the conversion between three-dimensional line of sight analysis and two-dimensional projection, the cross-dimensional extension of overlay analysis, the conversion between three-dimensional path analysis and two-dimensional projection, the conversion between two-dimensional contour line and three-dimensional surface, the conversion between three-dimensional body cutting and two-dimensional section, the conversion between three-dimensional sunshine analysis and two-dimensional shadow, the conversion between two-dimensional network analysis and three-dimensional extension, etc.
[0027] Specifically, the results of two-dimensional spatial analysis (buffer zone, overlay analysis, etc.) and three-dimensional spatial analysis (line of sight analysis, three-dimensional measurement, etc.) are mutually recognized and applied to situation analysis of combat simulation. For example, two-dimensional tactical plotting automatically generates a three-dimensional battlefield sand table, three-dimensional radar coverage analysis results are projected onto a two-dimensional combat map, the elevation of the radar position in the three-dimensional scene is adjusted to the two-dimensional map to display the changes in detection blind spots, the enemy aircraft routes are marked on the two-dimensional map to the three-dimensional coverage body to display the interception probability heat map, the three-dimensional visualization of electromagnetic interference cloud is displayed on the two-dimensional map to the communication interruption area, the two-dimensional drawing of the interference source trajectory is used to generate a dynamic interference body in the three-dimensional scene, and the two-dimensional tactical map is connected with the three-dimensional battlefield space.
[0028] In the specific implementation, in order to realize the conversion between two-dimensional data and three-dimensional data, the coordinate conversion model is constructed through the following steps: The geographic coordinates and the screen pixel coordinates are converted to each other based on Mercator projection coordinates; the elevation value of each point in the two-dimensional scene is obtained from the digital elevation model, and the two-dimensional projection coordinates are converted to the three-dimensional Cartesian coordinates through the elevation value.
[0029] Specifically, the steps to convert geographic coordinates to screen pixel coordinates are: use Mercator projection to convert geographic coordinates (longitude, latitude) to plane coordinates (x, y); to convert Mercator projection coordinates to screen pixel coordinates, the zoom level of the map and the center point of the map need to be considered. Similarly, converting screen pixel coordinates to geographic coordinates is the inverse of the above process.
[0030] In this embodiment, a computer device is provided, such as Figure 2 As shown, it includes a memory 201, a processor 202, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for integrating data in any of the above-mentioned two-dimensional and three-dimensional scenes is implemented.
[0031] Specifically, the computer device may be a computer terminal, a server or a similar computing device.
[0032] In this embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program for executing any of the above-mentioned methods for integrating data in two-dimensional and three-dimensional scenes.
[0033] Specifically, computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0034] Based on the same inventive concept, an apparatus for integrating data in a two-dimensional and three-dimensional scene is also provided in an embodiment of the present invention, as described in the following embodiments. Since the principle of solving the problem by the apparatus for integrating data in a two-dimensional and three-dimensional scene is similar to the method for integrating data in a two-dimensional and three-dimensional scene, the implementation of the apparatus for integrating data in a two-dimensional and three-dimensional scene can refer to the implementation of the method for integrating data in a two-dimensional and three-dimensional scene, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0035] Figure 3 is a structural block diagram of a device for integrating data in a two-dimensional and three-dimensional scene according to an embodiment of the present invention, such as Figure 3 As shown, it includes: a coordinate definition module 301, a data integration module 302 and a scene display module 303, and the structure is described below.
[0036] A coordinate definition module 301 is used to construct a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and to construct a coordinate conversion model, wherein the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate conversion model is used for the mutual conversion between the two-dimensional projection coordinates of the two-dimensional scene and the three-dimensional Cartesian coordinates of the three-dimensional scene, and the mutual conversion between the screen pixel coordinates and the geographic coordinates; The data integration module 302 is used to obtain a viewpoint field of view description of the user interface and a synchronization mode of the user interface, determine a view synchronization strategy according to the synchronization mode, and synchronize the two-dimensional view with the three-dimensional view in the user interface and / or synchronize the plot in the two-dimensional scene with the plot in the three-dimensional scene and / or synchronize the two-dimensional spatial analysis data in the two-dimensional scene with the three-dimensional spatial analysis data in the three-dimensional scene according to the synchronization strategy and the viewpoint field of view description using the coordinate transformation model; The scene display module 303 is used to render the synchronized two-dimensional scene and / or the three-dimensional scene and display them on the user interface.
[0037] In one embodiment, the coordinate definition module includes: A coordinate conversion unit, used for converting the geographic coordinates and the screen pixel coordinates into each other based on Mercator projection coordinates; The elevation appending unit is used to obtain the elevation value of each point in the two-dimensional scene from the digital elevation model, and convert the two-dimensional projection coordinates into the three-dimensional Cartesian coordinates through the elevation value.
[0038] In one embodiment, the data integration module includes: A viewpoint field of view description unit, used to define a viewpoint field of view description of the user interface, wherein the viewpoint field of view description includes viewpoint latitude and longitude, elevation, azimuth, pitch angle, roll angle, field of view angle and zoom level; A synchronization mode acquisition unit, used to acquire a synchronization mode of the user interface, wherein the synchronization mode includes master-slave synchronization, bidirectional synchronization, asynchronous mode and incremental synchronization; a trigger judgment unit, configured to monitor changes in the two-dimensional view and / or the three-dimensional view in the user interface, and judge whether it is an active trigger operation according to the changes; A synchronized view unit is used to, if it is the active trigger operation, obtain view change information based on the viewpoint field of view description, perform operations and solve the view change information of the two-dimensional view or the three-dimensional view according to the synchronization mode, and apply the change information to the two-dimensional view or the three-dimensional view.
[0039] In one embodiment, a synchronized view unit is used to determine a view that needs to be changed according to the synchronization mode, and loop through all the views that need to be changed until the processing is completed: if an operation on the two-dimensional view causes the field of view of the viewpoint to change, obtain the change range of the field of view, solve the change range of the field of view to be synchronized, so that the range of the field of view that needs to be synchronized in the three-dimensional scene is consistent with the change range of the field of view of the two-dimensional view, calculate the plane field of view range of the undisplayed area in the field of view of the two-dimensional view, and according to the field of view requirement of the three-dimensional view, back-calculate the field of view of the three-dimensional view, send the field of view back-calculation result to the corresponding three-dimensional view, and trigger the three-dimensional view. The field of view is transformed, and the transformed three-dimensional view is displayed on the terminal; if the field of view of the viewpoint is changed by operating on the three-dimensional view, the spatial field of view based on the three-dimensional view is converted into the plane field of view of the two-dimensional view, and the range of the field of view to be synchronized is solved so that the range of the field of view that needs to be synchronized in the two-dimensional scene is consistent with the range of the field of view of the three-dimensional view, the plane field of view range of the undisplayed area in the field of view of the three-dimensional view is calculated, and the field of view of the two-dimensional view is inversely calculated according to the field of view requirements of the two-dimensional view, and the field of view inverse calculation result is sent to the corresponding two-dimensional view, thereby triggering the field of view transformation of the two-dimensional view, and displaying the transformed two-dimensional view on the terminal.
[0040] In one embodiment, the data integration module further includes: A plotting description unit is defined, which is used to define a cross-dimensional plotting description protocol of the plotting, wherein the cross-dimensional plotting description protocol includes a two-dimensional geometric expression, two-dimensional attributes, three-dimensional coordinates and three-dimensional attributes of the plotting; An intermediate data storage unit, used for constructing intermediate plotting data, wherein the intermediate plotting data is used for storing plotting data based on the cross-dimensional plotting description protocol; A monitoring plotting unit, used for acquiring plotting operations through event monitoring, and acquiring plotting data based on the cross-dimensional plotting description protocol, wherein the plotting operations include adding, editing, and deleting; A plotting synchronization unit is used to synchronize and render the plots in the two-dimensional scene and the three-dimensional scene through the plotting data.
[0041] In one embodiment, the data integration module further includes: An analysis result storage unit, used to construct intermediate model data, wherein the intermediate model data is used to store a unified geometric expression of cross-dimensional analysis results, wherein the unified geometric expression includes an identification of the analysis task, analysis dimensions, a two-dimensional geometric expression, a three-dimensional geometric expression, analysis parameters, and analysis results; A data association unit, used to set an identification ID for each map element of the two-dimensional scene, and associate the map element of the two-dimensional scene with the spatial element of the three-dimensional scene through the identification ID to generate element association data; The spatial analysis data synchronization unit is used to synchronize the spatial analysis data of the two-dimensional scene with the spatial analysis data of the three-dimensional scene according to different spatial analysis types and the element association data.
[0042] In one embodiment, the spatial analysis data synchronization unit is used to obtain the two-dimensional buffer through the element association data and the spatial analysis data when converting the two-dimensional buffer into a three-dimensional prism, dynamically adjust the elevation of the bottom surface of the two-dimensional buffer according to the digital elevation model, stretch the two-dimensional buffer along the normal direction, and convert the two-dimensional loop of the two-dimensional buffer into a three-dimensional prism; when converting the three-dimensional line of sight analysis into a two-dimensional projection, obtain the three-dimensional ray through the element association data and the spatial analysis data, project the three-dimensional ray onto a two-dimensional plane, generate a visible area polygon, and mark the invisible area caused by occlusion in the two-dimensional scene; when the overlay analysis is extended across dimensions, calculate whether it is a two-dimensional overlay through the element association data and the spatial analysis data, add a filtering condition of the elevation interval to the generated two-dimensional overlay result, and cut the three-dimensional model in the three-dimensional scene with the two-dimensional overlay polygon generated by the two-dimensional overlay result to generate a cross-section of the three-dimensional model; when converting the three-dimensional path analysis into a two-dimensional projection, project the three-dimensional path onto the two-dimensional plane to generate a trajectory line through the element association data and the spatial analysis data, mark the elevation change and slope on the trajectory line, and display the conflict detection between the path and the terrain and / or the building in the two-dimensional scene.
[0043] The embodiments of the present invention achieve the following technical effects: an organic combination of a two-dimensional scene based on a two-dimensional geographic information system and a three-dimensional scene based on a three-dimensional geographic information system is achieved, giving full play to the advantages of both and realizing the linkage of two- and three-dimensional scenes; supporting the interactive integration of map data, plotting data, views (viewpoints and fields of view in views), and spatial analysis data, realizing the integration of viewpoints and analysis data in two- and three-dimensional scenes, and expanding the visualization and spatial analysis capabilities of three-dimensional scenes; expanding the application scenarios of the two- and three-dimensional linkage method and device for spatial data, and providing strong support for the visualization analysis and combat decision-making of situation analysis in combat simulation.
[0044] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
[0045] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for integrating data in two-dimensional and three-dimensional scenes, characterized in that: include: Constructing a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and constructing a coordinate conversion model, wherein the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate conversion model is used for mutual conversion between the two-dimensional projection coordinates of the two-dimensional scene and the three-dimensional Cartesian coordinates of the three-dimensional scene, and mutual conversion between screen pixel coordinates and geographic coordinates; Acquire a viewpoint field of view description of the user interface and a synchronization mode of the user interface, determine a view synchronization strategy according to the synchronization mode, and synchronize a two-dimensional view with a three-dimensional view in the user interface and / or synchronize a plot in the two-dimensional scene with a plot in the three-dimensional scene and / or synchronize two-dimensional spatial analysis data in the two-dimensional scene with three-dimensional spatial analysis data in the three-dimensional scene according to the synchronization strategy and the viewpoint field of view description using the coordinate transformation model; The synchronized two-dimensional scene and / or three-dimensional scene is rendered and displayed on the user interface.
2. The method for integrating data in two-dimensional and three-dimensional scenes as claimed in claim 1, characterized in that: Acquiring a viewpoint field of view description of a user interface and a synchronization mode of the user interface, determining a view synchronization strategy according to the synchronization mode, and synchronizing a two-dimensional view with a three-dimensional view in the user interface using the coordinate transformation model according to the synchronization strategy and the viewpoint field of view description, including: Defining a viewpoint field of view description of the user interface, wherein the viewpoint field of view description includes viewpoint latitude and longitude, elevation, azimuth, pitch angle, roll angle, field of view angle and zoom level; Acquire a synchronization mode of the user interface, wherein the synchronization mode includes master-slave synchronization, bidirectional synchronization, asynchronous mode and incremental synchronization; Monitoring changes of the two-dimensional view and / or the three-dimensional view in the user interface, and determining whether an active triggering operation is performed according to the changes; If it is the active trigger operation, the view change information based on the viewpoint field of view description is obtained, and according to the synchronization mode, the view change information of the two-dimensional view or the three-dimensional view is operated and solved, and the change information is applied to the two-dimensional view or the three-dimensional view.
3. The method for integrating data in two-dimensional and three-dimensional scenes as claimed in claim 2, characterized in that: Obtaining view change information based on the viewpoint field of view description, performing operations and solving the view change information of the two-dimensional view or the three-dimensional view according to the synchronization mode, and applying the change information to the two-dimensional view or the three-dimensional view, including: Determine the view that needs to be changed according to the synchronization mode, and process all the views that need to be changed in a loop until the processing is completed: If the operation on the two-dimensional view causes the field of view of the viewpoint to change, the change range of the field of view is obtained, the change range of the field of view to be synchronized is solved, so that the range of the field of view that needs to be synchronized in the three-dimensional scene is consistent with the change range of the field of view of the two-dimensional view, the plane field of view range of the undisplayed area in the field of view of the two-dimensional view is calculated, and the field of view of the three-dimensional view is inversely calculated according to the field of view requirement of the three-dimensional view, and the field of view inverse calculation result is sent to the corresponding three-dimensional view, the field of view transformation of the three-dimensional view is triggered, and the transformed three-dimensional view is displayed on the terminal; If an operation on the three-dimensional view causes the field of view of the viewpoint to change, the spatial field of view based on the three-dimensional view is converted into the plane field of view of the two-dimensional view, and the range of the field of view to be synchronized is solved so that the range of the field of view that needs to be synchronized in the two-dimensional scene is consistent with the range of the field of view of the three-dimensional view, and the plane field of view range of the undisplayed area in the field of view of the three-dimensional view is calculated, and the field of view of the two-dimensional view is inversely calculated according to the requirements of the field of view of the two-dimensional view, and the field of view inverse calculation result is sent to the corresponding two-dimensional view, triggering the field of view transformation of the two-dimensional view, and displaying the transformed two-dimensional view on the terminal.
4. The method for integrating data in two-dimensional and three-dimensional scenes as claimed in claim 1, characterized in that: Synchronizing the plotting in the two-dimensional scene with the plotting in the three-dimensional scene, comprising: Defining a cross-dimensional plotting description protocol of a plot, wherein the cross-dimensional plotting description protocol includes a two-dimensional geometric expression, two-dimensional attributes, three-dimensional coordinates and three-dimensional attributes of the plot; Constructing intermediate plotting data, wherein the intermediate plotting data is used to store plotting data based on the cross-dimensional plotting description protocol; Acquire the plotting operation through event monitoring, and acquire the plotting data based on the cross-dimensional plotting description protocol, wherein the plotting operation includes adding, editing, and deleting; The two-dimensional scene and the drawing in the three-dimensional scene are synchronized and rendered through the drawing data.
5. The method for integrating data in two-dimensional and three-dimensional scenes as claimed in claim 1, characterized in that: Synchronizing the two-dimensional spatial analysis data in the two-dimensional scene with the three-dimensional spatial analysis data in the three-dimensional scene, comprising: Constructing intermediate model data, wherein the intermediate model data is used to store a unified geometric expression of cross-dimensional analysis results, wherein the unified geometric expression includes an identification of the analysis task, analysis dimensions, a two-dimensional geometric expression, a three-dimensional geometric expression, analysis parameters, and analysis results; Setting an identification ID for each map element of the two-dimensional scene, and associating the map element of the two-dimensional scene with the spatial element of the three-dimensional scene through the identification ID to generate element association data; The spatial analysis data of the two-dimensional scene is synchronized with the spatial analysis data of the three-dimensional scene according to different spatial analysis types and the element association data.
6. The method for integrating data in two-dimensional and three-dimensional scenes as claimed in claim 5, characterized in that: Synchronizing the spatial analysis data of the two-dimensional scene with the spatial analysis data of the three-dimensional scene according to different spatial analysis types and the element association data, including: When converting the two-dimensional buffer into a three-dimensional prism, the two-dimensional buffer is obtained through the element association data and the spatial analysis data, the elevation of the bottom surface of the two-dimensional buffer is dynamically adjusted according to the digital elevation model, the two-dimensional buffer is stretched along the normal direction, and the two-dimensional loop of the two-dimensional buffer is converted into a three-dimensional prism; When converting the three-dimensional line of sight analysis into a two-dimensional projection, a three-dimensional ray is obtained through the element association data and the spatial analysis data, the three-dimensional ray is projected onto a two-dimensional plane, a visible area polygon is generated, and an invisible area caused by occlusion is marked in the two-dimensional scene; When the overlay analysis is extended across dimensions, whether two-dimensional overlay is performed is calculated by using the element association data and the spatial analysis data, a filtering condition of the elevation interval is added to the generated two-dimensional overlay result, and a two-dimensional overlay polygon generated by the two-dimensional overlay result is used to cut the three-dimensional model in the three-dimensional scene to generate a section of the three-dimensional model; When converting the three-dimensional path analysis into a two-dimensional projection, the three-dimensional path is projected onto a two-dimensional plane through the element association data and the spatial analysis data to generate a trajectory line, elevation changes and slopes are marked on the trajectory line, and conflict detection between the path and the terrain and / or buildings is displayed in the two-dimensional scene.
7. The method for integrating data in a two-dimensional or three-dimensional scene according to any one of claims 1 to 6, characterized in that: Construct a coordinate transformation model, including: Converting the geographic coordinates to the screen pixel coordinates based on Mercator projection coordinates; The elevation value of each point in the two-dimensional scene is obtained from the digital elevation model, and the two-dimensional projection coordinates are converted into the three-dimensional Cartesian coordinates according to the elevation values.
8. A device for integrating data in two-dimensional and three-dimensional scenes, characterized in that: include: A coordinate definition module, used to construct a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and to construct a coordinate conversion model, wherein the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate conversion model is used for the mutual conversion between the two-dimensional projection coordinates of the two-dimensional scene and the three-dimensional Cartesian coordinates of the three-dimensional scene, and the mutual conversion between the screen pixel coordinates and the geographic coordinates; a data integration module, used for obtaining a viewpoint field of view description of the user interface and a synchronization mode of the user interface, determining a view synchronization strategy according to the synchronization mode, and synchronizing a two-dimensional view with a three-dimensional view in the user interface and / or synchronizing a plot in the two-dimensional scene with a plot in the three-dimensional scene and / or synchronizing two-dimensional spatial analysis data in the two-dimensional scene with three-dimensional spatial analysis data in the three-dimensional scene according to the synchronization strategy and the viewpoint field of view description using the coordinate transformation model; A scene display module is used to render the synchronized two-dimensional scene and / or the three-dimensional scene and display them on the user interface.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for integrating data in two-dimensional and three-dimensional scenes described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method for integrating data in a two-dimensional or three-dimensional scene according to any one of claims 1 to 7.
Citation Information
Patent Citations
Three-dimensional visual display interaction method and device, storage medium and terminal equipment
CN109949423A
Road marker identification method and device and storage medium
CN110163064A
Method for superposing three-dimensional live-action map on two-dimensional planar map
CN110428499A
Space coordinate conversion method and device, computer equipment and readable storage medium
CN113449021A
Cloud GIS two-dimensional and three-dimensional integrated visualization system and two-dimensional and three-dimensional integrated visualization method
CN116662435A