Map service updating method, system and electronic device

By generating real-time vector tile data and feature services and combining a locking mechanism to manage map data editing, the problems of low efficiency in geographic information vector feature data processing and conflicts in collaborative editing by multiple people are solved, and real-time updating of map data and collaborative editing by multiple people are achieved.

CN117171283BActive Publication Date: 2025-09-26NAT GEOMATICS CENT OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311140589.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2025-09-26
Estimated Expiration
2043-09-05

AI Technical Summary

Technical Problem

The existing method for processing geographic information vector element data is inefficient, cannot achieve online dynamic editing, and is prone to data conflicts and confusion when multiple people collaborate on editing.

Method used

By generating real-time vector slice data and sending it to the target terminal, real-time updating and editing of map data can be achieved in combination with feature services. Feature status auxiliary fields and locking mechanisms are used to manage data editing, supporting collaborative work among multiple people and multiple machines.

Benefits of technology

It realizes the real-time update and display of map data, improves the efficiency of data production, integration, database construction and update, ensures the accuracy and consistency of data, and supports collaborative editing by multiple people.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117171283B_ABST
    Figure CN117171283B_ABST
Patent Text Reader

Abstract

The present application provides a method, system and electronic device for updating a map service, and relates to the field of map service updating. The method for updating a map service includes: generating real-time vector slice data based on the geographic information vector feature data corresponding to the target map service, and sending the real-time vector slice data to the target terminal; obtaining a feature editing request, and determining the corresponding geographic information vector feature data to be edited according to the feature editing request; sending the geographic information feature to be edited to the target terminal in the form of a feature service; obtaining the updated geographic information vector feature data edited by the target client based on the feature service to complete the update of the map service. The map service updating method provided in the embodiment of the present application is used to perform online editing of vector feature data and dynamic update of the database, with each process operating synchronously and supporting multiple people and multiple machines to operate simultaneously, greatly improving the efficiency of data production, fusion, database construction and updating.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map service updates, and in particular to a map service update method, system, and electronic device. Background Art

[0002] A map service is a technology used to provide geospatial data to applications, websites, or users, allowing them to load, browse, and use map data within applications, websites, or map apps. The data source for a map service is often geographic information vector feature data; more specifically, geographic information vector feature data refers to data representing geographic phenomena or objects in vector form within a geographic information system (GIS). Vector data uses geometric shapes (points, lines, and surfaces) to describe the location and shape of geographic features, and can include attribute information to describe the characteristics of these features.

[0003] Currently, the production process for geographic information vector feature data involves splitting tasks by administrative division or image sheet, assigning them to operators, and then using local stand-alone software to collect and edit vector features based on local image files, as well as edge processing for the task area. Finally, multiple data sets are integrated into a single file. The process for generating online map services involves storing geographic information vector feature data in a database, then cropping it into raster tile or vector tile format according to standards, and publishing vector feature map services.

[0004] However, the current methods for processing geographic information vector feature data and generating online maps have problems such as low efficiency and inability to dynamically edit geographic information vector feature data online. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a method, system and electronic device for updating map services. By establishing a set of online editing and updating methods for vector element data based on map services, real-time online editing of vector elements in map services and vector element data in the results database and dynamic updating of databases can be achieved. It can integrately support business links such as data production, data inspection, and data database construction, synchronize various processes, and support multiple people and multiple machines working at the same time, greatly improving the efficiency of data production, fusion, database construction and updating.

[0006] In the first aspect, an embodiment of the present application provides a method for updating a map service, the method comprising: generating real-time vector slice data based on geographic information vector feature data corresponding to a target map service, and sending the real-time vector slice data to a target terminal; obtaining a feature editing request, and determining the corresponding geographic information vector feature data to be edited based on the feature editing request; sending the geographic information feature to be edited to the target terminal in the form of a feature service; obtaining the updated geographic information vector feature data edited by the target client based on the feature service to complete the update of the map service.

