Fence management and integration method, device, equipment and storage medium for map components
By using graphic rendering algorithms in the fence management system to generate visual maps, merge and convert fence data, and store operation logs through blockchain, the problems of single functions and complex operations of the existing system are solved, improving the accuracy, user experience and data security of the system.
Patent Information
- Application Number
- CN202411791830.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-04
AI Technical Summary
The existing fence management system has single functions and complex operations, which cannot meet the changing business needs.
By obtaining map data, a visual map is generated using a graphic rendering algorithm, fence data and operation logs drawn by users are obtained, fence data at different levels are merged and converted coordinate systems, the visual map is updated, and the operation logs are stored through the blockchain to build a database for users to query.
Improves the accuracy and user experience of fence drawing, enhances the traceability of operations and data security, and improves the convenience of query.
Smart Images

Figure CN119760168A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of logistics fence management, and in particular to a fence management and integration method, device, equipment and storage medium for map components. Background Art
[0002] With the development of e-commerce, the logistics and distribution industry is facing increasing service demands and technical challenges. In order to better serve customers, logistics companies need to manage the distribution areas in a refined manner, that is, to optimize distribution route planning and resource allocation by setting up virtual fences. However, the existing fence management system has problems such as single function and complex operation, and cannot meet the changing business needs.
[0003] It can be seen that the existing technology still needs to be improved and enhanced. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a fence management and integration method, device, equipment and storage medium for map components, aiming to solve the problems of single function and complex operation of the fence management system in the prior art.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A first aspect of the present invention provides a fence management and integration method for a map component, comprising the following steps: obtaining map data, using a graphics rendering algorithm, generating a visual map based on the map data, and outputting the visual map to a user, so as to obtain fence data and operation logs drawn by the user; merging fence data at different levels to obtain first data, converting the coordinate system of the first data to obtain second data, and updating the visual map according to the second data; obtaining each operation log, taking each operation log as a block, and associating each block to obtain associated block data; obtaining network point information, building a database based on the network point information, the second data and the associated block data, obtaining a user's query request, searching for matching data in the database according to the query request to obtain a query result, and outputting the query result to the user.
[0007] Optionally, in a first implementation method of the first aspect of the present invention, the acquiring of map data, using a graphics rendering algorithm, generating a visual map based on the map data, and outputting the visual map to a user to acquire fence data and an operation log drawn by the user, specifically includes: acquiring map data, organizing and indexing the map data using an R-tree algorithm to obtain preprocessed data; using a graphics rendering algorithm to perform visualization processing on the preprocessed data, the visualization processing steps including vertex processing, rasterization, and fragment processing to generate a visual map; outputting the visual map to a user to acquire fence data and an operation log drawn by the user.
[0008] Optionally, in a second implementation method of the first aspect of the present invention, the merging of fence data at different levels to obtain first data, converting the coordinate system of the first data to obtain second data, and updating the visual map based on the second data specifically includes: establishing a merging rule, adopting a merging algorithm, and merging fence data at different levels according to the merging rule to obtain the first data; adopting a conversion model to convert the coordinate system of the first data to obtain second data, wherein the second data includes multiple fences; adopting a spatial geometry algorithm to detect multiple fences to determine whether there are overlapping or adjacent fence boundaries between the multiple fences; if there are overlapping or adjacent fence boundaries, adopting an image segmentation model to adjust the coordinates of the fence boundaries to obtain third data, and updating the visual map based on the third data.
[0009] Optionally, in a third implementation manner of the first aspect of the present invention, if there are overlapping or adjacent fence boundaries, an image segmentation model is used to adjust the coordinates of the fence boundary to obtain third data, and the visualization map is updated according to the third data, specifically including: obtaining historical fence data, the historical fence data including multiple fences with overlapping or adjacent boundaries, annotating the historical data, and constructing a training set with the annotated historical data; taking a convolutional neural network model based on deep learning as a basic model, and training the basic model with the training set to obtain an image segmentation model; if there are overlapping or adjacent fence boundaries, an image segmentation model is used to adjust the coordinates of the fence boundary to obtain third data, and the visualization map is updated according to the third data.
[0010] Optionally, in a fourth implementation manner of the first aspect of the present invention, obtaining each operation log, taking each operation log as a block, and associating each block to obtain associated block data, specifically includes: obtaining each newly generated operation log, the data of the operation log including operation time, user information, operation type, and fence-related information, taking each operation log as a block, and analyzing the data of the operation log to obtain an analysis result; using a hash algorithm to perform hash calculation on the data of the operation log, and making the hash value of the current block include the hash value of the previous block to obtain associated block data; using the distributed storage mechanism of blockchain to store the associated block data in multiple nodes.
[0011] Optionally, in a fifth implementation of the first aspect of the present invention, each newly generated operation log is obtained, and the data of the operation log includes operation time, user information, operation type, and fence-related information. Each operation log is taken as a block, and the data of the operation log is analyzed to obtain an analysis result, specifically including: preprocessing the data of the operation log, removing noise data in the operation log, and performing data standardization to obtain preprocessed data; using a data analysis algorithm to classify the user's operation behavior according to the preprocessed data to obtain a classification result, and the classification result includes multiple operation types; using an association rule mining algorithm to calculate the correlation between users, operation types and fence data to obtain an analysis result.
[0012] Optionally, in a sixth implementation of the first aspect of the present invention, the obtaining of the network point information, building a database according to the network point information, the second data and the associated block data, obtaining the user's query request, searching for matching data in the database according to the query request to obtain query results, and outputting the query results to the user, specifically includes: obtaining the network point information, building a database according to the network point information, the second data and the associated block data; establishing a first index with key fields in the network point information, and establishing a second index with the geographic coordinates of the second data; obtaining the user's query request, searching for matching data in the database according to the query request, the database query language, the first index and the second index to obtain query results; serializing the query results to obtain serialized data results, and outputting the serialized data results to the user.
[0013] The second aspect of the present invention provides a fence management and integration device for a map component, including: a visualization module, which is used to obtain map data, use a graphics rendering algorithm, generate a visualization map according to the map data, and output the visualization map to the user, so as to obtain the fence data and operation log drawn by the user; a merging module, which is used to merge fence data at different levels to obtain first data, convert the coordinate system of the first data to obtain second data, and update the visualization map according to the second data; an association module, which is used to obtain each operation log, take each operation log as a block, and associate each block to obtain associated block data; a query module, which is used to obtain network point information, build a database according to the network point information, the second data and the associated block data, obtain the user's query request, search for matching data in the database according to the query request to obtain the query result, and output the query result to the user.
[0014] Optionally, in a first implementation method of the second aspect of the present invention, the visualization module includes: a preprocessing unit, used to acquire map data, and organize and index the map data using an R-tree algorithm to obtain preprocessed data; a visualization unit, used to perform visualization processing on the preprocessed data using a graphics rendering algorithm, and the visualization processing steps include vertex processing, rasterization, and fragment processing to generate a visualized map; an output unit, used to output the visualized map to a user to obtain fence data and operation logs drawn by the user.
[0015] Optionally, in a second implementation of the second aspect of the present invention, the merging module includes: a merging sub-module, used to establish a merging rule, adopt a merging algorithm, and merge fence data of different levels according to the merging rule to obtain first data; a conversion sub-module, used to adopt a conversion model to transform the coordinate system of the first data to obtain second data, wherein the second data includes multiple fences; a detection sub-module, used to detect multiple fences using a spatial geometry algorithm to determine whether there are overlapping or adjacent fence boundaries between multiple fences; an adjustment sub-module, used to adjust the coordinates of the fence boundaries using an image segmentation model if there are overlapping or adjacent fence boundaries to obtain third data, and update the visual map according to the third data.
[0016] Optionally, in a third implementation method of the second aspect of the present invention, the adjustment submodule includes: a first construction unit, used to obtain historical fence data, the historical fence data includes multiple fences with overlapping or adjacent boundaries, annotate the historical data, and construct a training set with the annotated historical data; a training unit, used to train the basic model with the training set using a convolutional neural network model based on deep learning as a basic model to obtain an image segmentation model; an adjustment unit, used to adjust the coordinates of the fence boundary using the image segmentation model if there are overlapping or adjacent fence boundaries to obtain third data, and update the visualization map according to the third data.
[0017] Optionally, in a fourth implementation of the second aspect of the present invention, the association module includes: an analysis submodule, used to obtain each newly generated operation log, the data of the operation log including operation time, user information, operation type, and fence-related information, and each operation log is used as a block to analyze the data of the operation log to obtain an analysis result; a hash submodule, used to use a hash algorithm to perform hash calculation on the data of the operation log, and make the hash value of the current block include the hash value of the previous block to obtain associated block data; a storage submodule, used to use the distributed storage mechanism of blockchain to store the associated block data in multiple nodes.
[0018] Optionally, in a fifth implementation of the second aspect of the present invention, the analysis submodule includes: a denoising unit, used to preprocess the data of the operation log, remove the noise data in the operation log, and perform data standardization to obtain preprocessed data; a classification unit, used to use a data analysis algorithm to classify the user's operation behavior according to the preprocessed data to obtain a classification result, and the classification result includes multiple operation types; an association unit, used to use an association rule mining algorithm to calculate the correlation between users, operation types and fence data to obtain an analysis result.
[0019] Optionally, in a sixth implementation of the second aspect of the present invention, the query module includes: a second construction unit, used to obtain network point information, and build a database based on the network point information, the second data and the associated block data; a third construction unit, used to establish a first index with the key fields in the network point information, and to establish a second index with the geographic coordinates of the second data; a query unit, used to obtain the user's query request, and search for matching data in the database according to the query request, the database query language, the first index and the second index to obtain a query result; a serialization unit, used to serialize the query result, obtain a serialized data result, and output the serialized data result to the user.
[0020] A third aspect of the present invention provides a fence management and integration device for a map component, comprising a memory and at least one processor, wherein the memory stores computer-readable instructions; the at least one processor calls the computer-readable instructions in the memory to execute the various steps of the fence management and integration method for the map component as described above.
[0021] A fourth aspect of the present invention provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, implement the various steps of the fence management and integration method of the map component as described above.
[0022] Beneficial effect: The present invention provides a fence management and integration method for a map component, which first obtains map data, adopts a graphics rendering algorithm, and generates a visual map according to the map data, so that users can modify and draw fences on the map; then, fence data at different levels are merged to obtain first data, and the coordinate system of the first data is converted to obtain second data, and the visual map is updated according to the second data, so that users can see the modified version of the fence on the map, thereby increasing the user experience; then, each operation log is obtained, each operation log is taken as a block, each block is associated to obtain associated block data, and the associated block data is marked on the visual map, so that the modification record can be seen on the visual map; finally, the network point information is obtained, a database is constructed according to the network point information, the second data and the associated block data, the user's query request is obtained, and matching data in the database is searched according to the query request to obtain the query result, thereby improving the convenience of the query. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A first flow chart of a fence management and integration method for a map component provided by an embodiment of the present invention;
[0024] Figure 2 A second flow chart of the fence management and integration method of the map component provided by the embodiment of the present invention;
[0025] Figure 3 A third flow chart of the fence management and integration method of the map component provided by the embodiment of the present invention;
[0026] Figure 4 A fourth flow chart of the fence management and integration method of the map component provided by the embodiment of the present invention;
[0027] Figure 5 A fifth flow chart of the fence management and integration method of the map component provided by the embodiment of the present invention;
[0028] Figure 6 A sixth flow chart of the fence management and integration method of the map component provided by the embodiment of the present invention;
[0029] Figure 7 A seventh flow chart of the fence management and integration method of the map component provided by the embodiment of the present invention;
[0030] Figure 8 A schematic diagram of a structure of a fence management and integration device for a map component provided by an embodiment of the present invention;
[0031] Fig. 9 Another structural schematic diagram of the fence management and integration device of the map component provided by the embodiment of the present invention;
[0032] Fig.10 A schematic diagram of the structure of a fence management and integration device for a map component provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The present invention provides a fence management and integration method, device, equipment and storage medium of a map component. The present invention first obtains map data, adopts a graphics rendering algorithm, generates a visual map according to the map data, outputs the visual map to the user, allows the user to draw a fence on the visual map, increases the user experience, and at the same time obtains the fence data and operation log drawn by the user; then, by merging fence data of different levels to obtain first data, and converting the coordinate system of the first data to obtain second data, thereby unifying the data of different coordinate systems, being able to update the visual map, improving the accuracy of fence drawing, and helping to improve the accuracy of logistics distribution; then, by taking each operation log as a block, associating each block to obtain associated block data, and improving the traceability of the operation; finally, by obtaining network point information, building a database according to the network point information, the second data and the associated block data, obtaining the user's query request, and searching for matching data in the database according to the query request to obtain the query result, and outputting the query result to the user.
[0034] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first embodiment of the fence management and integration method of the map component in the embodiment of the present invention includes:
[0036] S101. Obtain map data, use a graphics rendering algorithm to generate a visual map based on the map data, and output the visual map to the user to obtain the fence data and operation log drawn by the user;
[0037] By using a graphics rendering algorithm to form a visual map, users can draw fences on the map. This intuitive operation method reduces the difficulty of use and improves the user experience. In addition, the graphics rendering algorithm can update the display of the map and fences in real time, allowing users to immediately see the effect of drawing fences, so as to make timely adjustments and optimizations. On the visual map, users can further use tools to perform precise measurements and positioning to ensure the accuracy of fence drawing. By combining fences with maps, relevant data can be presented in an intuitive way, which is convenient for users to analyze and understand the data.
[0038] S102. Merging fence data at different levels to obtain first data, converting the coordinate system of the first data to obtain second data, and updating the visual map according to the second data;
[0039] Specifically, by traversing the fence data at different levels to fully obtain all the data, for the data such as the branch fence and the first-level point fence, their coordinate data can be merged to form an overall first-level fence. During the merging process, it is necessary to check the connection relationship between the fences to ensure that the merged fences form a continuous area. For example, connectivity is determined by determining whether the endpoints of adjacent fence boundaries overlap. When completing the merge, it is also necessary to complete the coordinate system conversion, such as converting from the original coordinate system to the coordinate system used by the map software, so as to obtain the second data. According to the new coordinate system data, the visual map can be updated.
[0040] S103. Obtain each operation log, take each operation log as a block, and associate each block to obtain associated block data;
[0041] Specifically, the operation log can be implemented in the following ways: embed the logging function in the code of the map operation interface. When the user performs the operation of adding, deleting, or modifying a fence, add the logging statement in the corresponding operation function. When the user adds a fence, record the time of the addition operation, user ID, initial coordinates of the fence, and other information. In addition, blockchain nodes can be introduced into the system. When a new operation log is generated, the log data is used as the content of a block. By associating each block and obtaining the associated block data, a chain structure of the blockchain can be formed to ensure that the integrity and order of the log data cannot be tampered with.
[0042] In addition, the system can use message queues (such as RabbitMQ) to asynchronously transmit log data, ensuring that logging does not affect the response speed of user operations.
[0043] S104. Obtaining the network point information, constructing a database according to the network point information, the second data and the associated block data, obtaining the user's query request, searching for matching data in the database according to the query request to obtain the query result, and outputting the query result to the user.
[0044] Specifically, we can adopt RESTful architecture design, combined with efficient data indexing mechanism, to provide a series of API interfaces. For example, we can regard branch information and fence data as different resources, and use " / api / v1 / branches" to represent the resource path for obtaining all branch information, and " / api / v1 / fences" to represent the resource path for obtaining all fence information; for each API operation, determine the corresponding HTTP method, such as using GET method to obtain resource information, POST method to create new resources, PUT method to update resources, and DELETE method to delete resources. By combining RESTful architecture design with efficient data indexing mechanism, the query speed can be effectively improved.
[0045] See also Figure 2 The second embodiment of the fence management and integration method of the map component in the embodiment of the present invention includes:
[0046] S201. Obtain map data, organize and index the map data using the R-tree algorithm to obtain preprocessed data;
[0047] B-tree indexes organize data in a tree structure, making it possible to perform efficient search operations on large-scale data sets. When querying, start from the root node and search downward layer by layer according to the value of the index key until the leaf node where the target data is located is found. Due to the balance of B-tree, the length of the search path is relatively stable, thus ensuring the efficiency of the query. For data columns that need to be queried frequently, establishing a B-tree index can significantly improve the query speed.
[0048] S202. Using a graphics rendering algorithm, the pre-processed data is visualized, wherein the visualization processing steps include vertex processing, rasterization and fragment processing to generate a visualization map;
[0049] S203. Output a visual map to the user to obtain the fence data and operation log drawn by the user.
[0050] In the above visualization processing steps, vertex processing is responsible for processing the geometry of map data, which usually includes: Vertex transformation: converting vertices on the map from model space (ie, the original 3D or 2D coordinate system) to world space, observation space (also called camera space or eye space) and clipping space. These transformations usually involve operations such as translation, rotation, and scaling; Projection: Projecting vertices from the observation space onto the screen, usually using perspective projection or orthographic projection; removing vertices outside the viewing cone (ie, the camera's field of view) to ensure that only the visible part of the map is further processed. Rasterization is the process of converting transformed and clipped vertex data into pixels. Fragment processing is responsible for determining the final color and other attributes of each pixel.
[0051] See also Figure 3 A third embodiment of the fence management and integration method of the map component in the embodiment of the present invention includes:
[0052] S301. Establish a merging rule, adopt a merging algorithm, and merge fence data of different levels according to the merging rule to obtain first data;
[0053] For fence data of different levels, such as branch fences and first-level point fences, their coordinate data can be merged. Specifically, a geometric merging algorithm can be used to merge the vertex coordinates of polygonal fences into a new polygon data structure.
[0054] S302. Using a conversion model, converting the coordinate system of the first data to obtain second data, wherein the second data includes a plurality of fences;
[0055] If it is a two-dimensional plane coordinate conversion, the affine transformation model can be used; if it involves geographic coordinates (longitude, latitude), a more complex projection transformation model (such as Mercator projection, etc.) can be used. According to the parameters of the transformation model (such as translation, rotation angle, scaling factor, etc.), the merged fence coordinate data can be transformed. For each vertex coordinate, the corresponding mathematical formula is used to calculate and convert it from the original coordinate system to the target coordinate system.
[0056] S303. Using a spatial geometry algorithm to detect multiple fences to determine whether there are overlapping or adjacent fence boundaries between multiple fences;
[0057] For polygonal fences, the overlap can be determined by judging whether the edges intersect.
[0058] S304. If there are overlapping or adjacent fence boundaries, the coordinates of the fence boundaries are adjusted using an image segmentation model to obtain third data, and the visualization map is updated according to the third data.
[0059] For detected overlapping or adjacent boundaries, a convolutional neural network-based image segmentation model can be used to treat the fence boundaries as lines in the image to intelligently identify the correct division of the boundaries. According to the output of the model, the coordinates of the fence boundaries are adjusted to ensure that the spliced fence is accurate.
[0060] See also Figure 4 The fourth embodiment of the fence management and integration method of the map component in the embodiment of the present invention includes:
[0061] S401. Obtain historical fence data, the historical fence data including multiple fences with overlapping or adjacent boundaries, annotate the historical data, and construct a training set with the annotated historical data;
[0062] By acquiring a large amount of historical fence data to form a training set, the calculation accuracy of the obtained model can be improved. In addition, by annotating historical data, the data can be better utilized by the system. Before forming a training set, the historical fence data needs to be preprocessed to make the data format meet the requirements and remove useless data to avoid interference.
[0063] S402. Taking a convolutional neural network model based on deep learning as a basic model, the basic model is trained using a training set to obtain an image segmentation model;
[0064] S403. If there are overlapping or adjacent fence boundaries, the coordinates of the fence boundaries are adjusted using an image segmentation model to obtain third data, and the visualization map is updated according to the third data.
[0065] Using an image segmentation model to adjust the coordinates of the fence boundary can improve the accuracy of boundary division. At the same time, no human intervention is required for adjustment, which is more intelligent and provides a better user experience.
[0066] See also Figure 5 The fifth embodiment of the fence management and integration method of the map component in the embodiment of the present invention includes:
[0067] S501. Obtain each newly generated operation log, the operation log data includes operation time, user information, operation type, fence related information, and analyze the operation log data as a block to obtain the analysis results;
[0068] By analyzing the data in the operation log, we can find the association between different operation types and specific users and fence types, providing a basis for optimizing the system and security management.
[0069] S502. A hash algorithm is used to perform hash calculation on the data of the operation log, and the hash value of the current block includes the hash value of the previous block to obtain the associated block data;
[0070] By using a hash algorithm to hash the log data, a unique hash value is generated as the block identifier. At the same time, the hash value of the previous block is included in the current block to form a chain structure of the blockchain, which can ensure that the integrity and order of the log data cannot be tampered with.
[0071] S503. Adopt the distributed storage mechanism of blockchain to store the associated block data in multiple nodes.
[0072] Through the distributed storage mechanism of blockchain, log data is stored on multiple nodes. When the authenticity of the log needs to be verified, it can be confirmed through the consensus of the majority of nodes, preventing single point failures and data tampering, and improving data security. Furthermore, data collection tools can be used to transfer log data from different server nodes to the storage platform.
[0073] See also Figure 6 The sixth embodiment of the fence management and integration method of the map component in the embodiment of the present invention includes:
[0074] S601. Preprocess the operation log data, remove the noise data in the operation log, and perform data standardization to obtain preprocessed data;
[0075] Noise data may affect the accuracy and reliability of data analysis results. Removing noise data can optimize the analysis results and make them closer to the actual situation. Data standardization can unify data from different sources, formats, and structures to make them have the same format and structure, which is convenient for subsequent data analysis and application.
[0076] S602. Using a data analysis algorithm, classify the user's operation behavior according to the preprocessed data to obtain a classification result, wherein the classification result includes multiple operation types;
[0077] Operation types can include: adding, deleting, modifying fences, etc. In addition, the data analysis algorithm can also discover frequent operation patterns. By setting the parameters of the data analysis algorithm, the pre-processed operation logs can be divided into multiple operation types as needed to facilitate more in-depth analysis.
[0078] S603. Use association rule mining algorithm to calculate the association between users, operation types and fence data to obtain analysis results.
[0079] By analyzing the types of operations that users perform in different fenced areas, we can reveal users' preferences and interests. For example, if we find that some users prefer to perform certain types of operations in a fenced area, it means that the fence may have more frequent or frequently changing business. In response to this situation, the relevant management department can pay more attention to the business situation in this area. In addition, by identifying abnormal behavior patterns, such as frequent operations, we can warn of potential security risks in advance so that we can take timely countermeasures.
[0080] See also Figure 7 The seventh embodiment of the fence management and integration method of the map component in the embodiment of the present invention includes:
[0081] S701. Obtaining network point information, and constructing a database based on the network point information, the second data and the associated block data;
[0082] S702. Establish a first index with the key fields in the network point information, and establish a second index with the geographic coordinates of the second data;
[0083] Specifically, in the network point information table, you can create indexes for fields that are frequently used for queries, such as network point names and numbers. For fence data, if it is stored in the form of geographic coordinates, you can use spatial indexes to speed up queries based on geographic locations. When querying fences in a specific area, the spatial index can quickly filter out potentially relevant fence data.
[0084] S703. Obtain the user's query request, and search for matching data in the database according to the query request, the database query language, the first index, and the second index to obtain the query result;
[0085] The API interface for querying network point information and its corresponding fence data according to specific conditions is implemented as follows: on the server side, receive the request from the client and parse the query conditions in the request; use the database query language (such as SQL) combined with the data index to retrieve the network point information and fence data that meet the conditions from the database; if the network points and their fences of a certain branch are queried, the SQL JOIN operation can be used to connect the network point table and the fence table, and filter according to the branch ID; return the query results to the client in a suitable format (such as JSON) to ensure the integrity and accuracy of the data.
[0086] S704. Serialize the query results to obtain serialized data results, and output the serialized data results to the user.
[0087] By serializing the data before returning it, it is easier to transmit the data in the network and improve the feedback speed.
[0088] The above describes the fence management and integration method of the map component in the embodiment of the present invention. The following describes the fence management and integration device of the map component in the embodiment of the present invention. Figure 8 In one embodiment of the present invention, a fence management and integration device for a map component includes:
[0089] The visualization module 10 is used to obtain map data, use a graphics rendering algorithm to generate a visualization map according to the map data, and output the visualization map to the user to obtain the fence data and operation log drawn by the user;
[0090] A merging module 20, for merging fence data at different levels to obtain first data, converting the coordinate system of the first data to obtain second data, and updating the visual map according to the second data;
[0091] The association module 30 is used to obtain each operation log, take each operation log as a block, and associate each block to obtain associated block data;
[0092] The query module 40 is used to obtain the network point information, build a database according to the network point information, the second data and the associated block data, obtain the user's query request, search for matching data in the database according to the query request to obtain the query result, and output the query result to the user.
[0093] See also Fig. 9 In one embodiment of the present invention, a fence management and integration device for a map component includes:
[0094] The visualization module 10 is used to obtain map data, use a graphics rendering algorithm to generate a visualization map according to the map data, and output the visualization map to the user to obtain the fence data and operation log drawn by the user;
[0095] A merging module 20, for merging fence data at different levels to obtain first data, converting the coordinate system of the first data to obtain second data, and updating the visual map according to the second data;
[0096] The association module 30 is used to obtain each operation log, take each operation log as a block, and associate each block to obtain associated block data;
[0097] The query module 40 is used to obtain the network point information, build a database according to the network point information, the second data and the associated block data, obtain the user's query request, search for matching data in the database according to the query request to obtain the query result, and output the query result to the user;
[0098] In this embodiment, the visualization module 10 includes:
[0099] A preprocessing unit 11 is used to obtain map data and organize and index the map data using an R-tree algorithm to obtain preprocessed data;
[0100] A visualization unit 12, configured to perform visualization processing on the pre-processed data by using a graphics rendering algorithm, wherein the visualization processing steps include vertex processing, rasterization and fragment processing to generate a visualization map;
[0101] An output unit 13, used to output a visual map to a user to obtain fence data and operation logs drawn by the user;
[0102] In this embodiment, the merging module 20 includes:
[0103] A merging submodule 21 is used to establish a merging rule, adopt a merging algorithm, and merge fence data at different levels according to the merging rule to obtain first data;
[0104] A conversion submodule 22, for converting the coordinate system of the first data using a conversion model to obtain second data, wherein the second data includes a plurality of fences;
[0105] A detection submodule 23 is used to detect multiple fences using a spatial geometry algorithm to determine whether there are overlapping or adjacent fence boundaries between the multiple fences;
[0106] An adjustment submodule 24, configured to adjust the coordinates of the fence boundaries by using an image segmentation model if there are overlapping or adjacent fence boundaries, so as to obtain third data, and update the visual map according to the third data;
[0107] In this embodiment, the adjustment submodule 24 includes:
[0108] A first construction unit 241 is used to obtain historical fence data, the historical fence data including a plurality of fences with overlapping or adjacent boundaries, annotate the historical data, and construct a training set with the annotated historical data;
[0109] A training unit 242 is used to train the basic model using a training set by taking a convolutional neural network model based on deep learning as a basic model to obtain an image segmentation model;
[0110] An adjustment unit 243, configured to adjust the coordinates of the fence boundaries by using an image segmentation model if there are overlapping or adjacent fence boundaries, so as to obtain third data, and update the visual map according to the third data;
[0111] In this embodiment, the association module 30 includes:
[0112] The analysis submodule 31 is used to obtain each newly generated operation log, wherein the data of the operation log includes the operation time, user information, operation type, and fence related information, and each operation log is used as a block to analyze the data of the operation log to obtain the analysis result;
[0113] The hash submodule 32 is used to perform hash calculation on the data of the operation log using a hash algorithm, and make the hash value of the current block include the hash value of the previous block to obtain the associated block data;
[0114] The storage submodule 33 is used to adopt the distributed storage mechanism of the blockchain to store the associated block data in multiple nodes;
[0115] In this embodiment, the analysis submodule 31 includes:
[0116] A denoising unit 311 is used to pre-process the data of the operation log, remove the noise data in the operation log, and perform data standardization processing to obtain pre-processed data;
[0117] The classification unit 312 is used to classify the user's operation behavior according to the pre-processed data using a data analysis algorithm to obtain a classification result, wherein the classification result includes multiple operation types;
[0118] The association unit 313 is used to calculate the association between the user, the operation type and the fence data by using the association rule mining algorithm to obtain the analysis result;
[0119] In this embodiment, the query module 40 includes:
[0120] The second construction unit 41 is used to obtain network point information and construct a database according to the network point information, the second data and the associated block data;
[0121] A third construction unit 42 is used to establish a first index using a key field in the network point information and to establish a second index using the geographic coordinates of the second data;
[0122] A query unit 43 is used to obtain a query request from a user, and search for matching data in the database according to the query request, the database query language, the first index, and the second index to obtain a query result;
[0123] The serialization unit 44 is used to perform serialization processing on the query result, obtain serialized data results, and output the serialized data results to the user.
[0124] The fence management and integration device of the map component of the present invention obtains map data, adopts a graphics rendering algorithm, generates a visual map according to the map data, and outputs the visual map to the user, so that the user's fence drawing is more accurate and can reduce subsequent repeated modifications; by merging and converting fence data at different levels, the original coordinates drawn by the system can be converted into a coordinate system compatible with the map software, so that the corresponding fence can be generated on the visual map, allowing the user to intuitively see the modified state and improve the user experience. In addition, by obtaining operation logs and forming multiple operation logs into associated block data, the traceability and security of the data can be improved. Finally, a database is constructed and stored for the network point information, the second data, and the associated block data, so that users can better find relevant information and even trace the operation records to avoid erroneous deletion or modification of fences.
[0125] The above is a detailed description of the fence management and integration device of the map component in the embodiment of the present invention from the perspective of modular functional entities. The following is a detailed description of the fence management and integration device of the map component in the embodiment of the present invention from the perspective of hardware processing.
[0126] Fig.10The schematic diagram of the structure of a fence management and integration device for a map component provided in an embodiment of the present invention, wherein the fence management and integration device 900 for a map component may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 910 (for example, one or more processors) and a memory 920, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. Among them, the memory 920 and the storage medium 930 may be temporary storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the fence management and integration device 900 for a map component. Furthermore, the processor 910 may be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the fence management and integration device 900 for a map component, so as to implement the steps of the fence management and integration method for a map component provided in the above-mentioned method embodiments.
[0127] The map component fence management and integration device 900 may also include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input and output interfaces 960, and / or, one or more operating systems 931, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Fig.10 The fence management and integration device structure of the map component shown does not constitute a limitation on the fence management and integration device of the map component, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0128] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the fence management and integration method of the map component.
[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the equipment or device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially 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. The computer software product is stored in a storage medium, including a number of instructions to enable 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 method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0131] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and inventive concept of the present invention, and all these changes or substitutions should fall within the protection scope of the claims attached to the present invention.
Claims
1. A fence management and integration method for map components, characterized in that: The steps include: Obtain map data, use graphics rendering algorithms to generate a visual map based on the map data, and output the visual map to the user to obtain the fence data and operation log drawn by the user; Merging fence data at different levels to obtain first data, converting the coordinate system of the first data to obtain second data, and updating the visualization map according to the second data; Obtain each operation log, take each operation log as a block, and associate each block to obtain associated block data; The network point information is obtained, a database is constructed according to the network point information, the second data and the associated block data, a query request of the user is obtained, matching data in the database is searched according to the query request to obtain the query result, and the query result is output to the user.
2. The fence management and integration method of map components according to claim 1, characterized in that: The obtaining of map data, using a graphics rendering algorithm, generating a visual map according to the map data, and outputting the visual map to the user, so as to obtain the fence data and operation log drawn by the user, specifically includes: Obtain map data, organize and index the map data using the R-tree algorithm to obtain preprocessed data; Using a graphics rendering algorithm to perform visualization processing on the preprocessed data, the visualization processing steps including vertex processing, rasterization and fragment processing, so as to generate a visualization map; Output visualization map to users to obtain fence data and operation logs drawn by users.
3. The fence management and integration method of map components according to claim 1, characterized in that: The merging of fence data at different levels to obtain first data, converting the coordinate system of the first data to obtain second data, and updating the visual map according to the second data specifically includes: Establishing a merging rule, adopting a merging algorithm, and merging fence data at different levels according to the merging rule to obtain first data; Using a conversion model, converting a coordinate system of the first data to obtain second data, wherein the second data includes a plurality of fences; A spatial geometry algorithm is used to detect multiple fences to determine whether there are overlapping or adjacent fence boundaries between the multiple fences; If there are overlapping or adjacent fence boundaries, the coordinates of the fence boundaries are adjusted using an image segmentation model to obtain third data, and the visualization map is updated based on the third data.
4. The fence management and integration method of map components according to claim 3, characterized in that: If there are overlapping or adjacent fence boundaries, the image segmentation model is used to adjust the coordinates of the fence boundaries to obtain third data, and the visual map is updated according to the third data, specifically including: Acquire historical fence data, the historical fence data including multiple fences with overlapping or adjacent boundaries, annotate the historical data, and construct a training set with the annotated historical data; Taking the convolutional neural network model based on deep learning as the basic model, the basic model is trained using the training set to obtain the image segmentation model; If there are overlapping or adjacent fence boundaries, the coordinates of the fence boundaries are adjusted using an image segmentation model to obtain third data, and the visualization map is updated based on the third data.
5. The fence management and integration method of map components according to claim 1, characterized in that: The obtaining of each operation log, taking each operation log as a block, and associating each block to obtain associated block data specifically includes: Obtain each newly generated operation log, wherein the data of the operation log includes operation time, user information, operation type, and fence related information, and analyze the data of the operation log with each operation log as a block to obtain an analysis result; Use a hash algorithm to perform hash calculation on the data in the operation log, and make the hash value of the current block include the hash value of the previous block to obtain the associated block data; Adopting the distributed storage mechanism of blockchain, the associated block data is stored in multiple nodes.
6. The fence management and integration method of map components according to claim 5, characterized in that: The step of obtaining each newly generated operation log includes data of the operation log including operation time, user information, operation type, and fence related information. Each operation log is used as a block, and the data of the operation log is analyzed to obtain analysis results, specifically including: Preprocess the data of the operation log, remove the noise data in the operation log, and perform data standardization to obtain preprocessed data; Using a data analysis algorithm, classify the user's operation behavior according to the preprocessed data to obtain a classification result, wherein the classification result includes multiple operation types; The association rule mining algorithm is used to calculate the correlation between users, operation types and fence data to obtain the analysis results.
7. The fence management and integration method of map components according to claim 1, characterized in that: The obtaining of the network point information, building a database according to the network point information, the second data and the associated block data, obtaining a query request from a user, searching for matching data in the database according to the query request to obtain a query result, and outputting the query result to the user specifically includes: Acquire network point information, and construct a database according to the network point information, the second data and the associated block data; A first index is established based on a key field in the network point information, and a second index is established based on the geographic coordinates of the second data; Obtaining a query request from a user, and searching for matching data in a database according to the query request, a database query language, a first index, and a second index to obtain a query result; Serialize the query results, obtain serialized data results, and output the serialized data results to the user.
8. A fence management and integration device for map components, characterized in that: include: The visualization module is used to obtain map data, use a graphics rendering algorithm to generate a visualization map based on the map data, and output the visualization map to the user to obtain the fence data and operation log drawn by the user; A merging module, used to merge fence data at different levels to obtain first data, convert the coordinate system of the first data to obtain second data, and update the visual map according to the second data; The association module is used to obtain each operation log, take each operation log as a block, and associate each block to obtain associated block data; The query module is used to obtain the network point information, build a database according to the network point information, the second data and the associated block data, obtain the user's query request, search for matching data in the database according to the query request to obtain the query result, and output the query result to the user.
9. A fence management and integration device for map components, characterized in that: comprising a memory and at least one processor, wherein the memory has computer-readable instructions stored therein; The at least one processor calls the computer-readable instructions in the memory to execute the various steps of the fence management and integration method of the map component as described in any one of claims 1-7.
10. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the steps of the fence management and integration method of the map component as described in any one of claims 1-7 are implemented.
Citation Information
Cited By
Construction material distribution method, device and equipment based on dynamic geofence
CN122367067A