Two-dimensional and three-dimensional digital map interaction method

Through a message-driven mechanism and software architecture design between two-dimensional and three-dimensional situational awareness systems, two-dimensional and three-dimensional linkage is realized, solving the problems of computational burden and linkage mode switching in existing systems, improving the system's development efficiency and information richness, and making it suitable for simulation, geographic mapping, emergency response, urban planning and traffic management.

CN122089931APending Publication Date: 2026-05-26CSSC SYST ENG RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CSSC SYST ENG RES INST
Filing Date
2024-12-23
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing two-dimensional and three-dimensional linkage systems have failed to effectively synchronize routes and regional spaces in urban planning, social management and military fields, increasing the computational burden and failing to consider the switching of linkage modes.

Method used

The system communicates between the two-dimensional and three-dimensional situational awareness systems through a message-driven mechanism. It adopts a client/server and client/server software architecture, combined with WebSocket data transmission mechanism and Qt signal and slot mechanism, to achieve bidirectional transmission and synchronization of points, lines and surfaces, and establish a linkage switching mode.

Benefits of technology

It improves development efficiency, reduces computational burden, and enriches element information, enabling it to provide situational analysis and command and control support in fields such as simulation, geographic mapping, emergency response, urban planning, and traffic management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122089931A_ABST
    Figure CN122089931A_ABST
Patent Text Reader

Abstract

The invention discloses a two-dimensional and three-dimensional digital map interaction method, which comprises the following steps: S1, communicating between a two-dimensional situation system and a three-dimensional situation system through a message driving mechanism, and acquiring the change of the display range of the opposite side; s2, adopting a C / S software architecture for the two-dimensional situation system, and realizing the two-dimensional situation system based on a geographic information system; s3, adopting a BS software architecture for the three-dimensional situation system, and realizing the three-dimensional situation system based on CesiumJS; and S4, establishing a linkage switching mode, and opening or closing linkage between the two-dimensional situation system and the three-dimensional situation system in different operation scenes. A Websocket-based data transmission mechanism designed by the scheme can improve the development efficiency and facilitate function extension, and meanwhile, a linkage mode switching function is designed to facilitate opening and closing of linkage, so that the calculation burden is reduced; the interaction method of the scheme can be applied to the fields of analog simulation, geographic surveying and mapping, emergency disposal, urban planning and traffic management through two-dimensional and three-dimensional linkage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, and in particular to a two- or three-dimensional digital map interaction method. Background Technology

[0002] With the continuous development of technologies such as computers, networks, graphics, and databases, the theoretical system of Geographic Information Systems (GIS) is also constantly improving. Mature theories and methods have been developed in areas such as data acquisition, data processing, data management, data models, and data structures. GIS applications are becoming increasingly widespread in fields such as surveying and mapping, land management, environment, power, transportation, and emergency management. In the field of environmental situational awareness, applications that visualize environmental conditions by labeling specific business symbols or numbers based on GIS are called situational awareness systems. Situational awareness systems can effectively display the environmental situation and predict future conditions to a certain extent. These technologies are widely used in situational intelligence processing, application simulation and deduction, and application command and decision-making.

[0003] For a long time, traditional situational awareness displays have been achieved by adding plots to a two-dimensional geographic information system (GIS). However, this plotting method can no longer meet the business requirements for a comprehensive view of the environment. Therefore, three-dimensional situational awareness systems have gradually emerged. 3D situational awareness systems can display the overall spatial conditions of the environment in a three-dimensional manner. Compared to two-dimensional systems, 3D systems can more intuitively and vividly represent the objective world and provide a more realistic experience. However, in reality, users sometimes need to operate on a two-dimensional map and sometimes need to view the spatial status on a three-dimensional platform. Neither a 3D nor a 2D GIS alone can simultaneously meet all user requirements.

[0004] Currently, integrated 2D and 3D systems have received widespread attention and research in urban planning, social management, and military fields. Among them, 2D and 3D linkage systems based on OpenLayers and OSG achieve signal and data transmission through designed event processing middleware. However, the solution only considers the association between coordinate points and viewpoints, without considering the synchronization of routes and regional spaces. Moreover, the system does not consider the switching of linkage modes, which will cause any operation on any scene to trigger linkage at any time, increasing the computational burden. In view of this, this solution proposes a 2D and 3D digital map interaction method to solve the above problems. Summary of the Invention