[0007] In the above implementation process, the map service update method provided in this application realizes real-time update and display of map data by generating real-time vector slice data and sending it to the target terminal, thereby keeping the map information up to date; the editability of features is realized through feature services, and the server obtains the updated geographic information vector feature data after editing, so that the map service can be updated in time and display the editing results.

[0008] Optionally, in an embodiment of the present application, before generating real-time vector slice data based on the geographic information vector feature data corresponding to the target map service, the method further includes: obtaining initial geographic information vector feature data; establishing a feature status auxiliary field based on the initial geographic information vector feature data; wherein the feature status auxiliary field is used to record the version of the feature data, the status of the feature data, and the target user information for editing the feature data.

[0009] In the above implementation process, the map service update method provided by the present application includes the storage of data and the establishment of auxiliary fields for feature status. The feature status auxiliary fields are used to track different versions, statuses and editing information of feature data, so that information related to feature data can be tracked; for example, the establishment of a locking mechanism can ensure that only one user can edit a feature within a period of time, thereby avoiding data conflicts and confusion; that is, the map service update method provided by the embodiment of the present application realizes efficient management of data, which is conducive to the collaborative editing and version management of features by multiple users.

[0010] Optionally, in an embodiment of the present application, the real-time vector slice data is generated based on the geographic information vector feature data corresponding to the target map service, including: generating original real-time vector slice data in PostGIS based on the ST_AsMVTGeom function and the ST_AsMVT function according to the geographic information vector feature data; and optimizing the original real-time vector slice data to obtain the real-time vector slice data.

[0011] In the above implementation process, the original real-time vector tile data is generated by processing the stored geographic information vector feature data, and the real-time vector tile data is obtained by optimizing the original real-time vector tile data; after the data is optimized, the real-time vector tile data will become smaller and more suitable for network transmission and rendering, thereby improving the map loading efficiency.

[0012] Optionally, in an embodiment of the present application, determining the corresponding geographic information vector element data to be edited according to the element editing request includes: determining the corresponding real-time vector slice data according to the element editing request; and determining the corresponding geographic information vector element data to be edited according to the real-time vector slice data.

[0013] In the above implementation process, the map service update method provided by the embodiment of the present application, in order to determine the corresponding geographic information vector feature data to be edited, must first determine the corresponding real-time vector slice data from the feature label editing request, and then determine the corresponding geographic information vector feature data to be edited from the real-time vector slice data; through this process, the feature data to be edited is accurately determined, and the slice data is restored to spatial information and attribute information, thereby providing an accurate data basis for subsequent editing operations.

[0014] Optionally, in an embodiment of the present application, after obtaining the feature editing request and determining the corresponding geographic information vector feature data to be edited based on the feature editing request, the method also includes: changing the state of the geographic information vector feature data to be edited to a state that is not editable except by the target user.

[0015] In the above implementation process, the map service update method provided in the embodiment of the present application will change the status of the corresponding geographic information vector element data to be edited by locking the elements after determining the corresponding geographic information vector element data to be edited, effectively manage concurrent editing problems, and ensure the accuracy and consistency of map data.

[0016] Optionally, in an embodiment of the present application, sending the geographic information element to be edited to the target terminal in the form of an element service includes: obtaining the spatial information and attribute information of the geographic information element to be edited; organizing the spatial information and attribute information in a spatial information coding manner, and sending them to the target terminal.

[0017] In the above implementation, the server obtains the geographic information element data to be edited and organizes the spatial information and attribute information according to the specified encoding method for transmission to the target terminal. The spatial information is organized in the GeoJSON format, allowing the data to be transmitted to the front-end map library in a lightweight and easy-to-read manner to meet the map library's display and rendering requirements.

[0018] Optionally, in an embodiment of the present application, after obtaining the updated geographic information vector element data, the method further includes: storing the updated geographic information vector element data in a database; regenerating real-time vector slice data based on the updated geographic information vector element data, and sending it to other terminals; wherein the other terminals include terminals that collaboratively process the target map service.

