Multi-engine integration method, device, equipment, medium and program
By building an integrated system of multiple GIS engines, the high cost and inefficiency problems caused by the single function of existing GIS engines are solved, and more flexible and efficient service access is achieved.
Patent Information
- Application Number
- CN202411455404.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-02-11
AI Technical Summary
The existing GIS engine has a single function and cannot provide users with diversified services, resulting in high service costs and low access efficiency.
By obtaining multiple geographic information system servers, building an engine library, and converging these servers to generate a unified application programming interface. At the same time, monitor server status, create metadata, and create and publish geographic information system services for each server.
The function of accessing multiple GIS engines through one interface is realized, which improves the flexibility and access efficiency of the integrated system and reduces service costs.
Smart Images

Figure CN119415610A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a multi-engine integration method, device, equipment, medium and program. Background Art
[0002] Geographic Information System (GIS) is a technical system that collects, stores, manages, calculates, analyzes, displays and describes the geographical distribution data of the whole or part of the earth's surface space with the support of computer hardware and software systems. With the increasing application of geographic information, the demand for GIS technology in different industries and fields is becoming more and more diverse.
[0003] In the related art, different GIS engines are used to provide different functions, and different GIS engines are used in different ways. When a user needs to apply different functions, he needs to access multiple GIS engines.
[0004] However, the GIS engine of the existing technology has a single function and cannot provide users with diversified services, resulting in high service costs and low access efficiency. Summary of the invention
[0005] The present application provides a multi-engine integration method, device, equipment, medium and program to solve the technical problem of low user access efficiency.
[0006] In a first aspect, the present application provides a multi-engine integration method, comprising:
[0007] Acquire multiple geographic information system servers, and build an engine library based on the multiple geographic information system servers;
[0008] Monitoring the status information of the plurality of geographic information system servers to complete the maintenance and management of the plurality of geographic information system servers;
[0009] Performing fusion processing on the multiple geographic information system servers to obtain a unified application programming interface, wherein the unified application programming interface is used to access the multiple geographic information system servers;
[0010] Creating metadata for the plurality of geographic information system servers;
[0011] The metadata is used as a dataset of a draft GIS service, a GIS service is created for each GIS server, and the GIS service is published to the corresponding GIS server.
[0012] Optionally, in the method as described above, the fusing of the plurality of geographic information system servers to obtain a unified application programming interface comprises:
[0013] Obtaining application programming interfaces of the plurality of geographic information system servers;
[0014] The application programming interfaces of the plurality of geographic information system servers are fused to generate a unified application programming interface.
[0015] Optionally, in the method as described above, the step of fusing the application programming interfaces of the plurality of geographic information system servers to generate a unified application programming interface comprises:
[0016] The adapter mode is adopted to integrate the application programming interfaces of the multiple geographic information system servers to generate a unified application programming interface.
[0017] Optionally, in the method as described above, the state information includes life cycle state and / or operation status;
[0018] Accordingly, the monitoring of the status information of the plurality of geographic information system servers to complete the maintenance and management of the plurality of geographic information system servers includes:
[0019] Monitoring the life cycle status and / or operation status of the plurality of geographic information system servers;
[0020] According to the life cycle status and / or operation status, it is determined whether to perform maintenance processing on the multiple geographic information system servers.
[0021] Optionally, in the method as described above, the geographic information system service includes a layer element;
[0022] Accordingly, after using the metadata as a dataset of a draft GIS service, creating a GIS service for each GIS server, and publishing the GIS service to the corresponding GIS server, the method further includes:
[0023] Create the layer element to be updated;
[0024] The layer elements to be updated are published to the corresponding geographic information system server.
[0025] Optionally, the method as described above, after publishing the layer element to be updated to the corresponding geographic information system server, further comprises:
[0026] According to the geographic information system service, map rendering processing is performed to display a visualization interface corresponding to the geographic information system service.
[0027] Optionally, the method as described above, after using the metadata as a dataset of the draft GIS service, creating a GIS service for each GIS server, and publishing the GIS service to the corresponding GIS server, further comprises:
[0028] Determining whether there are any GIS servers that have been deactivated and / or are to be decommissioned based on the status information of the plurality of GIS servers;
[0029] If there are GIS servers that have been deactivated and / or are to be deactivated, a deactivation and / or destruction instruction is issued to the GIS servers that have been deactivated and / or are to be deactivated.
[0030] In a second aspect, the present application provides a multi-engine integrated device, comprising:
[0031] A construction module, used for acquiring a plurality of geographic information system servers and constructing an engine library according to the plurality of geographic information system servers;
[0032] A maintenance module, used for monitoring the status information of the plurality of geographic information system servers to complete the maintenance and management of the plurality of geographic information system servers;
[0033] A processing module, used for performing integration processing on the multiple geographic information system servers to obtain a unified application programming interface, wherein the unified application programming interface is used to access the multiple geographic information system servers;
[0034] A creation module, used for creating metadata for the plurality of geographic information system servers;
[0035] The service publishing module is used to use the metadata as a dataset of a draft GIS service, create a GIS service for each GIS server, and publish the GIS service to the corresponding GIS server.
[0036] Optionally, the processing module, when performing fusion processing on the plurality of geographic information system servers to obtain a unified application programming interface, is used to:
[0037] Obtaining application programming interfaces of the plurality of geographic information system servers;
[0038] The application programming interfaces of the plurality of geographic information system servers are fused to generate a unified application programming interface.
[0039] Optionally, the processing module, when performing fusion processing according to the application programming interfaces of the plurality of geographic information system servers to generate a unified application programming interface, is used to:
[0040] The adapter mode is adopted to integrate the application programming interfaces of the multiple geographic information system servers to generate a unified application programming interface.
[0041] Optionally, the status information includes life cycle status and / or operation status; the above-mentioned maintenance module, when monitoring the status information of the plurality of geographic information system servers to complete the maintenance and management of the plurality of geographic information system servers, is used to:
[0042] Monitoring the life cycle status and / or operation status of the plurality of geographic information system servers;
[0043] According to the life cycle status and / or operation status, it is determined whether to perform maintenance processing on the multiple geographic information system servers.
[0044] Optionally, the geographic information system service includes a layer element; the above device further includes:
[0045] New modules for:
[0046] Create the layer element to be updated;
[0047] The layer elements to be updated are published to the corresponding geographic information system server.
[0048] Optionally, the above device further includes:
[0049] Display module for:
[0050] According to the geographic information system service, map rendering processing is performed to display a visualization interface corresponding to the geographic information system service.
[0051] Optionally, the above device further includes:
[0052] Operation and maintenance module, used for:
[0053] Determining whether there are any GIS servers that have been deactivated and / or are to be decommissioned based on the status information of the plurality of GIS servers;
[0054] If there are GIS servers that have been deactivated and / or are to be deactivated, a deactivation and / or destruction instruction is issued to the GIS servers that have been deactivated and / or are to be deactivated.
[0055] In a third aspect, a multi-engine integrated device includes: a processor, and a memory communicatively connected to the processor;
[0056] The memory stores computer-executable instructions;
[0057] The processor executes the computer-executable instructions stored in the memory to implement the multi-engine integration method as described in various possible designs of the first aspect.
[0058] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the multi-engine integration method is used to implement the various possible designs of the first aspect.
[0059] In a fifth aspect, a computer program product comprises a computer program, which, when executed by a processor, implements the multi-engine integration method as described in various possible designs of the first aspect.
[0060] The present application provides a multi-engine integration method, device, equipment, medium and program for use in a geographic information integration system, hereinafter referred to as an integration system. Since different engines may perform well in different tasks, multiple GIS servers are obtained to determine the multiple engines to be integrated, and then the multiple engines to be integrated are used to build an engine library, so as to make full use of the operating characteristics of each engine to optimize the performance of the integrated system, thereby improving the flexibility of the integrated system; by monitoring the status information of multiple engines in the engine library, the real-time status of each engine in the engine library is determined, and the maintenance and management of the above multiple engines are implemented based on the real-time status; the above multiple engines are integrated to obtain a unified application program interface that can access the above multiple engines, so as to realize the function of accessing multiple engines through one interface, and successfully establish a data transmission channel between the integrated system and a single engine; metadata is created for the above multiple engines; the metadata is used as a data set of the draft GIS service, so as to determine the data source for the operation of the integrated system; a GIS service is created for each GIS server to complete the deployment of the integrated system; finally, the deployed integrated system is published to the corresponding GIS server, and when there is a demand for GIS services, users can call multiple engines through GIS services, thereby achieving the beneficial effect of improving the access efficiency of the integrated system. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0062] Figure 1 A schematic diagram of a GIS architecture provided for an embodiment of the present application;
[0063] Figure 2 A schematic diagram of an application scenario of a multi-engine integration method provided in an embodiment of the present application;
[0064] Figure 3 A flowchart of a multi-engine integration method provided in an embodiment of the present application;
[0065] Figure 4 Another flowchart of a multi-engine integration method provided in an embodiment of the present application;
[0066] Figure 5 A schematic diagram of multi-engine integration fusion provided in an embodiment of the present application;
[0067] Figure 6 A schematic diagram of the structure of a multi-engine integrated device provided in an embodiment of the present application;
[0068] Figure 7 A schematic diagram of the structure of a multi-engine integrated device provided in this application.
[0069] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0070] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0071] First, the terms involved in this application are explained:
[0072] GIS server: refers to a computer system used to store, process and provide geospatial data and services. It is a key component in the GIS architecture and supports various GIS applications and services.
[0073] The multi-engine integration method provided in this application can be applied to Figure 1 The GIS architecture diagram is shown in the figure. Figure 1As shown in the figure, the GIS includes: data layer, application layer, client layer and protection layer. The data layer includes multiple databases such as PostGIS, Oracle Spatial and NoSQL. The application layer includes GIS server, application server, API, etc. The client layer includes desktop GIS, mobile GIS and Web GIS, etc.
[0074] Figure 2 A schematic diagram of an application scenario of the multi-engine integration method provided in this application, such as Figure 1 As shown, one application scenario of the prior art is: during the operation of the GIS architecture, the user enters an address query request in the Web GIS application, and the request is transmitted to the application server via the Internet. After receiving the request, the application server calls the map service and data service of the GIS server to perform address query and spatial analysis. The GIS server queries the relevant geographic data from the spatial database and generates a map service, and then returns the query result and the map service to the application server. The application server encapsulates the result as an API response and returns it to the Web GIS application. The final user receives the response in the Web GIS application, displays the query result and the map service, and can view and interact on the map.
[0075] The above-mentioned terminal equipment can be a wireless terminal or a wired terminal. The wireless terminal can be a device that provides voice and / or other business data connectivity to users, a handheld device with wireless connection function, or other processing equipment connected to a wireless modem. The wireless terminal can communicate with one or more core network devices via a radio access network (Radio Access Network, referred to as RAN). The wireless terminal can be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal. For example, it can be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with the radio access network. For another example, the wireless terminal can also be a personal communication service (Personal Communication Service, referred to as PCS) phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, referred to as SIP) phone, a wireless local loop (Wireless Local Loop, referred to as WLL) station, a personal digital assistant (Personal Digital Assistant, referred to as PDA) and other devices. The wireless terminal may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, an access terminal, a user terminal, a user agent, a user device or user equipment, without limitation. Optionally, the terminal device may also be a smart watch, a tablet computer or other device.
[0076] Currently, existing GIS technology platforms all integrate a single GIS engine, which may not be powerful enough or lack flexibility in certain specific functions, limiting users' application in complex projects. Some engines may not be efficient in processing large-scale or complex spatial data, affecting the execution speed and effectiveness of the project. A single engine may be difficult to integrate seamlessly with other systems or data formats, limiting the ability to share data and collaborate with multiple systems. The licensing fees for some GIS software are high, and the licensing model may limit the scope of use and scalability of the software. Users who rely on a single supplier for update support and maintenance services may face the risk of service interruptions or untimely updates.
[0077] Combining the above scenarios, it can be seen that in the prior art, supporting GIS architecture operation through a single GIS has the technical problem of low GIS architecture access efficiency.
[0078] The multi-engine integration method provided in this application solves the technical problem of low access efficiency of GIS architecture by constructing an integrated GIS server including multiple GIS engines and then using the integrated GIS server to replace the GIS server in the existing GIS architecture.
[0079] A multi-engine integration method provided in an embodiment of the present application is intended to solve the above technical problems in the prior art and is executed by a multi-engine integration device.
[0080] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0081] It should be noted that the multi-engine integration method provided in the embodiment of the present application can be applied to the IoT device space architecture platform, wherein the IoT device space architecture platform is implemented based on an integrated GIS server. The IoT device space architecture platform includes an IoT data management platform, an IoT device management platform, an IoT big data integrated platform, and an engine library.
[0082] The IoT data management platform is used to connect massive devices by adapting the platform to the devices, and collect device data to the cloud; set up cloud APIs, and remotely control devices by calling cloud APIs.
[0083] The IoT device management platform is used to set up integrated city scenarios and classify and manage IoT devices for different integrated city scenarios.
[0084] The IoT big data comprehensive platform is used to register the comprehensive data of various IoT devices through a unified gateway connection, and then synchronize the transmission of uplink device information and recorded data and downlink control instructions with the IoT data management platform through various protocol networks, so as to conduct real-time and effective communication of data.
[0085] like Figure 3 As shown, Figure 3 A flowchart of a multi-engine integration method provided in an embodiment of the present application, a multi-engine integration method, may specifically include steps S201 to S205, wherein:
[0086] S201. Acquire multiple geographic information system servers, and construct an engine library based on the multiple geographic information system servers.
[0087] As geographic information is increasingly used, the demands for GIS technology in different industries and fields are becoming more and more diverse. A single GIS engine is often difficult to meet all needs, so it is particularly important to develop a platform that can integrate multiple GIS engines. By integrating multiple GIS engines, users can access specific functions of different engines on the same platform, avoiding the trouble of switching between multiple systems, improving work efficiency, and reducing the cost of purchasing multiple systems.
[0088] Specifically, multiple GIS service engines such as ArcGIS and Geo Server are obtained, and the engine server cluster is obtained by aggregating the multiple GIS service engines; the client of each GIS Server is independently deployed in the engine server cluster to obtain an engine library.
[0089] S202: Monitor status information of multiple geographic information system servers to complete maintenance and management of the multiple geographic information system servers.
[0090] In order to monitor the status information of multiple GIS servers and perform maintenance and management, a centralized monitoring system, such as Prometheus or Nagios, can be deployed. By regularly collecting key performance indicators (such as CPU usage, memory usage, disk space, network traffic, etc.) and service status (such as map service response time, database connection status, etc.) of each server and setting alarm rules, when an indicator exceeds the preset threshold, the system will automatically send an alarm notification. Administrators can perform troubleshooting and maintenance in a timely manner based on the alarm information to ensure the efficient and stable operation of the GIS server.
[0091] S203: Perform integration processing on multiple geographic information system servers to obtain a unified application programming interface, wherein the unified application programming interface is used to access multiple geographic information system servers.
[0092] Specifically, first deploy an API gateway or middle-tier service, which is responsible for receiving and parsing client requests; then, according to the request type and content, route the request to the corresponding GIS server for processing; after each GIS server completes the map service, data service or spatial analysis, it returns the result to the middle-tier service; the middle-tier service integrates and standardizes the data returned by different servers, and unifies the output format and protocol; finally, the middle-tier service returns the processing results to the client through a unified API, enabling developers to access and operate the functions of multiple GIS servers through a single interface.
[0093] S204: Create metadata for multiple geographic information system servers.
[0094] Specifically, define metadata standards and structures, and clarify the metadata attributes that need to be recorded, such as data source, data type, coordinate system, update time, etc.; develop or use existing metadata management tools to collect and record relevant information of data sets and services on each GIS server through automated scripts or manual input; store the collected metadata in a centrally managed metadata warehouse or database to ensure that it is queryable and maintainable; finally, provide a query interface or user interface so that administrators and users can easily retrieve and manage these metadata, thereby achieving a comprehensive understanding and efficient management of data and services on multiple GIS servers.
[0095] S205 , using the metadata as a dataset of the draft GIS service, creating a GIS service for each GIS server, and publishing the GIS service to the corresponding GIS server.
[0096] Using metadata as a draft GIS service dataset, creating a GIS service for each GIS server can include: first, extracting the metadata of each GIS server from the metadata repository as a draft dataset; then, using these metadata to define the configuration parameters of each GIS service, such as data source, layer, coordinate system, and service type; then, using automated deployment tools or scripts to create corresponding GIS services on each GIS server based on these configuration parameters, ensuring that the name, path, and function of the service are consistent with the metadata description; finally, testing and verifying the service to ensure that each created GIS service can run normally and meet the expected functional and performance requirements, thereby achieving efficient service creation and management based on metadata.
[0097] Publishing GIS services to the corresponding GIS servers can specifically include: preparing the necessary files and parameters of the services according to the predefined deployment configuration and metadata; uploading these service files and configurations to the corresponding GIS server through automated deployment tools or scripts; then, using the management interface or API of the GIS software (such as GeoServer, ArcGIS Server) on the server to register and publish these services, ensuring that the service path, access rights and parameters are set correctly; finally, testing and verifying the services to ensure that each published GIS service can be accessed and run normally and meet the expected functional and performance requirements, thereby achieving efficient service publishing and management.
[0098] The multi-engine integration method provided in the embodiment of the present application is used in a geographic information integration system, hereinafter referred to as an integrated system. Since different engines may perform well in different tasks, multiple geographic information system servers are obtained to determine multiple engines to be integrated, and then the multiple engines to be integrated are used to build an engine library, so as to make full use of the operating characteristics of each engine to optimize the performance of the integrated system, thereby improving the flexibility of the integrated system; by monitoring the status information of multiple engines in the engine library, the real-time status of each engine in the engine library is determined, and the maintenance and management of the above multiple engines are implemented based on the real-time status; the above multiple engines are integrated to obtain a unified application program interface that can access the above multiple engines, so as to realize the function of accessing multiple engines through one interface, and successfully establish a data transmission channel between the integrated system and a single engine; then metadata is created for the above multiple engines; the above metadata is used as a data set of a draft geographic information system service, so as to determine the data source for the operation of the integrated system; then a geographic information system service is created for each geographic information server to complete the deployment of the integrated system; finally, the deployed integrated system is published to the corresponding geographic information system server, and when there is a demand for geographic information services, users can call multiple engines through the geographic information system service, thereby achieving the beneficial effect of improving the access efficiency of the integrated system.
[0099] In an achievable manner, the above S203 performs integration processing on multiple geographic information system servers to obtain a unified application programming interface, which may specifically include S203-1 and S203-2, wherein:
[0100] S203-1. Obtain application programming interfaces of multiple geographic information system servers.
[0101] Specifically, access the documentation or management interface of each GIS server to obtain detailed information such as the API endpoints, request methods, parameters, and return formats it provides; then, use automated tools or scripts to collect and organize this API information in batches to ensure its structuring and standardization; then, store the collected API information in a centrally managed API document library or registration center for unified query and management; finally, provide developers with access and usage guides for these APIs through a unified interface or portal, so that they can easily call and integrate the functions of multiple GIS servers.
[0102] S203-2. Perform fusion processing according to the application programming interfaces of multiple geographic information system servers to generate a unified application programming interface.
[0103] Specifically, obtain the API endpoints, request methods, parameters, and return formats provided by each GIS server, and identify commonalities and differences; then, design a unified API specification to define standardized endpoints, parameters, and return formats; then, use an API gateway or middle-tier service to parse and convert client requests according to the unified specification, route them to the corresponding GIS server, and integrate the response data of each server; finally, provide services to the client through a unified API interface, so that developers can access and operate the functions of multiple GIS servers through a single standardized interface, thereby simplifying the development and integration process.
[0104] The multi-engine integration method provided in the embodiment of the present application connects and integrates through API and Python scripts, merges various GIS client services into API services that can be called by the platform, and enhances the service capabilities and flexibility of the platform.
[0105] In an implementable manner, the above S203-2 performs fusion processing according to the application programming interfaces of multiple geographic information system servers to generate a unified application programming interface, which may specifically include:
[0106] The adapter mode is used to integrate the application programming interfaces of multiple GIS servers to generate a unified application programming interface.
[0107] Create adapters for each GIS server API. These adapters are responsible for converting requests of the unified API specification into the specific API request format of the corresponding GIS server, and converting the server's response into a unified response format. Then, deploy an API gateway or middle-tier service to receive and process client requests through these adapters and route them to the corresponding GIS server. After receiving the server response, the adapter converts it into a unified format and returns it to the client. Finally, through this adapter pattern, seamless integration of different GIS server APIs is achieved, providing clients with a standardized and unified API interface, simplifying development and integration work, and using the adapter pattern to handle interface differences between different engines to ensure consistency and scalability of platform functions.
[0108] In one implementation, the status information includes a life cycle status and / or an operating status.
[0109] Accordingly, after the above S205 monitors the status information of the multiple GIS servers to complete the maintenance and management of the multiple GIS servers, it also includes S202-1 and S202-2, wherein:
[0110] S202-1. Monitor the life cycle status and / or operation status of multiple geographic information system servers.
[0111] Specifically, deploy a monitoring system, such as Prometheus, Nagios, or Zabbix, and regularly collect the key performance indicators and service status of the server through agents installed on each GIS server or through APIs. The key performance indicators include CPU usage, memory usage, disk space, network traffic, etc., and the service status includes service response time, error rate, etc.; then, aggregate these data to a centralized monitoring platform for real-time analysis and visualization; then, set alarm rules. When an indicator exceeds the preset threshold or an abnormality occurs, the system automatically sends an alarm notification to the administrator; finally, the administrator performs troubleshooting and maintenance based on the monitoring data and alarm information to ensure the efficient and stable operation of the GIS server.
[0112] S202-2. Determine whether to perform maintenance processing on multiple geographic information system servers based on the life cycle status and / or operation status.
[0113] Among them, maintenance processing includes the removal and processing of GIS clients.
[0114] The multi-engine integration method provided in the embodiment of the present application eliminates and processes GIS clients that are no longer online by monitoring the life cycle status of each engine and the operation status of the log monitoring engine, thereby achieving the beneficial effect of unified maintenance and management of the deployed GISServer engine by the platform.
[0115] In an implementable manner, the GIS service includes layer elements. Accordingly, after the above S205 uses the metadata as a dataset of the draft GIS service, creates a GIS service for each GIS server, and publishes the GIS service to the corresponding GIS server, it also includes S206 and S207, wherein:
[0116] S206: Create a layer element to be updated.
[0117] Specifically, determine the layer that needs to be updated and its element type, and obtain the metadata and existing element information of the current layer, where the element types include points, lines, surfaces, etc.; then, use geographic information system software or programming interfaces to create new layer elements, specify their geometry, attribute data, and style information, where geographic information system software includes ArcGIS API and GeoServer API; then, mark these newly created elements as pending update status and store them in a temporary data storage area or version control system; finally, through the verification and review process, ensure the accuracy and consistency of the new elements, and prepare to merge them into the existing layer for updating.
[0118] S207: Publish the layer elements to be updated to the corresponding geographic information system server.
[0119] Specifically, use GIS software or API to extract the layer elements to be updated from the temporary storage area or version control system, where APIs include ArcGIS API and GeoServer API; then, perform necessary data conversion and formatting to ensure that the new elements are compatible with the layer format and coordinate system of the target GIS server; then, upload and merge these new elements into the corresponding layer through API calls or management interfaces, and replace or add corresponding layer elements; finally, perform post-release verification and testing to ensure that the new elements are displayed correctly and function normally, thereby completing the update and release of the layer.
[0120] In an implementable manner, after the above S207 publishes the layer element to be updated to the corresponding geographic information system server, it also includes:
[0121] According to the geographic information system service, map rendering is performed to display the visualization interface corresponding to the geographic information system service.
[0122] First, obtain the required geographic data and layer information, including geometry, attribute data, and style configuration, through the GIS service API request; then, use the map rendering engine or library to parse and process this data and convert it into visualization elements; then, apply style and symbolization rules to render the map elements and set visual attributes such as color, line type, and annotation; finally, display the rendered map on a web page or application interface, providing interactive functions such as zooming, panning, and layer switching, so that users can intuitively browse and analyze geographic information.
[0123] In an implementable manner, the above S205, after using the metadata as a dataset of the draft GIS service, creating a GIS service for each GIS server, and publishing the GIS service to the corresponding GIS server, further includes S208 and S209, wherein:
[0124] S208. Determine whether there are any GIS servers that have been deactivated or are to be removed from the shelves based on the status information of the plurality of GIS servers.
[0125] First, the status information of each GIS server, such as operating status, performance indicators, error logs, and service availability, is regularly collected through the monitoring system or management interface. Then, the status information is analyzed to identify servers that are no longer responding, have severely degraded performance, or have been in a faulty state for a long time. Next, these abnormal servers are marked as disabled or to be removed from the shelves, and a report or alarm notification is generated to the system administrator. Finally, the administrator conducts further confirmation and processing based on the report and notification, and decides whether to execute the removal operation, thereby ensuring the stability of the system and the effective use of resources.
[0126] S209: If there are GIS servers that have been deactivated and / or are to be deactivated, a deactivation and / or destruction instruction is issued to the GIS servers that have been deactivated and / or are to be deactivated.
[0127] First, the system administrator confirms the GIS servers that need to be deactivated or destroyed through the management console, Ansible, Terraform and other automated operation and maintenance tools; then, the corresponding deactivation or destruction instructions are generated, which may include operations such as stopping services, releasing resource allocations, backing up data and deleting instances; then, these instructions are sent to the target GIS server or its management platform through API calls or script execution. The management platform can be the management interface of the cloud service provider; finally, the process and results of the instruction execution are monitored to ensure that the server is successfully deactivated or destroyed, and the system resources and status information are updated to reflect the latest server status.
[0128] The multi-engine integration method provided in the above embodiment is described below with reference to a specific example. Figure 4 As shown, the following steps are included:
[0129] S301, obtaining multiple geographic information system servers, and constructing an engine library according to the multiple geographic information system servers.
[0130] S302: Monitor status information of multiple geographic information system servers to complete maintenance and management of the multiple geographic information system servers, wherein the status information includes life cycle status and / or operation status.
[0131] Specifically, the life cycle status and / or operation status of multiple geographic information system servers are monitored; and according to the life cycle status and / or operation status, it is determined whether to perform maintenance processing on the multiple geographic information system servers.
[0132] Among them, if the geographic information system server needs to be maintained, the maintenance process is triggered, and the maintenance process at least includes S303A to eliminate and process the GIS client until the geographic information system server does not need to be maintained; if the geographic information system server does not need to be maintained, S303B is executed.
[0133] S303B, integrating the multiple geographic information system servers to obtain a unified application programming interface, wherein the unified application programming interface is used to access the multiple geographic information system servers.
[0134] Specifically, the application programming interfaces of multiple geographic information system servers are obtained; and the application programming interfaces of the multiple geographic information system servers are fused to generate a unified application programming interface.
[0135] In one implementable manner, the application programming interfaces of multiple GIS servers are fused to generate a unified application programming interface, including using an adapter mode to fuse the application programming interfaces of multiple GIS servers to generate a unified application programming interface.
[0136] S304: Create metadata for multiple geographic information system servers.
[0137] S305: Use the metadata as a dataset of a draft GIS service, create a GIS service for each GIS server, and publish the GIS service to the corresponding GIS server, wherein the GIS service includes layer elements.
[0138] S306: Create layer elements to be updated, and publish the layer elements to be updated to the corresponding geographic information system server.
[0139] S307. Determine whether there are any GIS servers that have been deactivated or are to be removed from the shelves based on the status information of the multiple GIS servers.
[0140] S308. If there are GIS servers that have been deactivated or are to be removed from the shelves, a deactivation and / or destruction instruction is issued to the GIS servers that have been deactivated or are to be removed from the shelves, and the engine library is updated according to the remaining GIS servers to obtain a new engine library and execute S302.
[0141] S309. If there is no GIS server that has been deactivated or is to be removed from the shelves, no changes are made to the GIS server.
[0142] The multi-engine integration method provided in the above embodiment is described below with reference to another specific example. Figure 5 A schematic diagram of multi-engine integration fusion provided in an embodiment of the present application is shown in FIG. Figure 5As shown, it includes: regarding the GIS engine library, at the beginning, an engine library is established; regarding engine maintenance, the engines in the engine library are uniformly maintained, and then the maintained GIS engines are integrated and adapted, wherein the integrated adaptation can be an integrated adaptation of the API; regarding service maintenance, GIS services are first created, then published, and then unavailable GIS services are deactivated and / or removed from the shelves, wherein the GIS service is the above-mentioned geographic information system service; specifically, regarding layer maintenance, after publishing the GIS service, a GIS server is created and maintained; regarding spatial display, it can be achieved through GIS service map visualization.
[0143] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0144] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0145] Figure 6 A schematic diagram of the structure of a multi-engine integrated device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the multi-engine integration device 40 provided in the embodiment of the present application includes:
[0146] A construction module 401 is used to obtain a plurality of geographic information system servers and construct an engine library according to the plurality of geographic information system servers;
[0147] Maintenance module 402, used to monitor the status information of multiple geographic information system servers to complete the maintenance and management of multiple geographic information system servers;
[0148] The processing module 403 is used to perform integration processing on multiple geographic information system servers to obtain a unified application programming interface, wherein the unified application programming interface is used to access multiple geographic information system servers;
[0149] A creation module 404 is used to create metadata for multiple geographic information system servers;
[0150] The service publishing module 405 is used to use the metadata as a dataset of the draft GIS service, create a GIS service for each GIS server, and publish the GIS service to the corresponding GIS server.
[0151] Optionally, the processing module 403, when performing fusion processing on multiple geographic information system servers to obtain a unified application programming interface, is used to:
[0152] Access to application programming interfaces for multiple GIS servers;
[0153] The APIs of multiple GIS servers are fused to generate a unified API.
[0154] Optionally, the processing module 403, when performing fusion processing according to the application programming interfaces of multiple geographic information system servers to generate a unified application programming interface, is used to:
[0155] The adapter mode is used to integrate the application programming interfaces of multiple GIS servers to generate a unified application programming interface.
[0156] Optionally, the status information includes life cycle status and / or operation status; the maintenance module 402, when monitoring the status information of multiple geographic information system servers to complete the maintenance management of multiple geographic information system servers, is used to:
[0157] Monitor the life cycle status and / or operation of multiple GIS servers;
[0158] Determine whether to perform maintenance on multiple GIS servers based on their life cycle status and / or operating conditions.
[0159] Optionally, the geographic information system service includes a layer element; the above device further includes:
[0160] New modules for:
[0161] Create the layer element to be updated;
[0162] Publish the layer elements to be updated to the corresponding geographic information system server.
[0163] Optionally, the above device further includes:
[0164] Display module for:
[0165] According to the geographic information system service, map rendering is performed to display the visualization interface corresponding to the geographic information system service.
[0166] Optionally, the above device further includes:
[0167] Operation and maintenance module, used for:
[0168] According to the status information of the plurality of geographic information system servers, determining whether there are any geographic information system servers that have been deactivated and / or are to be decommissioned;
[0169] If there are GIS servers that have been deactivated and / or are to be deactivated, a deactivation and / or destruction instruction is issued to the GIS servers that have been deactivated and / or are to be deactivated.
[0170] The multi-engine integration device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0171] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0172] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0173] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to a transistor, a memristor, etc.
[0174] Figure 7 This is a schematic diagram of the structure of the multi-engine integrated device provided in this application. Figure 7As shown, the multi-engine integrated device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the multi-engine integrated device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.
[0175] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.
[0176] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0177] If not otherwise specified, the processor 501 may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. If not otherwise specified, the memory 502 may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.
[0178] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0179] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above redundant field updating method for a distributed system is implemented.
[0180] An embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the above redundant field updating method for a distributed system.
[0181] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0182] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0183] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A multi-engine integration method, characterized in that: include: Acquire multiple geographic information system servers, and build an engine library based on the multiple geographic information system servers; Monitoring the status information of the plurality of geographic information system servers to complete the maintenance and management of the plurality of geographic information system servers; Performing fusion processing on the multiple geographic information system servers to obtain a unified application programming interface, wherein the unified application programming interface is used to access the multiple geographic information system servers; Creating metadata for the plurality of geographic information system servers; The metadata is used as a dataset of a draft GIS service, a GIS service is created for each GIS server, and the GIS service is published to the corresponding GIS server.
2. The method according to claim 1, characterized in that The fusion processing of the plurality of geographic information system servers to obtain a unified application programming interface includes: Obtaining application programming interfaces of the plurality of geographic information system servers; The application programming interfaces of the plurality of geographic information system servers are fused to generate a unified application programming interface.
3. The method according to claim 2, characterized in that The step of fusing the application programming interfaces of the plurality of geographic information system servers to generate a unified application programming interface comprises: The adapter mode is adopted to integrate the application programming interfaces of the multiple geographic information system servers to generate a unified application programming interface.
4. The method according to claim 1, characterized in that: The status information includes life cycle status and / or operation status; Accordingly, the monitoring of the status information of the plurality of geographic information system servers to complete the maintenance and management of the plurality of geographic information system servers includes: Monitoring the life cycle status and / or operation status of the plurality of geographic information system servers; According to the life cycle status and / or operation status, it is determined whether to perform maintenance processing on the multiple geographic information system servers.
5. The method according to any one of claims 1 to 4, characterized in that: The geographic information system service includes a layer element; Accordingly, after using the metadata as a dataset of a draft GIS service, creating a GIS service for each GIS server, and publishing the GIS service to the corresponding GIS server, the method further includes: Create the layer element to be updated; The layer elements to be updated are published to the corresponding geographic information system server.
6. The method according to claim 5, characterized in that After publishing the layer element to be updated to the corresponding geographic information system server, the method further includes: According to the geographic information system service, map rendering processing is performed to display a visualization interface corresponding to the geographic information system service.
7. The method according to any one of claims 1 to 4, characterized in that: After using the metadata as a dataset of a draft GIS service, creating a GIS service for each GIS server, and publishing the GIS service to the corresponding GIS server, the method further includes: Determining whether there are any GIS servers that have been deactivated and / or are to be decommissioned based on the status information of the plurality of GIS servers; If there are GIS servers that have been deactivated and / or are to be deactivated, a deactivation and / or destruction instruction is issued to the GIS servers that have been deactivated and / or are to be deactivated.
8. A multi-engine integrated device, characterized in that: include: A construction module, used for acquiring a plurality of geographic information system servers and constructing an engine library according to the plurality of geographic information system servers; A maintenance module, used for monitoring the status information of the plurality of geographic information system servers to complete the maintenance and management of the plurality of geographic information system servers; A processing module, used for performing integration processing on the multiple geographic information system servers to obtain a unified application programming interface, wherein the unified application programming interface is used to access the multiple geographic information system servers; A creation module, used for creating metadata for the plurality of geographic information system servers; The service publishing module is used to use the metadata as a dataset of a draft GIS service, create a GIS service for each GIS server, and publish the GIS service to the corresponding GIS server.
9. A multi-engine integrated device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the multi-engine integration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the multi-engine integration method according to any one of claims 1 to 7 when executed by a processor.
11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program is used to implement the multi-engine integration method according to any one of claims 1 to 7.