[0005] The purpose of this invention is to provide a two-dimensional or three-dimensional digital map interaction method to solve the problems mentioned in the background art.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a two-dimensional or three-dimensional digital map interaction method, the interaction method comprising the following steps: S1 communicates between the two-dimensional situational awareness system and the three-dimensional situational awareness system through a message-driven mechanism, obtains changes in the other party's display range, and adjusts its own display range accordingly based on the changes in the other party's display range. S2 adopts a C / S software architecture for the two-dimensional situational awareness system and is implemented based on a geographic information system. S3 adopts a B / S software architecture for the three-dimensional situational awareness system and is implemented based on CesiumJS; S4 establishes a linkage switching mode, enabling or disabling the linkage between the two-dimensional and three-dimensional situational awareness systems under different operational scenarios, and considering the transmission of various primitive information to achieve bidirectional transmission and synchronization of points, lines, and surfaces.

[0007] Preferably, the messaging mechanism is a WebSocket-based data transmission mechanism, implemented using Qt and JavaScript.

[0008] Preferably, the WebSocket data transmission mechanism is directly bound to Qt's signals and slots on the C / S side, and used as a plugin on the B / S side.

[0009] Preferably, in the two-dimensional situational awareness system, the elements displayed on the map include the map scale, center point coordinates, and view bounding box.

[0010] Preferably, the process of the two-dimensional situation system linking with the three-dimensional situation system is as follows: when the display range in the two-dimensional situation system changes due to user dragging, target tracking, and location positioning, the message sending module of the two-dimensional situation system sends the situation change information to the three-dimensional situation system through a message-driven mechanism.

[0011] Preferably, in the three-dimensional situational awareness system, the spatial display elements include viewpoint coordinates, viewing angle, and scene field of view.

[0012] Preferably, the process of the three-dimensional situation system linking control to the two-dimensional situation system is as follows: when the display scene space range changes in the three-dimensional situation system due to map roaming, manual rotation, and flight positioning, the three-dimensional situation system message sending module sends the scene space change information to the two-dimensional situation system through a message-driven mechanism.

[0013] Preferably, the geographic information system is implemented in C++ and has functions such as map roaming, plotting and management, symbol plotting, and automatic switching between multiple map scales.

[0014] Preferably, CesiumJS is an open-source JavaScript library for displaying and managing dynamic geographic data in both two-dimensional and three-dimensional dimensions.

[0015] Preferably, the three-dimensional situational awareness system includes the ability to view and edit various satellite products, and based on the plotting and measurement of arbitrary layers, users can access and use remote sensing data on a three-dimensional Earth.

[0016] The technical effects and advantages of this invention are as follows: The WebSocket-based data transmission mechanism designed in this solution improves development efficiency and facilitates functional expansion. The integrated linkage mode switching function allows for easy enabling and disabling of linkage, reducing computational burden. Furthermore, it considers the transmission of various graphic element information, enriching the element information. The interactive method of this solution, through 2D and 3D linkage, can be applied to simulation, geographic mapping, emergency response, urban planning, and traffic management, providing support for corresponding situation analysis, situation discussion, and command and control. Attached Figure Description

[0017] Figure 1 This is a schematic diagram of the operation flow of the interactive method of the present invention.

[0018] Figure 2 This is a schematic diagram of the architecture of the two-dimensional and three-dimensional digital map system of the present invention.

[0019] Figure 3 This is a two-dimensional map of the present invention.

[0020] Figure 4 This is a three-dimensional map for the present invention.

[0021] Figure 5 This is a map with two-dimensional and three-dimensional linkage according to the present invention. Detailed Implementation

[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] This invention provides, for example Figure 1 The interactive method for two-dimensional and three-dimensional digital maps shown includes the following steps: S1 communicates between the two-dimensional situational awareness system and the three-dimensional situational awareness system through a message-driven mechanism, obtains changes in the other party's display range, and adjusts its own display range accordingly based on the changes in the other party's display range. Specifically, the message mechanism is a WebSocket-based data transmission mechanism implemented using Qt and JavaScript. On the client / server side, this WebSocket data transmission mechanism is directly bound to Qt's signals and slots, improving development efficiency. On the browser / server side, it is used as a plugin, which is beneficial for functional expansion.