[0019] In the above implementation process, the number of edited or newly added features is stored in the database, so that the server can effectively manage the updated geographic information vector feature data; the updated slice data is sent to other terminals and target terminals to ensure data consistency of each terminal when multiple people collaborate on editing.

[0020] In the second aspect, an embodiment of the present application provides a map service update system, which includes: a real-time vector slice generation module, an online editing module and an update data acquisition module; the real-time vector slice generation module is used to generate real-time vector slice data based on the geographic information vector element data corresponding to the target map service, and send the real-time vector slice data to the target terminal; the online editing module is used to obtain an element editing request, and determine the corresponding geographic information vector element data to be edited based on the element editing request; the online editing module is also used to send the geographic information element to be edited to the target terminal in the form of an element service; the update data acquisition module is used to obtain the updated geographic information vector element data edited by the target client based on the element service to complete the update of the map service.

[0021] In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein program instructions are stored in the memory, and when the processor reads and runs the program instructions, it executes the steps in any of the above implementation methods.

[0022] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer program instructions are stored in the computer-readable storage medium. When the computer program instructions are read and executed by a processor, the steps in any of the above implementation methods are executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0024] Figure 1A flowchart of map service update provided in an embodiment of the present application;

[0025] Figure 2 Flowchart of data storage provided in the embodiment of the present application;

[0026] Figure 3 Flowchart of the generation of vector slice data provided in the embodiment of the present application;

[0027] Figure 4 A flowchart for determining an object to be edited provided in an embodiment of the present application;

[0028] Figure 5 Generate a flow chart in an editable manner provided in the embodiment of the present application;

[0029] Figure 6 A data update flow chart provided for an embodiment of the present application;

[0030] Figure 7 A diagram of data interaction provided in real time for this application;

[0031] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes may also occur in an order different from that marked in the drawings. For example, two consecutive boxes may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, may be implemented using a dedicated hardware-based system that performs the specified functions or actions, or may be implemented using a combination of dedicated hardware and computer instructions. In addition, the functional modules in the various embodiments of the present invention may be integrated together to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.

[0033] The existing production technology process of geographic information vector feature data generally adopts the method of allocating production tasks according to image sheets. Operators use local stand-alone software to collect and edit vector features based on local image files and process feature edges between task areas. After completing the production of datasets for regional tasks, multiple datasets are merged into one dataset file according to a certain task or survey area.

[0034] After processing geographic information vector feature data into a dataset, the vector feature dataset is published as an online map. Specifically, the dataset is stored and processed according to certain standards, and the vector feature data is then cropped and processed into raster tile format data or vector tile format data according to standards, thereby enabling the publication of vector feature map services.

[0035] It's important to note that raster tile data is an image that breaks a map into a series of small grid cells (pixels), each of which is called a tile. Raster tile data is static and is typically used for basic map display and browsing. Maps at different zoom levels typically use raster tile data of different resolutions, allowing for quick loading of appropriate map images at different zoom levels.

[0036] Vector tile data, on the other hand, is not an image but rather vector data containing geographic features, such as points, lines, and surfaces. Vector data is stored as tiles, each containing information about geographic features within a specific area. These features can be dynamically displayed and rendered based on the map's zoom level to accommodate different map display requirements.

[0037] During the research process, the applicant found that if the map service constructed by the above method is to edit and update the vector feature dataset or online map service, it is necessary to first edit and update the dataset through stand-alone software, and then repeat a series of processing processes such as data storage, index construction, map tile cutting, and map service publishing.

[0038] On the one hand, the method of allocating production tasks based on image sheets takes a long time to distribute and copy the reference image data when allocating tasks. The spatial and attribute edges of the collected features can only be operated in a single machine in one direction. The entire allocation method makes data processing very time-consuming and cumbersome. Moreover, when the task coverage of the vector feature dataset is too large or the number of features is too large, it is difficult for the stand-alone software to efficiently read, write, retrieve, and edit the data, which may cause the software to freeze or even crash.

