Method, apparatus, device and medium for data integration in two-dimensional and three-dimensional scenarios
By building a unified reference coordinate system and coordinate transformation model, the viewpoint and data integration of two-dimensional and three-dimensional geographic information systems is realized, synchronization problems are solved, visualization and spatial analysis capabilities are improved, and combat simulation analysis is supported.
Patent Information
- Application Number
- CN202510437297.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-04-09
AI Technical Summary
The existing technology cannot achieve the integration of viewpoints and data of two-dimensional and three-dimensional geographic information systems, and it is difficult to synchronize the visualization and spatial analysis of two-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. Use the coordinate conversion model to synchronize the two-dimensional and three-dimensional views, drawing and spatial analysis data, and finally render the synchronized scene in the user interface.
It realizes the organic combination of two-dimensional and three-dimensional scenes, supports the interactive integration of view and spatial analysis data, expands the visualization and spatial analysis capabilities of three-dimensional scenes, and provides situation analysis and decision-making support for combat simulation.
Smart Images

Figure CN119963712B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image data processing, and particularly to a method, device, equipment and medium for data integration in a two-dimensional and three-dimensional scenario. Background Art
[0002] Although traditional two-dimensional geographic information systems are relatively mature in spatial analysis and data management, they are difficult to express complete information such as geometric position information, spatial topological information, and partial semantic information in the third-dimensional direction, and have limitations in aspects such as geographical space expression and visualization effects. Although three-dimensional geographic information systems can more realistically reflect information such as the position, shape, and texture of spatial geographic entities, compared with two-dimensional geographic information systems, the acquisition cost of three-dimensional space 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-dimensional and three-dimensional integrated geographic information system that can organically combine the advantages of two-dimensional and three-dimensional geographic information systems, realize the linkage of two-dimensional and three-dimensional scenarios, support the integration of map data, plotting data, and view interaction, so as to provide strong support for the visual analysis and decision-making of the war situation. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method for data integration in a two-dimensional and three-dimensional scenario to solve the technical problems in the prior art that it is impossible to achieve the integration of viewpoints and data in two-dimensional and three-dimensional scenarios and it is difficult to synchronize the visualization and spatial analysis of two-dimensional and three-dimensional scenarios. The method includes:
[0005] Construct a two-dimensional scenario and a three-dimensional scenario based on a unified reference coordinate system, and construct a coordinate transformation model, where the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate transformation model is used for the mutual transformation between the two-dimensional projection coordinates of the two-dimensional scenario and the three-dimensional Cartesian coordinates of the three-dimensional scenario, and the mutual transformation between the screen pixel coordinates and the geographic coordinates;
[0006] 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 use the coordinate transformation model to synchronize the two-dimensional view and the three-dimensional view in the user interface, and / or synchronize the plotting in the two-dimensional scenario and the plotting in the three-dimensional scenario, and / or synchronize the two-dimensional spatial analysis data in the two-dimensional scenario and the three-dimensional spatial analysis data in the three-dimensional scenario according to the synchronization strategy and the viewpoint field of view description;
[0007] After rendering the synchronized two-dimensional scenario and / or the three-dimensional scenario, display them on the user interface.
[0008] An embodiment of the present invention also provides a device for data integration in a two-dimensional and three-dimensional scenario 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 scenario and it is difficult to synchronize the visualization and spatial analysis of the two-dimensional and three-dimensional scenarios. The device includes:
[0009] A coordinate definition module, configured to construct a two-dimensional scenario and a three-dimensional scenario based on a unified reference coordinate system, and construct a coordinate conversion model, where 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 scenario and the three-dimensional Cartesian coordinates of the three-dimensional scenario, and the mutual conversion between the screen pixel coordinates and the geographic coordinates;
[0010] A data integration module, configured 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 use the coordinate conversion model to synchronize the two-dimensional view and the three-dimensional view in the user interface, and / or synchronize the plotting in the two-dimensional scenario and the plotting in the three-dimensional scenario, and / or synchronize the two-dimensional spatial analysis data in the two-dimensional scenario and the three-dimensional spatial analysis data in the three-dimensional scenario according to the synchronization strategy and the viewpoint field of view description;
[0011] A scenario display module, configured to render the synchronized two-dimensional scenario and / or the three-dimensional scenario and display them on the user interface.
[0012] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned method for data integration in a two-dimensional and three-dimensional scenario 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 scenario and it is difficult to synchronize the visualization and spatial analysis of the two-dimensional and three-dimensional scenarios.
[0013] An embodiment of the present invention also provides a computer-readable storage medium storing a computer program for executing the above-mentioned method for data integration in a two-dimensional and three-dimensional scenario 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 scenario and it is difficult to synchronize the visualization and spatial analysis of the two-dimensional and three-dimensional scenarios.
[0014] Compared with the prior art, the at least one technical solution adopted in the embodiments of this specification can achieve at least the following beneficial effects:
[0015] It realizes the organic combination of the two-dimensional scenario based on the two-dimensional geographic information system and the three-dimensional scenario based on the three-dimensional geographic information system, gives full play to the advantages of both, and realizes the linkage of the two-dimensional and three-dimensional scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0017] Figure 1 It is a flowchart of a method for data integration in a two-dimensional and three-dimensional scene provided by an embodiment of the present invention;
[0018] Figure 2 It is a structural block diagram of a computer device provided by an embodiment of the present invention;
[0019] Figure 3 It is a structural block diagram of a device for data integration in a two-dimensional and three-dimensional scene provided by an embodiment of the present invention. Detailed implementation manners
[0020] The following will describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0021] The following uses specific specific examples to illustrate the implementation manners of the present application. Those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. The present application can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope protected by the present application.
[0022] In an embodiment of the present invention, a method for data integration in a two-dimensional and three-dimensional scene is provided. As Figure 1 shown, the method includes:
[0023] Step S101: Construct a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and construct a coordinate conversion model, where 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;
[0024] Step S102: Obtain the viewpoint field of view description of the user interface and the synchronization mode of the user interface, determine the view synchronization policy according to the synchronization mode, and use the coordinate transformation model to synchronize the two-dimensional view and the three-dimensional view in the user interface, and / or synchronize the plotting in the two-dimensional scene with the plotting 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 policy and the viewpoint field of view description;
[0025] Step S103: After rendering the synchronized two-dimensional scene and / or three-dimensional scene, display it on the user interface.
[0026] In specific implementation, in order to synchronize the view and the field of view, the following steps are used to obtain the viewpoint field of view description of the user interface and the synchronization mode of the user interface, determine the view synchronization policy according to the synchronization mode, and use the coordinate transformation model to synchronize the two-dimensional view and the three-dimensional view in the user interface:
[0027] Define the viewpoint field of view description of the user interface, where the viewpoint field of view description includes viewpoint longitude and latitude, elevation, azimuth, pitch, roll, field of view angle, and zoom level; obtain the synchronization mode of the user interface, where the synchronization mode includes master-slave synchronization, two-way synchronization, asynchronous mode, and incremental synchronization; monitor the changes of the two-dimensional view and / or the three-dimensional view in the user interface, and determine whether it is an actively triggered operation according to the changes; if it is the actively triggered operation, obtain the view change information based on the viewpoint field of view description, and perform operation resolution 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.
[0028] In specific implementation, the following steps are used to obtain the view change information based on the viewpoint field of view description, perform operation resolution 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:
[0029] Determine the views that need 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 2D view causes a change in the field of view of the viewpoint, obtain the range of change in the field of view. If an operation on the 2D view causes a change in the field of view of the viewpoint, obtain the range of change in the field of view. Solve the range of change in the field of view to be synchronized, so that the range of the field of view to be synchronized in the 3D scene is consistent with the range of change in the field of view of the 2D view. Calculate the planar field of view range of the unshown area in the field of view of the 2D view, and perform back-calculation on the field of view of the 3D view according to the requirements of the field of view of the 3D view. Send the result of the back-calculated field of view to the corresponding 3D view, trigger the field of view transformation of the 3D view, and display the transformed 3D view on the terminal. If an operation on the 3D view causes a change in the field of view of the viewpoint, convert the spatial field of view based on the 3D view into the planar field of view of the 2D view. Solve the range of the field of view to be synchronized, so that the range of the field of view to be synchronized in the 2D scene is consistent with the range of the field of view of the 3D view. Calculate the planar field of view range of the unshown area in the field of view of the 3D view, and perform back-calculation on the field of view of the 2D view according to the requirements of the field of view of the 2D view. Send the result of the back-calculated field of view to the corresponding 2D view, trigger the field of view transformation of the 2D view, and display the transformed 2D view on the terminal.
[0030] Specifically, define a viewpoint description protocol, which includes longitude, latitude, elevation, azimuth angle, pitch angle (parameters specific to 3D), roll angle (parameters specific to 3D), field of view angle, zoom level, etc. Obtain the interface synchronization mode, which includes master-slave synchronization (actively operating the view triggers synchronization, applicable to the multi-screen comparison and analysis scenario), two-way synchronization (any view change is immediately synchronized, applicable to the object calibration of single-screen linkage), asynchronous mode (manually switch the synchronization state, applicable to the performance-sensitive scenario), and incremental synchronization (applicable to the scenario of large-scale data). Determine the synchronization strategy of the view according to the synchronization mode. Among them, the synchronization strategy includes designating a main view and other views following passively, any view change triggering the update of other views, manually triggering the synchronization button to update all views, and only transmitting the amount of change in the viewing angle, etc. On the 2D view or 3D view displayed on any terminal, monitor the user's interface operations, which include translation, zooming, rotation, positioning, etc. According to the context of the operation and the rules set by the system, determine whether the operation should be regarded as an active trigger, such as an editing operation directly performed by the user in the 2D or 3D view.
[0031] When it is detected that the data of the 2D view or 3D view has changed, determine whether the change is an active trigger operation. When it is an active trigger operation, encapsulate the change information such as the range of change in the field of view.
[0032] If the change operation occurs on the two-dimensional view, first process the two-dimensional view change range. In the synchronous following mode, perform synchronous field-of-view range calculation to ensure that the field-of-view range of the three-dimensional scene matches that of the two-dimensional view. In the synchronous stitching mode, calculate the plane field-of-view range of the unshown area, and perform inverse calculation of the three-dimensional scene field-of-view according to the requirements of the three-dimensional scene field-of-view. Send the inverse calculation result and the passive trigger label to the corresponding three-dimensional window to trigger a 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 display the corresponding three-dimensional scene on the terminal.
[0033] If the change operation occurs on the three-dimensional scene, first convert the spatial field-of-view to a plane field-of-view. In the synchronous following mode, perform synchronous plane field-of-view calculation to ensure that the field-of-view range of the two-dimensional view matches that of the three-dimensional scene. In the synchronous stitching mode, calculate the plane field-of-view range of the unshown area, and inverse calculate the two-dimensional field-of-view within the window according to the requirements of the two-dimensional scene field-of-view. Send the inverse calculation result and the passive trigger label to the corresponding two-dimensional window to trigger a two-dimensional field-of-view transformation, so that the three-dimensional field-of-view smoothly transitions to the two-dimensional field-of-view, and finally display the corresponding two-dimensional view on the terminal.
[0034] Specifically, when performing two-dimensional view operation calculation, if the operation on the two-dimensional view causes a change in the field-of-view of the viewing point, obtain the change range of the two-dimensional field-of-view; calculate the range of the synchronous field-of-view through the two-dimensional view to make the field-of-view range of the three-dimensional scene consistent with that of the two-dimensional view; calculate the plane field-of-view range of the unshown area in the field-of-view of the two-dimensional view, and perform inverse calculation of the three-dimensional scene field-of-view according to the requirements of the three-dimensional scene field-of-view; result sending and field-of-view transformation: send the inverse calculation result and the passive trigger label to the corresponding three-dimensional window to trigger a 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 display the corresponding three-dimensional scene on the terminal.
[0035] When performing three-dimensional scene operation calculation, first convert the spatial field-of-view. If the change operation occurs on the three-dimensional scene, the two-way linkage calculation module first converts the spatial field-of-view to a plane field-of-view. In the synchronous following mode, perform synchronous plane field-of-view calculation to ensure that the field-of-view range of the two-dimensional view matches that of the three-dimensional scene. In the synchronous stitching mode, calculate the plane field-of-view range of the unshown area, and inverse calculate the two-dimensional field-of-view within the window according to the requirements of the two-dimensional scene field-of-view. Send the inverse calculation result and the passive trigger label to the corresponding two-dimensional window to trigger a two-dimensional field-of-view transformation, so that the three-dimensional field-of-view smoothly transitions to the two-dimensional field-of-view, and finally display the corresponding two-dimensional view on the terminal.
[0036] During specific implementation, the synchronization of the plotting in the two-dimensional scene and the plotting in the three-dimensional scene is achieved through the following steps:
[0037] 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.
[0038] 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.
[0039] 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:
[0040] 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.
[0041] 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:
[0042] 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;
[0043] When converting three-dimensional visibility analysis to two-dimensional projection, three-dimensional rays are obtained through the element association data and the spatial analysis data, the three-dimensional rays are projected onto a two-dimensional plane to generate a visible area polygon, and invisible areas caused by occlusion are marked in the two-dimensional scene; when performing cross-dimensional expansion of overlay analysis, it is calculated whether there is two-dimensional overlay through the element association data and the spatial analysis data, a filtering condition for elevation intervals is added to the generated two-dimensional overlay result, and the three-dimensional model in the three-dimensional scene is cut by the two-dimensional overlay polygon generated by the two-dimensional overlay result to generate a cross-section of the three-dimensional model; when converting three-dimensional path analysis to two-dimensional projection, through the element association data and the spatial analysis data, the three-dimensional path is projected onto a two-dimensional plane 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.
[0044] Specifically, the types of spatial analysis include the conversion between two-dimensional buffers and three-dimensional volumes, the conversion between three-dimensional visibility analysis and two-dimensional projection, cross-dimensional expansion of overlay analysis, the conversion between three-dimensional path analysis and two-dimensional projection, the conversion between two-dimensional contour lines and three-dimensional surfaces, the conversion between three-dimensional volume cutting and two-dimensional cross-sections, the conversion between three-dimensional sunlight analysis and two-dimensional shadows, the conversion between two-dimensional network analysis and three-dimensional extensions, etc.
[0045] Specifically, the mutual recognition of the results of two-dimensional spatial analysis (such as buffer, overlay analysis, etc.) and three-dimensional spatial analysis (such as visibility analysis, three-dimensional measurement, etc.) can be applied to the situation analysis of combat simulation. For example, automatic generation of a three-dimensional battlefield sand table from a two-dimensional tactical plot, projection of the three-dimensional radar coverage analysis result onto a two-dimensional combat map, adjustment of the elevation of a radar position in a three-dimensional scene to the two-dimensional map to display the change of the detection blind area, calibration of the flight path of an enemy aircraft on a two-dimensional map to the three-dimensional coverage body to display the heat map of the interception probability, projection of a three-dimensional visual electromagnetic interference cloud onto a two-dimensional map to display the communication interruption area, drawing of the trajectory of a jamming source on a two-dimensional map to generate a dynamic jamming body in a three-dimensional scene, connection between a two-dimensional tactical map and a three-dimensional battlefield space, etc.
[0046] In specific implementation, in order to achieve the conversion between two-dimensional data and three-dimensional data, the construction of a coordinate conversion model is realized through the following steps:
[0047] Mutually convert the geographic coordinates and the screen pixel coordinates based on the Mercator projection coordinates; obtain the elevation value of each point in the two-dimensional scene from the digital elevation model, and convert the two-dimensional projection coordinates to the three-dimensional Cartesian coordinates through the elevation value.
[0048] Specifically, the steps for converting geographical coordinates to screen pixel coordinates are as follows: Use the Mercator projection to convert geographical coordinates (longitude, latitude) into planar coordinates (x, y); To convert Mercator projection coordinates to screen pixel coordinates, the zoom level and the center point of the map need to be considered. Similarly, converting screen pixel coordinates to geographical coordinates is the reverse process of the above process.
[0049] In this embodiment, a computer device is provided, such as Figure 2 shown, including a memory 201, a processor 202, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for data integration in any of the above two-dimensional and three-dimensional scenarios is implemented.
[0050] Specifically, the computer device can be a computer terminal, a server, or a similar computing device.
[0051] In this embodiment, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program for executing the method for data integration in any of the above two-dimensional and three-dimensional scenarios.
[0052] Specifically, computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassette tapes, magnetic disk storage, or other magnetic storage devices, or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media do not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0053] Based on the same inventive concept, embodiments of the present invention also provide a device for data integration in a two-dimensional and three-dimensional scenario, as described in the following embodiments. Since the principle of the device for data integration in a two-dimensional and three-dimensional scenario to solve problems is similar to that of the method for data integration in a two-dimensional and three-dimensional scenario, the implementation of the device for data integration in a two-dimensional and three-dimensional scenario can refer to the implementation of the method for data integration in a two-dimensional and three-dimensional scenario, and the repeated parts will not be elaborated here. As used hereinafter, the term "unit" or "module" may be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0054] Figure 3 is a structural block diagram of the device for data integration in a two-dimensional and three-dimensional scenario according to an embodiment of the present invention, as Figure 3 shown, including: a coordinate definition module 301, a data integration module 302, and a scene display module 303. The following describes this structure.
[0055] The coordinate definition module 301 is used to construct a two-dimensional scenario and a three-dimensional scenario based on a unified reference coordinate system, and construct a coordinate conversion model, where 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 scenario and the three-dimensional Cartesian coordinates of the three-dimensional scenario, and the mutual conversion between the screen pixel coordinates and the geographic coordinates;
[0056] The data integration module 302 is used to obtain the view point and 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 use the coordinate conversion model to synchronize the two-dimensional view and the three-dimensional view in the user interface, and / or synchronize the plotting in the two-dimensional scenario and the plotting in the three-dimensional scenario, and / or synchronize the two-dimensional spatial analysis data in the two-dimensional scenario and the three-dimensional spatial analysis data in the three-dimensional scenario according to the synchronization strategy and the view point and field of view description;
[0057] The scene display module 303 is used to render the synchronized two-dimensional scenario and / or three-dimensional scenario and display it on the user interface.
[0058] In one embodiment, the coordinate definition module includes:
[0059] The coordinate conversion unit is used to mutually convert the geographic coordinates and the screen pixel coordinates based on the Mercator projection coordinates;
[0060] The elevation addition unit is used to obtain the elevation value of each point in the two-dimensional scenario from the digital elevation model, and convert the two-dimensional projection coordinates into the three-dimensional Cartesian coordinates through the elevation value.
[0061] In one embodiment, the data integration module includes:
[0062] A viewpoint field of view description unit for defining the viewpoint field of view description of the user interface, where the viewpoint field of view description includes viewpoint longitude and latitude, elevation, azimuth, pitch angle, roll angle, field of view angle, and zoom level;
[0063] An acquisition synchronization mode unit for acquiring the synchronization mode of the user interface, where the synchronization mode includes master-slave synchronization, two-way synchronization, asynchronous mode, and incremental synchronization;
[0064] A trigger judgment unit for listening to changes in the two-dimensional view and / or the three-dimensional view in the user interface, and judging whether it is an active trigger operation according to the changes;
[0065] A synchronized view unit for, if it is the active trigger operation, acquiring view change information based on the viewpoint field of view description, performing operation resolution on 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.
[0066] In one embodiment, the synchronized view unit is used to determine the views that need 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 a change in the field of view of the viewpoint, acquire the change range of the field of view, perform resolution on the change range of the field of view to be synchronized, so that the range of the field of view 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 planar field of view range of the un-displayed area in the field of view of the two-dimensional view, and perform inverse calculation on the field of view of the three-dimensional view according to the requirements of the field of view of the three-dimensional view, send the field of view inverse calculation result to the corresponding three-dimensional view, trigger the field of view transformation of the three-dimensional view, and display the transformed three-dimensional view on the terminal; If an operation on the three-dimensional view causes a change in the field of view of the viewpoint, convert the spatial field of view based on the three-dimensional view into the planar field of view of the two-dimensional view, perform resolution on the range of the field of view to be synchronized, so that the range of the field of view to be synchronized in the two-dimensional scene is consistent with the range of the field of view of the three-dimensional view, calculate the planar field of view range of the un-displayed area in the field of view of the three-dimensional view, and perform inverse calculation on the field of view of the two-dimensional view according to the requirements of the field of view of the two-dimensional view, send the field of view inverse calculation result to the corresponding two-dimensional view, trigger the field of view transformation of the two-dimensional view, and display the transformed two-dimensional view on the terminal.
[0067] In one embodiment, the data integration module further includes:
[0068] Define a plotting description unit for defining a cross-dimensional plotting description protocol for plotting, where the cross-dimensional plotting description protocol includes the two-dimensional geometric expression, two-dimensional attributes, three-dimensional coordinates, and three-dimensional attributes of the plotting;
[0069] An intermediate data storage unit for constructing intermediate plotting data, where the intermediate plotting data is used to store plotting data based on the cross-dimensional plotting description protocol;
[0070] A listening plotting unit for obtaining plotting operations through event listening and obtaining plotting data based on the cross-dimensional plotting description protocol, where the plotting operations include adding, editing, and deleting;
[0071] A plotting synchronization unit for synchronizing and rendering the plotting in the two-dimensional scene and the three-dimensional scene through the plotting data.
[0072] In one embodiment, the data integration module further includes:
[0073] An analysis result saving unit for constructing intermediate model data, where the intermediate model data is used to store the unified geometric expression of cross-dimensional analysis results, and the unified geometric expression includes the identifier of the analysis task, analysis dimension, two-dimensional geometric expression, three-dimensional geometric expression, analysis parameters, and analysis results;
[0074] A data association unit for setting an identifier ID for each map element in the two-dimensional scene and associating the map element in the two-dimensional scene with the spatial element in the three-dimensional scene through the identifier ID to generate element association data;
[0075] A spatial analysis data synchronization unit for synchronizing the spatial analysis data in the two-dimensional scene and the spatial analysis data in the three-dimensional scene according to different types of spatial analysis and the element association data.
[0076] In one embodiment, the spatial analysis data synchronization unit is configured to, when converting a two-dimensional buffer into a three-dimensional prism, obtain the two-dimensional buffer through the feature association data and the spatial analysis data, 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 a three-dimensional visibility analysis into a two-dimensional projection, obtain a three-dimensional ray through the feature association data and the spatial analysis data, project the three-dimensional ray onto a two-dimensional plane to generate a visible area polygon, and mark the invisible area caused by occlusion in the two-dimensional scene; when performing cross-dimensional expansion of overlay analysis, calculate whether two-dimensional overlay is performed through the feature association data and the spatial analysis data, add a filtering condition for 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 a three-dimensional path analysis into a two-dimensional projection, project the three-dimensional path onto a two-dimensional plane to generate a trajectory line through the feature 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 buildings in the two-dimensional scene.
[0077] The embodiments of the present invention achieve the following technical effects: realizing the organic combination of the two-dimensional scene based on the two-dimensional geographic information system and the three-dimensional scene based on the three-dimensional geographic information system, giving full play to the advantages of both, and realizing the linkage of the two- and three-dimensional scenes; supporting the integration of the interaction of map data, plotting data, views (viewpoints and fields of view in the views), and spatial analysis data, realizing the integration of viewpoints and analysis data in the two- and three-dimensional scenes, and expanding the visualization and spatial analysis capabilities of the three-dimensional scene; 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 the situation analysis in combat simulation.
[0078] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the embodiments of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the 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 than here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
[0079] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, various modifications and variations can be made to the embodiments of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for data integration in two-dimensional and three-dimensional scenarios, characterized in that Including: Construct a two-dimensional scene and a three-dimensional scene based on a unified reference coordinate system, and construct a coordinate transformation model. Among them, the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate transformation model is used for the mutual transformation 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 transformation between the screen pixel coordinates and the geographic coordinates; 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 use the coordinate transformation model to synchronize the two-dimensional view and the three-dimensional view in the user interface, and / or synchronize the plotting in the two-dimensional scene with the plotting 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; Synchronizing the two-dimensional spatial analysis data in the two-dimensional scene with the three-dimensional spatial analysis data in the three-dimensional scene includes: Construct intermediate model data, where the intermediate model data is used to store the unified geometric expression of the cross-dimensional analysis results, and the unified geometric expression includes the identification of the analysis task, the analysis dimension, the two-dimensional geometric expression, the three-dimensional geometric expression, the analysis parameters and the analysis results; Set an identification ID for each map element in the two-dimensional scene, and associate the map element in the two-dimensional scene with the spatial element in the three-dimensional scene through the identification ID to generate element association data; Synchronize the spatial analysis data in the two-dimensional scene with the spatial analysis data in the three-dimensional scene according to different types of spatial analysis and the element association data; Synchronizing the spatial analysis data in the two-dimensional scene with the spatial analysis data in the three-dimensional scene according to different types of spatial analysis and the element association data includes: When converting a two-dimensional buffer zone into a three-dimensional prism, obtain the two-dimensional buffer zone through the element association data and the spatial analysis data, dynamically adjust the elevation of the bottom surface of the two-dimensional buffer zone according to the digital elevation model, stretch the two-dimensional buffer zone along the normal direction, and convert the two-dimensional loop of the two-dimensional buffer zone into a three-dimensional prism; When converting a three-dimensional visibility analysis into a two-dimensional projection, obtain a three-dimensional ray through the element association data and the spatial analysis data, project the three-dimensional ray onto a two-dimensional plane to generate a visible area polygon, and mark the invisible area caused by occlusion in the two-dimensional scene; When performing cross-dimensional expansion of overlay analysis, calculate whether there is a two-dimensional overlay through the element association data and the spatial analysis data, add a filtering condition for 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 section of the three-dimensional model; When converting a three-dimensional path analysis into a two-dimensional projection, project the three-dimensional path onto a 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 buildings in the two-dimensional scene; After rendering the synchronized two-dimensional scene and / or three-dimensional scene, display it on the user interface.
2. The method for data integration in a two-dimensional and three-dimensional scene according to claim 1, characterized in that, Obtain the viewpoint field-of-view description of the user interface and the synchronization mode of the user interface. Determine the view synchronization policy according to the synchronization mode. According to the synchronization policy and the viewpoint field-of-view description, use the coordinate transformation model to synchronize the two-dimensional view and the three-dimensional view in the user interface, including: Define the viewpoint field-of-view description of the user interface, where the viewpoint field-of-view description includes viewpoint longitude and latitude, elevation, azimuth, pitch, roll, field-of-view angle, and zoom level; Obtain the synchronization mode of the user interface, where the synchronization mode includes master-slave synchronization, two-way synchronization, asynchronous mode, and incremental synchronization; Monitor the changes in the two-dimensional view and / or the three-dimensional view in the user interface, and determine whether it is an actively triggered operation according to the changes; If it is the actively triggered operation, obtain the view change information based on the viewpoint field-of-view description, perform operation resolution 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.
3. The method for data integration in a two-dimensional and three-dimensional scene according to claim 2, wherein Obtain the view change information based on the viewpoint field-of-view description, perform operation resolution 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, including: Determine the views that need 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 a change in the field of view of the viewpoint, obtain the change range of the field of view, perform resolution on the change range of the field of view to be synchronized, make the range of the field of view to be synchronized in the three-dimensional scene consistent with the change range of the field of view in the two-dimensional view, calculate the planar field-of-view range of the area not displayed in the field of view of the two-dimensional view, and perform inverse calculation on the field of view of the three-dimensional view according to the requirements of the field of view of the three-dimensional view. Send the field-of-view inverse calculation result to the corresponding three-dimensional view, trigger the field-of-view transformation of the three-dimensional view, and display the transformed three-dimensional view on the terminal; If an operation on the three-dimensional view causes a change in the field of view of the viewpoint, convert the spatial field of view based on the three-dimensional view into the planar field of view of the two-dimensional view, perform resolution on the range of the field of view to be synchronized, make the range of the field of view to be synchronized in the two-dimensional scene consistent with the range of the field of view in the three-dimensional view, calculate the planar field-of-view range of the area not displayed in the field of view of the three-dimensional view, and perform inverse calculation on the field of view of the two-dimensional view according to the requirements of the field of view of the two-dimensional view. Send the field-of-view inverse calculation result to the corresponding two-dimensional view, trigger the field-of-view transformation of the two-dimensional view, and display the transformed two-dimensional view on the terminal.
4. The method for data integration in a two-dimensional and three-dimensional scene according to claim 1, wherein Synchronize the plots in the two-dimensional scene with the plots in the three-dimensional scene, including: Define a cross - dimensional plotting description protocol for plotting, where the cross - dimensional plotting description protocol includes the two - dimensional geometric expression, two - dimensional attributes, three - dimensional coordinates, and three - dimensional attributes of the plotting; Construct intermediate plotting data, where the intermediate plotting data is used to store plotting data based on the cross - dimensional plotting description protocol; Obtain the operations of the plotting through event listening, and obtain the plotting data based on the cross - dimensional plotting description protocol, where the operations of the plotting include adding, editing, and deleting; Synchronize and render the plotting in the two - dimensional scene and the three - dimensional scene through the plotting data.
5. The method for data integration in a two-dimensional and three-dimensional scene according to any one of claims 1 to 4, characterized in that, Construct a coordinate transformation model, including: Mutually transform the geographic coordinates and the screen pixel coordinates based on the Mercator projection coordinates; Obtain the elevation value of each point in the two - dimensional scene from the digital elevation model, and transform the two - dimensional projection coordinates into the three - dimensional Cartesian coordinates through the elevation value.
6. A device for data integration in a two-dimensional and three-dimensional scene, characterized in that, Include: A coordinate definition module for constructing a two - dimensional scene and a three - dimensional scene based on a unified reference coordinate system, and constructing a coordinate transformation model, where the reference coordinate system includes a geographic coordinate reference and a projection coordinate system, and the coordinate transformation model is used for the mutual transformation 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 transformation between the screen pixel coordinates and the geographic coordinates; A data integration module for obtaining the viewpoint field - of - view description of the user interface and the synchronization mode of the user interface, determining the view synchronization strategy according to the synchronization mode, and using the coordinate transformation model to synchronize the two - dimensional view and the three - dimensional view in the user interface, and / or synchronize the plotting in the two - dimensional scene and the three - dimensional scene, and / or synchronize the two - dimensional spatial analysis data in the two - dimensional scene and the three - dimensional spatial analysis data in the three - dimensional scene according to the synchronization strategy and the viewpoint field - of - view description; The data integration module includes: An analysis result saving unit for constructing intermediate model data, where the intermediate model data is used to store the unified geometric expression of cross - dimensional analysis results, and the unified geometric expression includes the identifier of the analysis task, the analysis dimension, the two - dimensional geometric expression, the three - dimensional geometric expression, the analysis parameters, and the analysis results; A data association unit for setting an identifier ID for each map element in the two - dimensional scene, and associating the map elements in the two - dimensional scene with the spatial elements in the three - dimensional scene through the identifier ID to generate element association data; A spatial analysis data synchronization unit for synchronizing the spatial analysis data in the two - dimensional scene and the spatial analysis data in the three - dimensional scene according to different types of spatial analysis and the element association data; A spatial analysis data synchronization unit, when converting a two-dimensional buffer into a three-dimensional prism, obtains the two-dimensional buffer through the feature association data and the spatial analysis data, dynamically adjusts the elevation of the bottom surface of the two-dimensional buffer according to the digital elevation model, stretches the two-dimensional buffer along the normal direction, and converts the two-dimensional loop of the two-dimensional buffer into a three-dimensional prism; when converting a three-dimensional visibility analysis into a two-dimensional projection, obtains a three-dimensional ray through the feature association data and the spatial analysis data, projects the three-dimensional ray onto a two-dimensional plane to generate a visible area polygon, and marks the invisible area caused by occlusion in the two-dimensional scene; when performing cross-dimensional expansion of overlay analysis, calculates whether two-dimensional overlay is performed through the feature association data and the spatial analysis data, adds a filtering condition for the elevation interval to the generated two-dimensional overlay result, and cuts 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 a three-dimensional path analysis into a two-dimensional projection, projects the three-dimensional path onto a two-dimensional plane to generate a trajectory line through the feature association data and the spatial analysis data, marks the elevation change and slope on the trajectory line, and displays the conflict detection between the path and the terrain and / or buildings in the two-dimensional scene; A scene display module, for rendering the synchronized two-dimensional scene and / or the three-dimensional scene and then displaying it on the user interface.
7. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that When the processor executes the computer program, it implements the method for data integration in the two-dimensional and three-dimensional scenes according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program for executing the method for data integration in the two-dimensional and three-dimensional scenes according to any one of claims 1 to 5.
Citation Information
Patent Citations
Road marker identification method and device and storage medium
CN110163064A
Cloud GIS two-dimensional and three-dimensional integrated visualization system and two-dimensional and three-dimensional integrated visualization method
CN116662435A