[0024] It's important to note that in a client / server (C / S) architecture, Qt's signal and slot mechanism enables communication and event handling between the client and server. Qt's signal and slot mechanism is a communication mechanism between objects, allowing objects to send signals and receive slots (callback functions) from other objects, thus achieving loosely coupled event handling. Combining a C / S architecture with Qt's signal and slot mechanism can be achieved through the following steps: The first step is to define signals and slots in the client and server classes. For example, the client defines a signal that is triggered when data is received from the server; the server defines a slot to handle requests from the client. The second step is to connect the signal and the slot. In the constructor, QObject:connect() is used to connect the signal and the slot. The third step is to send a signal. When the client receives data, it notifies the server by sending a signal. The fourth step is signal processing. When the server receives a signal, the associated slot function will be called to process the corresponding logic.

[0025] In a B / S architecture (browser / server architecture), a plugin mechanism combined with a signal-slot model is used to achieve functional expansion and modular design. The steps for using a plugin mechanism in a B / S architecture are as follows: I. Plugin Architecture Design: When designing the plugin architecture, this includes defining the plugin interface and the plugin manager. First, define a standard interface that all plugins need to implement to ensure that the plugins can be recognized and called by the system. Create a plugin manager to load, unload, and manage plugins. When the application starts, it scans a specific directory and loads plugins that conform to the interface. 2. Signal and slot mechanism combined with plugins: In the B / S architecture, the signal and slot mechanism is used to enhance the interactivity of plugins. This includes defining signals and slots and connecting signals and slots. Signals and slots are defined in the plugin interface or manager so that plugins can communicate. In the plugin manager, signals emitted by plugins are connected to slots in the main application, thereby enabling functional expansion. 3. Dynamic loading and unloading of plugins: In the B / S architecture, plugins are dynamically loaded and unloaded at runtime to facilitate the expansion and updating of functions. This includes dynamically loading and unloading plugins using QLibrary or similar mechanisms to load plugins only when needed, reducing memory usage. When a plugin is no longer needed, it is unloaded through the plugin manager, and related resources are released.

[0026] It should be noted that when establishing the linkage between relatively independent two-dimensional and three-dimensional situational awareness systems, the following steps are used to build a messaging mechanism to effectively communicate and coordinate changes in the display range of the two systems: S101. Define the message protocol. First, clarify the message format and protocol between the two systems, including message type (range change notification, status update), data structure (coordinates, range value), and transmission method (HTTP request, WebSocket). S102. Establish a communication channel between the two systems so that they can exchange information in real time, through a server, message queue or other intermediary service. S103. Monitor status changes. Each system has the ability to monitor changes in its own display range. When the display range within the system changes, the system should promptly generate and send a message to the other party to notify it to update its status. S104. Receiving and processing messages: After receiving a message, another system parses the message content and updates its own display range according to the received information, which involves redrawing the interface and adjusting the view. S105. Two-way linkage mechanism: In order to achieve two-way linkage, both systems can send and receive messages. Each system must not only pay attention to its own changes, but also respond to the changes of the other. S106. State Consistency Management: Maintain state consistency between two systems by designing mechanisms to ensure that the states of the two systems remain synchronized.

[0027] S2 adopts a C / S software architecture for the two-dimensional situational awareness system and is implemented based on a geographic information system. Specifically, in a two-dimensional situational awareness system, the elements displayed on the map include the map scale, the coordinates of the center point (longitude and latitude), and the view bounding box. It should be noted that two-dimensional situational awareness is an abstraction of the real world. It can better reflect the geographical information characteristics of a region and provide users with a global, holistic, and large-scale situational awareness of the environment. It can also provide certain analytical functions, such as buffer analysis, path analysis, planar measurement, search query, and rendering analysis. However, two-dimensional situational awareness can only provide planar information, losing spatial location information. It cannot fully reflect the objective world and lacks the ability to effectively express objectively existing three-dimensional spatial information. Users can only infer from their imagination or experience, which affects the effectiveness of the two-dimensional situational awareness system.