[0039] On the other hand, after the results of the geographic information vector feature dataset are submitted to the database, if it is found that the stored data still has errors in spatial location or attribute information; because the data is cut into raster tile or vector tile data format, the vector features cannot be modified based on the cut tile data; the modification requires frequent editing and re-storage of the dataset, and in the process of stand-alone software editing and modification, it is easy to move other elements and introduce new errors.

[0040] Moreover, it is difficult to achieve parallel operation during the operation process, that is, multiple people and multiple machines edit and process the same vector feature dataset at the same time, resulting in low operation efficiency.

[0041] Based on this, the present application provides a method, system and electronic device for updating a map service; wherein, the method for updating a map service establishes a set of online editing and updating methods for vector feature data based on a map service, first generating real-time vector slices based on the vector feature data; after determining the vector feature to be edited, the feature editing is implemented based on the feature service, thereby achieving dynamic updating; based on the feature service approach, it is also possible for multiple people to collaboratively edit different features of the same map service online.

[0042] Please see Figure 1 , Figure 1 A flowchart of a map service update provided in an embodiment of the present application; a first aspect of the present application provides a method for updating a map service, the method comprising the following steps:

[0043] Step S100: Generate real-time vector slice data based on geographic information vector element data corresponding to the target map service, and send the real-time vector slice data to the target terminal.

[0044] In the above step S100, real-time vector slice data is generated according to the geographic information quantity element data corresponding to the target map service, and the real-time vector slice data is sent to the target terminal; wherein the real-time vector slice data can be raster tile data or vector tile data.

[0045] For example, real-time vector tile data can be stored as a binary stream and provided to a front-end map library via HTTP requests. The front-end map library (such as Mapbox GL JS) can parse and render this tile data to display the map.

[0046] Step S200: Obtain a feature editing request, and determine corresponding geographic information vector feature data to be edited according to the feature editing request.

[0047] In step S200, a feature edit request is obtained, and the corresponding geographic information vector feature data to be edited is determined based on the feature edit request. For example, a terminal user can lock the feature to be edited using a vector slice, and then obtain all feature data of the locked feature to be edited, including geometric space and attribute information, through a feature service.

[0048] Step S300: Send the geographic information element to be edited to the target terminal in the form of element service.

[0049] In the above step S300, the geographic information element to be edited is sent to the target terminal in the form of a feature service. It should be noted that the feature service is a service used to provide original vector feature data to the front-end map library; it is usually based on a specific GIS service protocol (such as OGC's WFS or Esri's Feature Service) or HTTP API, enabling the front-end application to request, obtain and display vector feature data.

[0050] Step S400: Acquire updated geographic information vector feature data edited by the target client based on the feature service to complete the update of the map service.

[0051] In the above step S400, after the target client edits the geographic information vector element data to be updated based on the element service, the edited element information is acquired by the server, and the update of the map service is completed.

[0052] pass Figure 1 It can be seen that the map service update method provided in this application realizes real-time updating and display of map data by generating real-time vector slice data and sending it to the target terminal, thereby keeping the map information up to date; the editability of features is realized through feature services, and the server obtains the updated geographic information vector feature data after editing, so that the map service can be updated in time and display the editing results.

[0053] Please see Figure 2 , Figure 2 A flowchart of data storage provided in an embodiment of the present application; in an optional implementation of an embodiment of the present application, before step S100: generating real-time vector slice data based on geographic information vector feature data corresponding to the target map service, the following steps are also included:

[0054] Step S01: Acquire initial geographic information vector element data.

[0055] Step S02: Establishing feature status auxiliary fields based on the initial geographic information vector feature data.

[0056] Before the above step S100, the geographic information vector data is first stored in the database through steps S01 and S02; the initial geographic information quantity element data that needs to be stored in the database itself carries attribute information and spatial information, but in the process of building an online map service, in addition to importing all the attribute information and spatial information of the data itself into the database, it is also necessary to establish additional fields to assist in subsequent data editing.

