Map development engine oriented to energy field and implementation method
Through the map development engine for the energy field, the problem of different tools of GIS system development engine and the sharing and reuse of results resources is solved, the intranet privatization deployment and simplified development process, and the flexibility of map functions and front-end spatial analysis capabilities are improved.
Patent Information
- Application Number
- CN202411550955.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-25
AI Technical Summary
In the existing technology, GIS system development engine tools are different, and the sharing and reusing of results resources between systems is difficult, resulting in high professional capabilities requirements for front-end map developers and it is difficult to quickly respond to business needs.
A map development engine for the energy field is proposed, including front-end components, back-end services and data storage, providing map rendering engine, user interaction module, visual configuration tools and API interfaces, and supporting map data management, layer configuration, spatial analysis and other functions.
It realizes the privatization deployment of intranet, reduces dependence on external SDKs and data services, simplifies the development process, reduces learning costs, and improves the flexibility of map functions and front-end spatial analysis capabilities.
Smart Images

Figure CN119512527A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of geographic information technology, and specifically relates to a map development engine and implementation method for the energy field. Background Art
[0002] Most map functions require secondary development using various SDKs (Software Development Kits), which requires front-end map developers to have a certain understanding of GIS (Geographic Information System) related knowledge, and different front-ends of different projects connect to different map services, so map functions need to be rewritten. Especially if multiple GIS services have been developed or purchased, the development engine tools are different, the geographic data used by each system is stored in a decentralized manner, the acquisition methods are diverse, there are large differences between different SDKs, there is no unified management system, and it is difficult to share and reuse the results and resources between systems. This will require high professional capabilities of front-end map developers and make it difficult to quickly respond to and realize business needs.
[0003] In a unified digital system, most business systems are deployed in the intranet. When secondary development of map functions is carried out in the intranet environment, it is often impossible to connect to the Internet, making it inconvenient to introduce the Internet map SDK, which brings inconvenience to the development of map functions. If existing GIS applications use two types of geographic data, Google open source data and self-surveyed data, the geographic area of Google open source data is uncontrollable, and sensitive geographic location information may be inaccurate or changed, which poses certain risks in use. The collection scope of self-surveyed data does not meet national requirements, which poses certain compliance risks. Summary of the invention
[0004] The purpose of this application is to overcome the defects of the existing GIS system development engine tools being different and the difficulty in sharing and reusing the results and resources among the systems.
[0005] In order to achieve the above objectives, the present application proposes a map development engine for the energy field, the development engine comprising:
[0006] Front-end components, including map rendering engine, user interaction module and visualization configuration tool, are used to provide developers with a front-end operation interface;
[0007] Backend services, used to provide map data management, layer configuration, API interfaces and spatial analysis services;
[0008] Data storage, used to store geospatial data.
[0009] As an improvement of the above development engine, the map rendering engine is based on WebGL or other efficient graphics libraries to achieve map rendering and dynamic loading.
[0010] As an improvement of the above development engine, the user interaction module provides map interaction functions, including map zooming, panning, marking points and path planning.
[0011] As an improvement of the above development engine, the visual configuration tool allows users to customize the map style and layout through simple drag and drop and configuration.
[0012] As an improvement of the above development engine, the types of API interfaces include: map foundation, layer service, layer management, spatial analysis service, data visualization, scene special effects, query retrieval and road network planning.
[0013] As an improvement of the above development engine, the map base class API interface is used to create map scenes, realize the loading and visualization of intranet base map data services, and includes map zooming, panning, rotating and clicking functions;
[0014] The layer service API interface is used to support access to data sources in various formats, mashup between graphs and storage of tile map files, and supports spatiotemporal identification of various types of geographic data;
[0015] The layer management API interface is used to add layers according to data files and perform control management including layer visibility function;
[0016] The spatial analysis API interface is used to support business and space-related analysis and assist planning decisions, including buffer analysis, overlay analysis, spatial topology analysis, and terrain analysis;
[0017] The data visualization API interface provides personalized component services and map service publishing functions;
[0018] The scene special effects API interface is used to realize various weather rendering special effects in three-dimensional scenes, as well as particle special effects of fountains and flames;
[0019] The query and retrieval API interface supports POI retrieval, road network retrieval, spatial query, AOI retrieval, coordinate conversion and administrative division boundary query services;
[0020] The road network planning API interface supports the coordinate collection service of specifying the starting and ending point coordinates and the route returned by the passing points, the route planning of adding passing points, and the planning mode selection function.
[0021] As an improvement of the above-mentioned development engine, the API interface encapsulates the native interface of the GIS system, and internally implements the authentication, resource application, resource release and map display functions required for each operation, and only exposes the interface to users to provide input parameters of business data required for the function.
[0022] The present application also provides a method for implementing a map development engine for the energy field. Based on the above development engine implementation, the method includes:
[0023] Step 1: The developer introduces the API interface into the project and performs basic configuration, including setting the map center point and initial zoom level;
[0024] Step 2: Load the map data source through the API interface;
[0025] Step 3: Use the visualization configuration tool to adjust the map's color, label, and icon style;
[0026] Step 4: Add corresponding map interaction functions through the API interface according to business needs;
[0027] Step 5: Publish the map page to the server and perform functional testing and performance optimization.
[0028] Compared with the prior art, the advantages of this application are:
[0029] 1. Realize private deployment of the intranet and reduce dependence on external SDK and data services;
[0030] 2. The API classes, methods, and interfaces are simple and easy to understand, saving developers’ learning costs;
[0031] 3. Ability to access standard map data and services, with more flexible data display methods;
[0032] 4. It has the function of front-end space analysis, reducing application background development and related resources;
[0033] 5. Sample codes can be browsed online, which is convenient for developers to use quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Shown is a flow chart of a method for implementing a map development engine for the energy sector;
[0035] Figure 2 Shown is the overall architecture diagram of the unified geographic information system;
[0036] Figure 3 Shown is a data architecture diagram of the unified geographic information system;
[0037] Figure 4Shown is the technical architecture diagram of the map development engine for the energy sector. DETAILED DESCRIPTION
[0038] The technical solution of the present application is described in detail below with reference to the accompanying drawings.
[0039] This application builds a unified GIS system to achieve a single map for the entire system, unified application, unified maintenance, and shared and reused data resources, thereby reducing the overall cost of GIS services and improving the versatility and sharing rate of GIS services. As a digital infrastructure, it can provide a unified service engine and geographic data through a standard service interface to empower various business systems. At the same time, it provides a strong basic support for digital transformation.
[0040] By using the technical solution of this application, a unified GIS service engine and geographic data resource library can be built to achieve rapid application, unified management and maintenance of geographic data, and sharing of results and resources, thus improving the convenience, versatility and sharing of GIS applications. The construction content includes:
[0041] 1) Build a unified GIS service engine: deploy a unified GIS development system to empower various application systems by providing unified GIS services.
[0042] 2) Build a unified geographic data resource library: realize unified procurement, storage, management and maintenance of geographic basic data, business spatial data, achievement resource data, etc., and data can be shared.
[0043] 3) Unified interface service: encapsulates a standard open calling interface for various systems to call.
[0044] 4) Support various industrial application scenarios: including business data displayed by station and unit distribution, intelligent monitoring analysis and data display of wind, light, water, fire, coal, aluminum and other industries, innovative technology demonstration projects displayed by industry and unit distribution, vehicle path planning, navigation and operation trajectory monitoring, labeling and display of collected video points by unit, production area, etc., emergency response and command, emergency deployment, emergency drills, emergency resource distribution data display, roadblock analysis and other scenarios, intelligent operation and maintenance inspection path planning, positioning distribution and operation status monitoring, resource distribution display, county development overview and other general GIS application demand scenarios.
[0045] This application provides a map development engine and implementation method for the energy field, aiming to solve the needs of non-GIS developers to quickly build map pages in an intranet environment. By providing a simplified SDK interface, developers can easily integrate map functions into their applications without having to deeply understand the underlying GIS technology.
[0046] In an implementation case of this application, spatial analysis can be implemented using the following steps:
[0047] Step 1: Convert the map feature object in the map development library into a json object;
[0048] Step 2: Use the spatial analysis interface method (such as the spatial analysis interface method provided by Baidu) to perform spatial analysis operations on the standard parameters in step 1. The analysis result is a json object;
[0049] Step 3: Convert the JSON object obtained in step 2 into a geographic object in the map development library and display it on the map.
[0050] The specific implementation steps of the spatial analysis function are described in detail here using the path analysis function as an example. The code can be shown as follows:
[0051]
[0052]
[0053]
[0054] The achievements of the map development engine and implementation method for the energy field provided in this application include:
[0055] The map development library is developed based on the Baidu Map JavaScript API, using its source code as the underlying foundation. It uses object-oriented programming ideas to encapsulate upper-level classes and methods and is written in JavaScript. It is used to render and display maps on the front end of a web page.
[0056] Development documentation, based on the code writing and annotation specifications specified in the map development class library, used to explain and illustrate the classes, properties and methods in the map development class library;
[0057] The development example is made using the packaged map development library. The functional demonstration effect can be viewed online. It covers all the classes and methods in the map development library for developers to use as a reference during development.
[0058] The system architecture of the map development engine for the energy sector includes:
[0059] Front-end components: including map rendering engine, user interaction module and visualization configuration tool, used to provide developers with a front-end operation interface.
[0060] Backend services: Provide core services such as map data management, layer configuration, and spatial analysis.
[0061] Data storage: Supports geospatial data storage in multiple formats, such as Shapefile, GeoJSON, etc.
[0062] The key technical points of the map development engine for the energy sector include:
[0063] Map rendering engine: Based on WebGL or other efficient graphics libraries, it enables fast rendering and dynamic loading of maps.
[0064] User interaction module: provides rich map interaction functions, such as zooming, panning, marking points, path planning, etc.
[0065] Visual configuration tool: allows users to customize map style and layout through simple drag and drop and configuration.
[0066] Data management and synchronization: Supports importing geospatial data from local files or databases and automatically syncing and updating.
[0067] API interface: Provides a simple and easy-to-use API interface to facilitate developers to call map-related functions. The API interface encapsulates the native interface of the GIS system, and internally implements functions such as authentication, resource application, resource release, and map display that need to be performed for each operation. It only exposes the input parameters of the business data required by the interface to the user, simplifying the complexity of calling the GIS interface when the user performs secondary development.
[0068] In this engine, the map API functions involve 8 types and 68 functions in total. The specific functions are as follows.
[0069]
[0070]
[0071] Map Basics: Create map scenes, load and visualize the intranet basemap data service, and include basic map interactions such as zooming, panning, rotating, and clicking.
[0072] Layer service: supports access to data sources in various formats, mix and match between graphs, and tile map file storage, and supports spatiotemporal identification of various geographic data.
[0073] Layer management: You can add layers based on data files and perform control management such as layer visibility and hiding.
[0074] Spatial analysis: used to support business and space-related analysis and assist planning decisions, including buffer analysis, overlay analysis, spatial topology analysis, terrain analysis, etc.
[0075] Data visualization: Provides intuitive, interactive, and highly customizable component services (such as heat maps, relationship diagrams, sunburst charts, and other graphic components), map service publishing, and other functions.
[0076] Scene special effects: It can realize weather rendering effects such as rain, snow, fog, etc. in three-dimensional scenes, as well as particle special effects such as fountains and flames.
[0077] Query and retrieval: supports POI retrieval, road network retrieval, spatial query, AOI retrieval, coordinate conversion, administrative division boundary query and other services.
[0078] Road network planning: supports coordinate collection services for specifying the starting and ending coordinates and the return route of the passing points, route planning with added passing points, planning mode selection (time, shortest distance, etc.), and other functions.
[0079] like Figure 1 As shown, the implementation method of the map development engine for the energy field includes:
[0080] 1. Initialize SDK: Developers introduce SDK into the project and perform basic configuration, such as setting the map center point, initial zoom level, etc.
[0081] 2. Load map data: Load the map data source in the intranet environment through the API interface provided by the SDK.
[0082] 3. Configure map style: Use the visual configuration tool to adjust the map's color, label, icon and other styles.
[0083] 4. Add interactive functions: Add corresponding map interactive functions through the SDK interface according to business needs.
[0084] 5. Release and testing: After development is completed, the map page will be published to the intranet server, and functional testing and performance optimization will be performed.
[0085] The code example is as follows:
[0086] 1. Initialize the SDK:
[0087]
[0088]
[0089] 2. Load map data:
[0090]
[0091] 3. Configure the map style:
[0092]
[0093]
[0094] 4. Add interactive features:
[0095]
[0096]
[0097]
[0098] 5. Release and testing:
[0099] Deploy the map page to the intranet server and conduct comprehensive functional testing and performance optimization in the actual environment. Adjust the configuration and optimize the code based on the test results.
[0100] The map development engine for the energy field provided by this application adopts object-oriented programming design ideas, converts GIS professional languages into common Internet software development languages, and is based on the Baidu map JavaScript API rendering engine. It encapsulates 8 basic map classes and 68 methods, with simple and easy-to-understand interfaces, supports OGC standard map data and map services, and has front-end spatial analysis functions. It solves the problems of inconvenience in intranet development, high learning costs for non-GIS professional developers to develop Internet map applications, and inability to flexibly access standard map services and map data.
[0101] Using the map development engine for the energy field of this application, a unified geographic information system (GIS) is deployed based on the intranet cloud platform, and the system is deployed on both the intranet and the extranet. The overall architecture includes five aspects: basic layer, data layer, engine layer, service layer, and display layer. In order from bottom to top, the details are as follows (such as Figure 2 shown):
[0102] (1) Basic layer: mainly the infrastructure cloud platform + basic operating environment, used to deploy and build a unified GIS service system. It mainly includes application servers, middleware, databases, network equipment, operating systems, storage devices, backup devices, and security devices.
[0103] (2) Data layer: includes basic geographic information data (POI / AOI data, road network data, satellite image data, etc.), business spatial data (location information of industry distribution, stations, photovoltaic equipment, county photovoltaic, etc.), achievement resource data (general graphics, thematic graphics and other application graphics data), etc. It realizes data access, processing, fusion, storage, update and other operations, ensures data consistency and integrity through data verification, ensures the expansion of data storage and the performance of data services through database cluster and other methods, and ensures data security through data encryption and other technologies.
[0104] (3) Engine layer: Build a standard engine service framework, which is composed of integrated basic GIS application core service components, and provide GIS service capabilities and secondary development support for various business systems; including but not limited to industrial data center, industrial Internet + production safety platform, smart emergency system, project management system, Jianmu data cockpit, video monitoring system, power marketing system, Tianshu Cloud and other business systems. The GIS engine should have the ability to expand three-dimensional capabilities and support oblique photography, DEM elevation data, laser point cloud, and three-dimensional modeling.
[0105] (4) Service layer: mainly includes unified map development services, data management services, resource management services, basic management services and SDK components (supporting Android, iOS, JS, etc.). Through the unified standard API service interface, it empowers the map application development of business systems such as the industrial data middle platform, industrial Internet + safety production platform, and smart emergency system, and effectively supports the construction of GIS display applications in various business systems to meet business needs.
[0106] (5) Display layer: The display layer is divided into two parts. One part is for ordinary users, realizing a single map of the group company. Ordinary users can use the GIS homepage to display the distribution of various types of assets of the group through multiple business layers. The other part is for developers and system administrators, and has service functions such as layer management, map development services, data management, resource management, basic management, and authority allocation.
[0107] like Figure 3 As shown in the figure, the data architecture of the unified geographic information system (GIS) includes three parts of data: basic geographic data, business space thematic data, and achievement resource data. Through the data management engine, it provides unified data services for various business systems. Among them, business space thematic data is formed by the aggregation of relevant business location data from the industrial data middle platform, industrial Internet + safety production platform, smart emergency system, project management system, Jianmu data cockpit, video monitoring system, power marketing system, Tianshu cloud and other systems, MDG master data system, etc.
[0108] The unified geographic information system (GIS) should provide industry data integration, management and publishing tools to integrate various types of industry data. The business spatial data that needs to be integrated includes but is not limited to the following:
[0109]
[0110] like Figure 4 As shown in the figure, in terms of technology selection, the map development engine for the energy field follows the principles of "advanced and mature, stable and efficient, safe and reliable", and is built based on advanced technologies such as cloud computing and big data to achieve the requirements of unified management and display application of large-scale data of a unified geographic information system (GIS).
[0111] The map development engine for the energy sector uses ES6+React+WebGL in front-end development technology. ECMAScript 6.0 (hereinafter referred to as ES6) is the next-generation standard of the JavaScript language. The back-end uses the microservice framework SpringCloud, which splits the system modules into services and organizes the entire Web application into a series of small Web services. Each microservice uses SSM (SpringBoot+Spring MVC+MyBatis) as the development framework.
[0112] The GIS engine uses a domestic geographic information system. With cloud computing as the core and integrating various latest IT technologies, it has powerful capabilities in map production, spatial data management, big data and artificial intelligence mining and analysis, spatial information visualization, integration, publishing and sharing. The three-dimensional technology follows the I3S standard, which is an OGC specification and a data format standard that uses a tree structure to organize large volumes of three-dimensional data.
[0113] The present application may also provide a computer device, comprising: at least one processor, a memory, at least one network interface and a user interface. The various components in the device are coupled together through a bus system. It is understood that the bus system is used to achieve connection and communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus.
[0114] The user interface may include a display, a keyboard or a pointing device, such as a mouse, a trackball, a touch pad or a touch screen.
[0115] It is understood that the memory in the embodiments disclosed in the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
[0116] In some embodiments, the memory stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system and applications.
[0117] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present disclosure can be included in the application.
[0118] In the above embodiment, the processor may also call a program or instruction stored in the memory, specifically, a program or instruction stored in an application program, and is used to:
[0119] Execute the steps of the above method.
[0120] The above method can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The above-disclosed methods, steps and logic block diagrams can be implemented or executed. The general processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the above-disclosed method can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined to execute. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0121] It is understood that the embodiments described in the present application can be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.
[0122] For software implementation, the technology of the present application can be implemented by executing the functional modules (such as procedures, functions, etc.) of the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0123] The present application may also provide a non-volatile storage medium for storing a computer program. When the computer program is executed by a processor, each step in the above method embodiment can be implemented.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application is described in detail with reference to the embodiments, a person skilled in the art should understand that any modification or equivalent replacement of the technical solution of the present application does not depart from the spirit and scope of the technical solution of the present application and should be included in the scope of the claims of the present application.
Claims
1. A map development engine for the energy field, characterized in that: The development engine includes: Front-end components, including map rendering engine, user interaction module and visualization configuration tool, are used to provide developers with a front-end operation interface; Backend services, which provide map data management, layer configuration, API interfaces, and spatial analysis services; and Data storage, used to store geospatial data.
2. The map development engine for the energy field according to claim 1, characterized in that: The map rendering engine is based on WebGL or other efficient graphics libraries to achieve map rendering and dynamic loading.
3. The map development engine for the energy field according to claim 1, characterized in that: The user interaction module provides map interaction functions, including map zooming, panning, marking points and path planning.
4. The map development engine for the energy field according to claim 1, characterized in that: The visual configuration tool allows users to customize map style and layout through simple drag and drop and configuration.
5. The map development engine for the energy field according to claim 1, characterized in that: The types of API interfaces include: map foundation, layer services, layer management, spatial analysis services, data visualization, scene effects, query retrieval and road network planning.
6. The map development engine for the energy field according to claim 5, characterized in that: The map base class API interface is used to create map scenes, realize the loading and visualization of intranet base map data services, and includes map zooming, panning, rotating and clicking functions; The layer service API interface is used to support access to data sources in various formats, mashup between graphs and storage of tile map files, and supports spatiotemporal identification of various types of geographic data; The layer management API interface is used to add layers according to data files and perform control management including layer visibility function; The spatial analysis API interface is used to support business and space-related analysis and assist planning decisions, including buffer analysis, overlay analysis, spatial topology analysis, and terrain analysis; The data visualization API interface provides personalized component services and map service publishing functions; The scene special effects API interface is used to realize various weather rendering special effects in three-dimensional scenes, as well as particle special effects of fountains and flames; The query and retrieval API interface supports POI retrieval, road network retrieval, spatial query, AOI retrieval, coordinate conversion and administrative division boundary query services; The road network planning API interface supports the coordinate collection service of specifying the starting and ending point coordinates and the route returned by the passing points, the route planning of adding passing points, and the planning mode selection function.
7. The map development engine for the energy field according to claim 1, characterized in that: The API interface encapsulates the native interface of the GIS system, and internally implements the authentication, resource application, resource release and map display functions required for each operation, and only exposes the interface to the user to provide the input parameters of the business data required for the function.
8. A method for implementing a map development engine for the energy field, based on the development engine according to any one of claims 1 to 7, the method comprising: Step 1: The developer introduces the API interface into the project and performs basic configuration, including setting the map center point and initial zoom level; Step 2: Load the map data source through the API interface; Step 3: Use the visualization configuration tool to adjust the map's color, label, and icon style; Step 4: Add corresponding map interaction functions through the API interface according to business needs; Step 5: Publish the map page to the server and perform functional testing and performance optimization.