[0028] The process of linkage control between the two-dimensional situational awareness system and the three-dimensional situational awareness system is as follows: when the display range in the two-dimensional situational awareness system changes due to user dragging, target tracking, and location positioning, the message sending module of the two-dimensional situational awareness system sends the situational change information to the three-dimensional situational awareness system through a message-driven mechanism.

[0029] Specifically, the geographic information system is implemented in C++ and has functions such as map roaming, plotting and management, symbol plotting, and automatic switching of multi-scale maps. Its electronic map display function and general map operation function are powerful and can support the development of two-dimensional situational awareness systems.

[0030] S3 adopts a B / S software architecture for the three-dimensional situational awareness system and is implemented based on CesiumJS; Specifically, in a three-dimensional situational awareness system, the spatial display elements include viewpoint (longitude, latitude, altitude) coordinates, viewing angle, and scene field of view. The process of linkage control between the three-dimensional situational awareness system and the two-dimensional situational awareness system is as follows: when the spatial range of the displayed scene changes due to map roaming, manual rotation, and flight positioning in the three-dimensional situational awareness system, the message sending module of the three-dimensional situational awareness system sends the scene space change information to the two-dimensional situational awareness system through a message-driven mechanism.

[0031] Specifically, CesiumJS is an open-source JavaScript library for displaying and managing dynamic geographic data in both two and three dimensions.

[0032] Specifically, the three-dimensional situational awareness system includes the viewing and editing of various satellite products, and based on the plotting and measurement of arbitrary layers, users can access and use remote sensing data on a three-dimensional Earth.

[0033] It should be noted that the establishment of the three-dimensional situational awareness system through this solution provides developers in the field of remote sensing with a lower-cost and more easily shared solution for developing geographic information system applications. Based on the CesiumJS and Qt framework, this solution combines CS programs with web pages on the Windows platform, and researches and develops a development model that integrates the display and application of various remote sensing data products, including viewing and editing of various satellite products, plotting and measuring based on arbitrary layers, etc., which allows users to access and use remote sensing data more conveniently on a three-dimensional Earth.

[0034] 3D situational awareness systems can represent geographic spatial phenomena through stereoscopic modeling technology and achieve intuitive spatial positioning through 3D terrain simulation. In practical applications, since terrain affects the performance of people and equipment systems, 3D situational awareness systems can use 3D terrain data to display more vivid and realistic real-world situations. 3D situational awareness systems not only present visual effects very close to real terrain, but also simulate and display the impact of terrain on equipment systems or personnel in a visual way, thus ensuring the credibility of the simulation.

[0035] S4 establishes a linkage switching mode to enable or disable the linkage between the two-dimensional situational awareness system and the three-dimensional situational awareness system in different operating scenarios, so as to save computing resources and consider the transmission of various primitive information, and perform bidirectional transmission and synchronization of points, lines and surfaces.

[0036] It should be noted that the principle of linkage between two-dimensional and three-dimensional situational awareness is achieved through a message mutual response mechanism. By transmitting coordinate ranges or spatial ranges between the two-dimensional and three-dimensional situational awareness systems, the display range of their respective software windows is synchronized.

[0037] Example 1, Reference Figure 2 As shown, the runtime platform layer provides unified encapsulation of the software runtime environment and hardware devices, providing runtime support for the basic service layer, including: operating system, hardware device drivers, database service components, and network communication components. The basic service layer, above the runtime platform layer, encapsulates and implements various basic services, providing basic service support for the business application layer, including: application integration framework, DDS communication middleware, database middleware, and map middleware. The business application layer relies on the framework, middleware, and basic components provided by the basic service layer to implement various business function modules in the basic map software, including: geographic information loading component, map format setting component, map information resource display component, and geographic information resource publishing component.

[0038] refer to Figure 3As shown, the two-dimensional map software mainly provides the actions and data required for linkage, including: linkage mode switching, corresponding longitude and latitude when the mouse moves, corresponding zoom ratio when the mouse zooms, addition, deletion, and modification operations of point, line, and surface primitives, and point, line, and surface primitives with height information for synchronous three-dimensional drawing. When the user operates the two-dimensional map software and performs the above operations, the software sends messages and data to the three-dimensional software.