[0057] Feature status auxiliary fields are used to record the version of feature data, the status of feature data, and the target user information for editing feature data. For example, a Version field is created to record the feature edit version; an is_locked field is created to identify whether the feature is locked. For example, when a feature is selected and edited by a user, the feature is locked and other users cannot edit it at the same time. After the edit is completed, the edit version information is recorded; and a locked_user_id field is created to record the user information of the feature.

[0058] pass Figure 2 It can be seen that the update method of the map service provided by the present application includes the storage of data and the establishment of auxiliary fields for feature status. The feature status auxiliary fields are used to track different versions, statuses and editing information of feature data, so that information related to the feature data can be tracked; for example, the establishment of a locking mechanism can ensure that only one user can edit a certain feature within a period of time, thereby avoiding data conflicts and confusion; that is, the update method of the map service provided by the embodiment of the present application realizes efficient management of data, which is conducive to the collaborative editing and version management of features by multiple users.

[0059] Please see Figure 3 , Figure 3 This is a flowchart of real-time vector slice data generation provided in an embodiment of the present application. In an optional implementation of an embodiment of the present application, the generation of real-time vector slice data based on geographic information vector feature data corresponding to the target map service in step S100 can be achieved by the following steps:

[0060] Step S110: Generate original real-time vector tile data in PostGIS based on the geographic information vector feature data and the ST_AsMVTGeom function and the ST_AsMVT function.

[0061] In the above step S110, the stored geographic information vector feature data is used to generate original real-time vector tiles in PostGIS (an extension that adds geographic spatial functions to the PostgreSQL database, allowing the storage and query of geographic information data) using the ST_AsMVTGeom function and the ST_AsMVT function.

[0062] It should be noted that the ST_AsMVTGeom function and the ST_AsMVT function are functions provided by PostGIS for converting vector feature data into Mapbox Vector Tiles (MVT) format. ST_AsMVTGeom is used to project and transform vector features, while ST_AsMVT converts these features into binary data in MVT format.

[0063] Step S120: Optimizing the original real-time vector slice data to obtain real-time vector slice data.

[0064] In the above step S120 , the original real-time vector slice data is optimized to obtain real-time vector slice data.

[0065] For example, the binary data: real-time vector tile data, is thinned and simplified to ensure the size of each binary file.

[0066] It should be noted that for large-scale vector feature data, in order to reduce the burden of data transmission and loading, the data is usually thinned and simplified. This means that at lower zoom levels, some details will be omitted to ensure that the tile data size is moderate, thereby improving map loading performance.

[0067] pass Figure 3 It can be seen that the original real-time vector slice data is generated by processing the stored geographic information vector feature data, and the real-time vector slice data is obtained by optimizing the original real-time vector slice data; after the data is optimized, the real-time vector slice data will become smaller and more suitable for network transmission and rendering, thereby improving the map loading efficiency.

[0068] Please see Figure 4 , Figure 4 A flowchart for determining an object to be edited provided in an embodiment of the present application; in an optional implementation of an embodiment of the present application, in step S200, determining the corresponding geographic information vector element data to be edited according to the element editing request can be implemented by the following steps:

[0069] Step S210: Determine corresponding real-time vector slice data according to the feature editing request.

[0070] Step S220: Determine the corresponding geographic information vector element data to be edited based on the real-time vector slice data.

[0071] In the above steps S220-S220, when the target terminal selects the element to be edited and sends an element editing request to the server, the server executing this method obtains the element editing request and determines the corresponding real-time vector slice data according to the element editing request; further, the corresponding geographic information vector element data to be edited is determined by the slice.

[0072] pass Figure 4 It can be seen that the map service updating method provided in the embodiment of the present application, in order to determine the corresponding geographic information vector feature data to be edited, needs to first determine the corresponding real-time vector slice data from the feature label editing request, and then determine the corresponding geographic information vector feature data to be edited from the real-time vector slice data; through this process, the feature data to be edited is accurately determined, and the slice data is restored to spatial information and attribute information, thereby providing an accurate data basis for subsequent editing operations.

[0073] In an optional embodiment, after obtaining a feature editing request and determining the corresponding geographic information vector feature data to be edited based on the feature editing request, the map service update method also includes: changing the state of the geographic information vector feature data to be edited to a state that is not editable except for the target user.

[0074] For example, row-level locking can be used to lock features and resolve concurrency issues. This lock identifies the feature's editing status and records edit information, providing a record of the editing user's identity for collaborative editing. That is, when a user begins editing a specific feature, the server locks the feature's editing status, preventing other users from editing the same feature simultaneously, thus preventing editing conflicts and data confusion.

[0075] From this, it can be seen that the map service update method provided in the embodiment of the present application will change the status of the corresponding geographic information vector element data to be edited by locking the elements after determining the corresponding geographic information vector element data to be edited, effectively manage concurrent editing problems, and ensure the accuracy and consistency of map data.

[0076] Please see Figure 5 , Figure 5 The flowchart of the editable method provided in the embodiment of the present application is generated; in an optional implementation of the embodiment of the present application, step S300: sending the geographic information element to be edited to the target terminal in the form of an element service may include the following steps:

[0077] Step S310: Acquire the spatial information and attribute information of the geographic information element to be edited.

[0078] Step S320: Organize the spatial information and attribute information in a spatial information coding manner to obtain spatial data to be displayed, and send the spatial data to the target terminal.

[0079] In the above steps S310 to S320, in order to send the geographic information element to be edited to the target terminal in the form of feature service, it is necessary to obtain the spatial information and attribute information of the geographic information element to be edited (spatial information and attribute information are the information of the feature data itself), and then organize the spatial information and attribute information in a spatial information coding manner to obtain the spatial data to be displayed.

[0080] For example, spatial information is organized in GeoJSON format. It should be noted that GeoJSON format is a lightweight, easy-to-read text format suitable for use in network transmission. It supports geographic geometry types such as points, lines, and surfaces, can accurately represent the location and shape of geographic features, and also supports the addition of attribute information. In vector feature services, GeoJSON format can be used to encode spatial information into geometric types (such as points, lines, and surfaces) and their coordinate information, so that it can be displayed and rendered in the front-end map library.

[0081] pass Figure 5 As you can see, the server obtains the geographic information feature data to be edited and organizes the spatial and attribute information according to the specified encoding method for transmission to the target terminal. Using the GeoJSON format to organize the spatial information allows the data to be transmitted to the front-end map library in a lightweight and easy-to-read manner, meeting the map library's display and rendering requirements.

[0082] Please see Figure 6 , Figure 6 A data update flow chart provided for an embodiment of the present application; in an optional implementation of the embodiment of the present application, after obtaining updated geographic information vector element data in step S400, the method further includes the following steps:

[0083] Step S03: storing the updated geographic information vector element data in the database.

[0084] In the above step S03, after the server obtains the updated geographic information vector feature data, the spatial data records the spatial information and attribute information of the new feature in GeoJSON after being edited and drawn on the terminal, and transmits the data back to the server through an HTTP request. The server updates or adds the spatial information and attribute information of the new feature to the database through the database interface.

[0085] Since the real-time vector tile service is used to provide external services, after the data in the database changes, the data obtained when the next request comes to generate vector tiles will already be the updated data, thereby realizing the update of the map service after the data is updated.

[0086] Step S04: regenerate real-time vector slice data based on the updated geographic information vector element data and send it to other terminals.

[0087] In step S04, the updated results are pushed to other terminals, including terminals that collaborate on the target map service. When multiple people are editing, each page refresh is equivalent to re-requesting data, thereby obtaining the updated vector feature data from the database.

[0088] pass Figure 6 It can be seen that the edited or newly added feature data is stored in the database, allowing the server to effectively manage the updated geographic information vector feature data; the updated slice data is sent to other terminals and target terminals to ensure data consistency among terminals when multiple people collaborate on editing.