[0039] Reference Figure 4 As shown, the three-dimensional map software mainly responds to linkage information. When using it, the user determines whether two-dimensional and three-dimensional linkage is required by switching the linkage mode. The linkage can be cancelled to use it alone. Its functions include: real-time synchronization of two-dimensional longitude and latitude, synchronization of zoom ratio, synchronization of addition, deletion, and modification operations of points, lines, and surfaces, drawing of point, line, and surface primitives with height information, etc. When the user operates the three-dimensional software and performs the above operations, the software sends messages and data to the two-dimensional software.

[0040] By integrating the two-dimensional and three-dimensional software through a framework, the user can select the linkage mode through the two-dimensional software, and the two-dimensional and three-dimensional software determines the working mode based on the user's selection. In the linkage mode, the user can view the situation of operations on both the two-dimensional and three-dimensional simultaneously.

[0041] Finally, it should be noted that the above are only the preferred embodiments of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, 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 two-dimensional or three-dimensional digital map interaction method, characterized in that, The interaction method includes the following steps: S1 communicates between the two-dimensional situational awareness system and the three-dimensional situational awareness system through a message-driven mechanism, obtains changes in the other party's display range, and adjusts its own display range accordingly based on the changes in the other party's display range. S2 adopts a C / S software architecture for the two-dimensional situational awareness system and is implemented based on a geographic information system. S3 adopts a B / S software architecture for the three-dimensional situational awareness system and is implemented based on CesiumJS; S4 establishes a linkage switching mode, enabling or disabling the linkage between the two-dimensional and three-dimensional situational awareness systems under different operational scenarios, and considering the transmission of various primitive information to achieve bidirectional transmission and synchronization of points, lines, and surfaces.

2. The interactive method for two-dimensional and three-dimensional digital maps according to claim 1, characterized in that, The messaging mechanism is a WebSocket-based data transmission mechanism, implemented using Qt and JavaScript.

3. The interactive method for two-dimensional and three-dimensional digital maps according to claim 2, characterized in that, The WebSocket data transmission mechanism is directly bound to Qt's signals and slots on the client / server side, and is used as a plugin on the browser / server side.

4. The interactive method for two-dimensional and three-dimensional digital maps according to claim 1, characterized in that, In the two-dimensional situational awareness system, the elements displayed on the map include the map scale, center point coordinates, and view bounding box.

5. The interactive method for two-dimensional and three-dimensional digital maps according to claim 4, characterized in that, The process of the two-dimensional situation system linking with the three-dimensional situation system is as follows: when the display range in the two-dimensional situation system changes due to user dragging, target tracking, and location positioning, the message sending module of the two-dimensional situation system sends the situation change information to the three-dimensional situation system through a message-driven mechanism.

6. The interactive method for two-dimensional and three-dimensional digital maps according to claim 1, characterized in that, In the three-dimensional situational awareness system, the spatial display elements include viewpoint coordinates, viewing angle, and scene field of view.

7. The interactive method for two-dimensional and three-dimensional digital maps according to claim 6, characterized in that, The process of the three-dimensional situation system linking with the two-dimensional situation system is as follows: when the display scene space range changes in the three-dimensional situation system due to map roaming, manual rotation, and flight positioning, the three-dimensional situation system message sending module sends the scene space change information to the two-dimensional situation system through a message-driven mechanism.

8. The interactive method for two-dimensional and three-dimensional digital maps according to claim 1, characterized in that, The geographic information system is implemented in C++ and has functions such as map roaming, plotting and management, symbol plotting, and automatic switching between multiple map scales.

9. The interactive method for two-dimensional and three-dimensional digital maps according to claim 1, characterized in that, CesiumJS is an open-source JavaScript library for displaying and managing dynamic geographic data in both two and three dimensions.

10. A two-dimensional or three-dimensional digital map interaction method according to claim 1, characterized in that, The three-dimensional situational awareness system includes the ability to view and edit various satellite products, and based on the plotting and measurement of arbitrary layers, users can access and use remote sensing data on a three-dimensional Earth.