[0089] Please see Figure 7 , Figure 7 This is a diagram of data interaction provided in real time for this application; Figure 7 As shown, the user front end is the terminal in this application, and the specific process is as follows:

[0090] The user first opens the online editing mode on the front end to start editing features. When the user opens the editing mode, the selected object is the vector tile service provided by the backend service. The user can see the data but cannot edit the object.

[0091] The server and vector tile service organize spatial data into binary streams according to the vector tile standard specification and provide front-end map display. The vector tile service is mainly used for display.

[0092] Furthermore, when the user chooses to edit a feature, the vector slice supports the front-end to select and highlight the feature. In order to support collaboration among multiple people, the system locks the selected feature through the background service. The purpose of locking is to ensure that the feature is occupied by only one user.

[0093] The server uses a row-level lock mechanism to lock features to resolve concurrency issues, lock the feature's editing status, and record feature editing information, providing editing user identification records for collaborative editing by multiple people.

[0094] Furthermore, users can lock features through vector slices and then obtain all feature data of the locked features through feature services, including spatial information and attribute information.

[0095] Server feature services provide the full content of features, including complete geometric information and attribute information. Feature services can support data editing and updating.

[0096] Furthermore, feature services are rendered to the map interface through the front-end, supporting the addition, modification, and deletion of geometric information, attribute information, and attribute fields. They also support node editing while preserving topological relationships, support gradual rollback and one-click restoration of edit actions, and support version backtracking of vector features.

[0097] Server dynamic update includes two parts: dynamically updating the editing results of one end to the database and pushing the latest editing results to users on multiple ends.

[0098] The second aspect of the present application further discloses a map service update system; the map service update system includes a real-time vector slice generation module, an online editing module and an update data acquisition module.

[0099] The real-time vector slice generation module is used to generate real-time vector slice data based on the geographic information vector feature data corresponding to the target map service, and send the real-time vector slice data to the target terminal;

[0100] The online editing module is used to obtain feature editing requests and determine the corresponding geographic information vector feature data to be edited according to the feature editing requests;

[0101] The online editing module is also used to send the geographic information elements to be edited to the target terminal in the form of element services;

[0102] The update data acquisition module is used to obtain the updated geographic information vector feature data edited by the target client based on the feature service to complete the update of the map service.

[0103] In an optional embodiment, the vector slice generation module is used to generate original real-time vector slice data in PostGIS based on the geographic information vector feature data and the ST_AsMVTGeom function and the ST_AsMVT function; and optimize the original real-time vector slice data to obtain real-time vector slice data.

[0104] In an optional embodiment, the online editing module determines the corresponding real-time vector slice data according to the feature editing request; and determines the corresponding geographic information vector feature data to be edited according to the real-time vector slice data.

[0105] In an optional embodiment, the online editing module obtains the spatial information and attribute information of the geographic information element to be edited; organizes the spatial information and attribute information in a spatial information coding manner, and sends the spatial information and attribute information to the target terminal.

[0106] In an optional embodiment, the map service update system is also used to store updated geographic information vector feature data in a database; regenerate real-time vector slice data based on the updated geographic information vector feature data, and send it to other terminals; wherein the other terminals include terminals that collaboratively process the target map service.

[0107] In an optional embodiment, the update system of the map service is also used to obtain initial geographic information vector feature data; based on the initial geographic information vector feature data, establish a feature status auxiliary field; wherein the feature status auxiliary field is used to record the version of the feature data, the status of the feature data, and the target user information for editing the feature data.

[0108] In an optional embodiment, the update system of the map service is further configured to change the state of the geographic information vector element data to be edited to a state that is not editable except by the target user.

[0109] See Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. An electronic device 300 provided in an embodiment of the present application includes: a processor 301 and a memory 302, wherein the memory 302 stores machine-readable instructions executable by the processor 301, and when the machine-readable instructions are executed by the processor 301, the above method is performed.

[0110] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer program instructions. When the computer program instructions are read and executed by a processor, the steps in any of the above implementation methods are executed.

[0111] The computer-readable storage medium may be any medium capable of storing program code, such as a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), or an electrically erasable programmable read-only memory (EEPROM). The storage medium is used to store a program, and the processor executes the program upon receiving an execution instruction. The method executed by the electronic terminal defined by the process disclosed in any embodiment of the present invention may be applied to or implemented by the processor.

[0112] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0113] In addition, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0115] Alternatively, the present invention may be implemented in whole or in part through software, hardware, firmware, or any combination thereof. When implemented using software, the present invention may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part.

[0116] The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0117] In this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the elements.

[0118] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for updating a map service, characterized in that: The method comprises: Generate real-time vector slice data based on geographic information vector element data corresponding to the target map service, and send the real-time vector slice data to the target terminal; Obtaining a feature editing request, and determining corresponding geographic information vector feature data to be edited according to the feature editing request; Sending the geographic information element to be edited to the target terminal in the form of element service; Acquire updated geographic information vector feature data edited by the target client based on the feature service to complete the update of the map service; The sending of the geographic information element to be edited to the target terminal in the form of an element service includes: obtaining spatial information and attribute information of the geographic information element to be edited; organizing the spatial information and attribute information in a spatial information coding manner, and sending the spatial information and attribute information to the target terminal.

2. The method according to claim 1, characterized in that The generating of real-time vector slice data based on geographic information vector feature data corresponding to the target map service includes: Generate raw real-time vector tile data in PostGIS based on geographic information vector feature data using ST_AsMVTGeom function and ST_AsMVT function; The original real-time vector tile data is optimized to obtain the real-time vector tile data.

3. The method according to claim 1, characterized in that The step of determining corresponding geographic information vector element data to be edited according to the element editing request includes: Determining the corresponding real-time vector tile data according to the feature editing request; According to the real-time vector slice data, the corresponding geographic information vector element data to be edited is determined.

4. The method according to claim 1, wherein After obtaining and updating the geographic information vector element data, the method further includes: Storing the updated geographic information vector element data in a database; The real-time vector slice data is regenerated based on the updated geographic information vector element data and sent to other terminals; wherein the other terminals include terminals that collaboratively process the target map service.

5. The method according to claim 1, wherein Before generating real-time vector tile data based on the geographic information vector feature data corresponding to the target map service, the method further includes: Obtain initial geographic information vector feature data; An element status auxiliary field is established based on the initial geographic information vector element data; wherein the element status auxiliary field is used to record the version of the element data, the status of the element data, and the target user information for editing the element data.

6. The method according to claim 5, characterized in that After obtaining the feature editing request and determining the corresponding geographic information vector feature data to be edited according to the feature editing request, the method further includes: The state of the geographic information vector element data to be edited is changed to a state that is not editable except by the target user.

7. A map service update system, characterized in that: The map service update system includes: a real-time vector slice generation module, an online editing module and an update data acquisition module; The real-time vector slice generation module is used to generate real-time vector slice data based on the geographic information vector element data corresponding to the target map service, and send the real-time vector slice data to the target terminal; The online editing module is used to obtain a feature editing request and determine the corresponding geographic information vector feature data to be edited according to the feature editing request; The online editing module is further configured to send the geographic information element to be edited to the target terminal in the form of an element service; wherein sending the geographic information element to be edited to the target terminal in the form of an element service comprises: acquiring spatial information and attribute information of the geographic information element to be edited; organizing the spatial information and attribute information in a spatial information coding manner, and sending the spatial information and attribute information to the target terminal; The update data acquisition module is used to acquire the updated geographic information vector element data edited by the target client based on the element service, so as to complete the update of the map service.

8. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein program instructions are stored in the memory, and when the processor runs the program instructions, the steps in the method according to any one of claims 1 to 6 are executed.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are executed.

Citation Information

Patent Citations

  • Map editing method, system and device, computing equipment and storage medium

    CN113888673A

  • Device for editing map data, and server for the same

    JP2010191889A