Vector data space object drawing method and system, storage medium and electronic equipment

By detecting and recording incomplete vector data space objects at the edge of the vector tile, and determining the space retrieval to determine the affiliated tile, solve the incomplete problem of space objects at the edge of the vector tile, realize the vector data space object on the map on the map. Complete display and accurate interaction.

CN119359838AActive Publication Date: 2025-01-24YIHAILAN (BEIJING) DATA TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411381792.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-24
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

In the prior art, the spatial objects at the edges of vector tile are incompletely drawn, resulting in the missing spatial objects displayed on the map, affecting the interaction effect of data information.

Method used

By monitoring the existence of vector data space object events in vector tiles, we can determine whether there are incomplete vector data space objects drawn, record the incomplete objects, and change the spatial range of each vector tile to perform spatial retrieval to determine the incomplete objects to which they belong. Vector tiles are drawn on the corresponding tiles.

Benefits of technology

The space objects near the edge of the vector tile tile are solved incomplete problems, ensuring that the vector data space object displayed on the map is complete, avoid leakage of key information, and provide users with more accurate and reliable information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359838A_ABST
    Figure CN119359838A_ABST
Patent Text Reader

Abstract

The invention provides a vector data space object drawing method and system, a storage medium and electronic equipment, and relates to the technical field of geographic information systems.The vector data space object drawing method comprises the steps that when it is monitored that a vector data space object event exists in a vector tile, the vector tile is drawn; judging whether a vector data space object which is incompletely drawn exists corresponding to the vector tile or not; under the condition that the incomplete vector data space objects exist, recording the incomplete vector data space objects; changing the space range of each vector tile, performing space retrieval on the incomplete vector data space object, and determining the vector tile to which the incomplete vector data space object belongs; and drawing incomplete vector data space objects on the vector tiles to which the vector data space objects belong. The problem that the space object near the edge of the vector tile is not completely drawn is solved, the vector tile is prevented from missing key information, and more accurate and reliable information is provided for a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of geographic information systems, and in particular to a method, system, storage medium and electronic device for drawing vector data space objects. Background Art

[0002] At present, a large number of spatial objects are drawn through WebGIS (Web Geographic Information System). The background service generates static tile images from spatial data, and the front end loads the tile images through WebGIS. However, since each tile only draws data within its own range, the spatial objects near the edge of the tile may be incompletely drawn, resulting in missing spatial objects displayed on the map, affecting the interactive effect of data information. Therefore, the method of drawing vector data spatial objects through tiles in related technologies cannot solve the problem of incomplete drawing of spatial objects at the edge of the tile.

[0003] Therefore, how to propose a method to draw complete spatial objects on vector tiles has become a problem that needs to be solved urgently. Summary of the invention

[0004] The present application proposes a vector data space object drawing method, system, storage medium and electronic device, which solves the problem of incomplete drawing of space objects at the edges of vector tiles in the related art.

[0005] To this end, a first object of the present invention is to provide a method for drawing vector data space objects based on vector tiles.

[0006] The second object of the present invention is to provide a vector data space object rendering system based on vector tiles.

[0007] A third object of the present invention is to provide a storage medium.

[0008] A fourth object of the present invention is to provide an electronic device.

[0009] In view of this, the technical solution of the first aspect of the present invention provides a method for drawing vector data space objects based on vector tiles, including: when a vector data space object event is monitored for a vector tile, determining whether there is an incompletely drawn vector data space object corresponding to the vector tile; when it is determined that there is an incomplete vector data space object, recording the incomplete vector data space object; changing the spatial range of each vector tile, performing spatial retrieval on the incomplete vector data space object, and determining the vector tile to which the incomplete vector data space object belongs; and drawing the incomplete vector data space object on the corresponding vector tile.

[0010] According to the vector data space object drawing method based on vector tiles proposed by the present invention, first, the vector data space object event of the vector tile is monitored, and when the vector data space object event of the vector tile is monitored, it is determined whether there is an incompletely drawn vector data space object corresponding to the vector tile, that is, for each vector tile, it is determined whether there is an incompletely drawn vector data space object. In the case of determining that there is an incomplete vector data space object, the incomplete vector data space object is recorded, that is, when it is detected that there is an incompletely drawn vector data space object on the vector tile, the incompletely drawn vector data space object is recorded, so that the vector data space object on the edge of the vector tile can be screened out. Next, change the spatial range of each vector tile, and perform spatial retrieval on the incomplete vector data space object. The spatial range here is not the drawing range of the vector tile. The drawing range of each vector tile is fixed. By changing the spatial range of the vector tile, the outer edge space of the vector tile can be retrieved, and then determine whether there is an incomplete vector data space object in the outer edge space of the vector tile. If it is determined that there is an incomplete vector data space object, then the vector tile is identified as a vector tile that needs to be supplemented. The vector tile that needs to be supplemented is the vector tile to which the incomplete vector data space object belongs. Finally, draw the incomplete vector data space object on the vector tile to which it belongs, wherein the recorded incomplete vector data space object is only displayed incompletely on the vector tile, not that the vector data space object itself is incomplete, so it is only necessary to draw the incompletely drawn vector data space object on the vector tile to which it belongs, and the missing vector data space object can be displayed complete. That is to say, the present application retrieves the incompletely drawn vector data space objects on the vector tile, then records the incompletely drawn vector data space objects, and traverses each vector tile. When there is a vector data space object within the outer edge space range, the vector tile corresponding to the space range is determined to be the corresponding vector tile, and finally the incompletely drawn vector data space object is supplemented on the corresponding vector tile. It can be seen that the present application solves the problem of incomplete drawing of space objects near the edge of the vector tile. Multiple vector tiles are spliced ​​to form a map, and the complete vector data space objects can be displayed, avoiding the omission of key information by the vector tile, and providing users with more accurate and reliable information.

[0011] Among them, vector data space objects represent entity attributes through geometric objects such as points, lines, and surfaces, and contain rich attribute information, such as: name, type, geographic coordinates, and status information. Vector data space objects can represent ships, vehicles, and people, and status information can be understood as the direction of the bow of a ship, the direction of the front of a vehicle, and the direction of travel of a person. Therefore, this application can display the moving direction of all vector data space objects on vector tiles to avoid losing key information such as the moving direction of the vector data space objects.

[0012] Optionally, in some technical solutions, determining whether there is an incompletely drawn vector data space object corresponding to the vector tile includes: traversing each vector data space object, and determining whether the vector data space object on each vector tile overlaps with the boundary of the corresponding vector tile; in the case that the vector data space object overlaps with the boundary of the vector tile, determining the vector data space object overlapping with the boundary of the vector tile as an incomplete vector data space object.

[0013] In the technical solution, when determining whether there is an incompletely drawn vector data space object corresponding to a vector tile, specifically, each vector data space object is traversed to determine whether the vector data space object on each vector tile overlaps with the boundary of the corresponding vector tile, that is, to determine whether each vector data space object overlaps with the boundary of the corresponding vector tile. In the case of overlap, it can be determined that the vector data space object is an incomplete vector data space object. According to whether the vector data space object overlaps with the boundary of the corresponding vector tile, the incompletely drawn vector data space object can be quickly determined from a large number of vector data space objects, thereby improving the screening efficiency.

[0014] Optionally, of course, the incompletely drawn vector data space objects can also be determined by calculating the area of ​​each vector data space object, first determining the standard area of ​​the vector data space object, and then comparing the calculated area with the standard area, and determining the vector data space objects with a smaller area than the standard area as incompletely drawn vector data space objects. Determining the area of ​​the incompletely drawn vector data space objects based on the calculated area of ​​the vector data space objects can improve the accuracy of the screening.

[0015] Optionally, in some technical schemes, the spatial range of each vector tile is changed, and a spatial search is performed on incomplete vector data spatial objects. The step of determining the vector tile to which the incomplete vector data spatial object belongs includes: expanding the spatial range of each vector tile according to the size of the vector data spatial object; searching whether there is an incomplete vector data spatial object within each spatial range; and in the event that an incomplete vector data spatial object is retrieved within the spatial range, determining that the vector tile corresponding to the spatial range is the vector tile to which it belongs.

[0016] In this technical solution, when determining the vector tile to which the incomplete vector data space object belongs, specifically, the spatial range of each vector tile is expanded according to the size of the vector data space object, and whether there is an incomplete vector data space object in each spatial range is retrieved. Among them, the size of the vector tile can be 256 pixels × 256 pixels, or 512 pixels × 512 pixels. When zooming in and out of the map, the display size of the vector tile will change, while the display size of the vector data space object will not change. Therefore, determining the spatial range of the vector tile according to the size of the incomplete vector data space object can more accurately retrieve the incompletely drawn vector data space object. In the case of retrieving that there is an incomplete vector data space object in the spatial range, the vector tile corresponding to the spatial range is determined to be the vector tile to which it belongs. That is, when an incompletely drawn vector data space object is retrieved within the spatial range of one of the vector tiles, the vector tile is determined to be the vector tile to which it belongs, that is, the vector tile that needs to be supplemented. By performing spatial retrieval on each vector tile, the vector tiles to which all incompletely drawn vector data space objects belong can be found, ensuring that each incompletely drawn vector data space object can find its own vector tile to avoid omission.

[0017] Optionally, each vector tile may be expanded to a fixed spatial range, where the expanded spatial range is greater than 0 pixels and less than or equal to 10 pixels, thereby improving the efficiency of expanding the spatial range of each vector tile and avoiding low retrieval efficiency due to an excessively large expanded spatial range.

[0018] Optionally, in some technical solutions, the step of retrieving whether there are incomplete vector data space objects in each spatial range includes: determining the coverage range of each vector tile; and retrieving whether there are incomplete vector data space objects in the spatial range outside the coverage range of each vector tile.

[0019] In this technical solution, when searching for incomplete vector data space objects in each spatial range, specifically, the coverage range of each vector tile is determined, and then the spatial range outside the coverage range of each vector tile is searched for incomplete vector data space objects. That is, the spatial search of this application searches the outer edge space of each vector tile, and does not search the coverage range of the vector tile. For example, when searching for incompletely drawn vector data space objects in the outer edge space of the current vector tile, the coverage range of the current vector tile will not be searched, so as to avoid interference with the search results when incompletely drawn vector data space objects exist in the current tile, and further improve the search efficiency and search accuracy.

[0020] Optionally, in some technical solutions, the step of drawing an incomplete vector data space object on the corresponding vector tile includes: obtaining the shape of the complete vector data space object; and drawing the incomplete vector data space object on the corresponding vector tile according to the shape of the complete vector data space object.

[0021] In this technical solution, when an incomplete vector data space object is drawn on the vector tile to which it belongs, specifically, the shape of the completely drawn vector data space object is first obtained, and then the incomplete vector data space object is drawn on the vector tile to which it belongs according to the shape of the complete vector data space object. Wherein, the vector data space object displays graphic data on the vector tile, and different objects can be displayed as different graphics as needed. When there is an incompletely drawn vector data space object, the shape of the completely drawn vector data space object can be obtained, and the corresponding vector tile can be supplemented and drawn according to the complete shape of the vector data space object, thereby displaying the complete vector data space object, avoiding missing key information, and providing users with more accurate and reliable information.

[0022] Optionally, in some technical solutions, when a vector data space object event is monitored for a vector tile, before the step of determining whether there is an incompletely drawn vector data space object corresponding to the vector tile, the step includes: obtaining the vector data space object; and rendering the vector data space object onto the vector tile.

[0023] In this technical solution, before the event of the existence of a vector data space object on a vector tile is monitored, the vector data space object is obtained and rendered on the vector tile. The vector data space object can represent ships, vehicles, people, etc. In other words, the present application monitors the rendered vector tiles, that is, continuously monitors the vector data space objects on the vector tiles, and then can find out the incompletely drawn vector data space objects and draw them. That is, most of the vector data space objects are uniformly rendered on the vector tiles, and only a part of the completely drawn vector data space objects are supplemented with drawing, which greatly improves the drawing efficiency of the vector data space objects.

[0024] Optionally, in some technical solutions, the vector data space object drawing method based on vector tiles also includes: monitoring the incomplete drawing events of the vector data space objects; and when monitoring that each vector tile has completed the drawing event, determining that all the recorded incomplete vector data space objects are drawn.

[0025] In this technical solution, the incomplete vector data space object events are continuously monitored, and when all vector tiles have completed the supplementary drawing events, it is determined that all the recorded incomplete vector data space objects have been drawn. Spatial retrieval is performed on the outer edge of each vector tile, which can avoid missing any incompletely drawn vector data space object, ensure that all recorded incomplete vector data space objects are fully supplemented and drawn on the corresponding vector tiles, further avoid the omission of key information, and provide users with more accurate and reliable information.

[0026] The technical solution of the second aspect of the present invention provides a vector data space object drawing system based on vector tiles, including: a judgment module, which is used to judge whether there is an incompletely drawn vector data space object corresponding to the vector tile when monitoring the vector data space object event of the vector tile; a recording module, which is used to record the incomplete vector data space object when it is determined that there is an incomplete vector data space object; a determination module, which is used to change the spatial range of each vector tile, perform spatial retrieval on the incomplete vector data space object, and determine the vector tile to which the incomplete vector data space object belongs; and a drawing module, which is used to draw the incomplete vector data space object on the corresponding vector tile.

[0027] The vector data space object drawing system based on vector tiles proposed in the present invention includes: a judgment module, a recording module, a determination module and a drawing module, wherein the judgment module is used to monitor the event of the existence of a vector data space object in a vector tile, and when monitoring the event of the existence of a vector data space object in a vector tile, it is judged whether there is an incompletely drawn vector data space object corresponding to the vector tile, that is, for each vector tile, it is judged whether there is an incompletely drawn vector data space object. The recording module is used to record the incomplete vector data space object when it is determined that there is an incompletely drawn vector data space object, that is, when it is detected that there is an incompletely drawn vector data space object on the vector tile, the incompletely drawn vector data space object is recorded, so that the vector data space object on the edge of the vector tile can be screened out. Next, the determination module is used to change the spatial range of each vector tile and perform spatial retrieval on the incomplete vector data space object. The spatial range here is not the drawing range of the vector tile. The drawing range of each vector tile is fixed. The determination module is also used to retrieve the outer edge space of the vector tile by changing the spatial range of the vector tile, and then determine whether there is an incomplete vector data space object in the outer edge space of the vector tile. In the case of determining that there is an incomplete vector data space object, the vector tile is identified as a vector tile that needs to be supplemented. The vector tile that needs to be supplemented is the vector tile to which the incomplete vector data space object belongs. Finally, the drawing module is used to draw the incomplete vector data space object on the vector tile to which it belongs, wherein the recorded incomplete vector data space object is only displayed incompletely on the vector tile, not that the vector data space object itself is incomplete, so it is only necessary to draw the incompletely drawn vector data space object on the vector tile to which it belongs to complete the displayed missing vector data space object. That is to say, the present application retrieves the incompletely drawn vector data space objects on the vector tile, then records the incompletely drawn vector data space objects, and traverses each vector tile. When there is a vector data space object within the outer edge space range, the vector tile corresponding to the space range is determined to be the corresponding vector tile, and finally the incompletely drawn vector data space object is supplemented on the corresponding vector tile. It can be seen that the present application solves the problem of incomplete drawing of space objects near the edge of the vector tile. Multiple vector tiles are spliced ​​to form a map, which can display the complete vector data space objects, avoid missing key information, and provide users with more accurate and reliable information.

[0028] The third aspect of the present invention provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention are implemented.

[0029] The storage medium in the technical solution of the present invention implements the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention, so it has all the beneficial effects of the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention, which will not be repeated here.

[0030] The fourth aspect of the present invention proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention are implemented.

[0031] The electronic device in the technical solution of the present invention implements the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention, so it has all the beneficial effects of the vector data space object drawing method based on vector tiles proposed in the first aspect of the present invention, which will not be repeated here.

[0032] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0034] Figure 1 It is one of the flowcharts of the vector data space object drawing method based on vector tiles provided by an embodiment of the present invention; Figure 2 This is a second flow chart of a method for drawing vector data space objects based on vector tiles provided in an embodiment of the present invention; Figure 3 It is a structural block diagram of a vector data space object drawing system based on vector tiles provided by an embodiment of the present invention; Figure 4 is a structural block diagram of an electronic device provided by an embodiment of the present invention; Figure 5 It is a schematic diagram of monitoring the existence of a vector data space object on a vector tile provided by an embodiment of the present invention; Figure 6 It is a schematic diagram of drawing edge space objects on vector tiles provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] The embodiment of the first aspect of the present invention provides a method for drawing vector data space objects based on vector tiles, such as Figure 1 As shown, the vector data space object drawing method based on vector tiles includes: S101: when a vector data space object event is detected for a vector tile, determining whether there is an incompletely drawn vector data space object corresponding to the vector tile; S102: if it is determined that there is an incomplete vector data space object, record the incomplete vector data space object; S103: changing the spatial range of each vector tile, performing spatial retrieval on the incomplete vector data spatial object, and determining the vector tile to which the incomplete vector data spatial object belongs; S104: Draw the incomplete vector data space object on the corresponding vector tile.

[0037] According to the vector data space object drawing method based on vector tiles proposed by the present invention, first, the vector data space object event of the vector tile is monitored, and when the vector data space object event of the vector tile is monitored, it is determined whether there is an incompletely drawn vector data space object corresponding to the vector tile, that is, for each vector tile, it is determined whether there is an incompletely drawn vector data space object. In the case of determining that there is an incomplete vector data space object, the incomplete vector data space object is recorded, that is, when it is detected that there is an incompletely drawn vector data space object on the vector tile, the incompletely drawn vector data space object is recorded, so that the vector data space object on the edge of the vector tile can be screened out. Next, change the spatial range of each vector tile, and perform spatial retrieval on the incomplete vector data space object. The spatial range here is not the drawing range of the vector tile. The drawing range of each vector tile is fixed. By changing the spatial range of the vector tile, the outer edge space of the vector tile can be retrieved, and then determine whether there is an incomplete vector data space object in the outer edge space of the vector tile. If it is determined that there is an incomplete vector data space object, then the vector tile is identified as a vector tile that needs to be supplemented. The vector tile that needs to be supplemented is the vector tile to which the incomplete vector data space object belongs. Finally, draw the incomplete vector data space object on the vector tile to which it belongs, wherein the recorded incomplete vector data space object is only displayed incompletely on the vector tile, not that the vector data space object itself is incomplete, so it is only necessary to draw the incompletely drawn vector data space object on the vector tile to which it belongs, and the missing vector data space object can be displayed complete. That is to say, the present application retrieves the incompletely drawn vector data space objects on the vector tile, then records the incompletely drawn vector data space objects, and traverses each vector tile. When there is a vector data space object within the outer edge space range, the vector tile corresponding to the space range is determined to be the corresponding vector tile, and finally the incompletely drawn vector data space object is supplemented on the corresponding vector tile. It can be seen that the present application solves the problem of incomplete drawing of space objects near the edge of the vector tile. Multiple vector tiles are spliced ​​to form a map, which can display the complete vector data space objects, avoid missing key information, and provide users with more accurate and reliable information.

[0038] Among them, vector data space objects represent entity attributes through geometric objects such as points, lines, and surfaces, and contain rich attribute information, such as: name, type, geographic coordinates, and status information. Vector data space objects can represent ships, vehicles, and people, and status information can be understood as the direction of the bow of a ship, the direction of the front of a vehicle, and the direction of travel of a person. Therefore, this application can display the moving direction of all vector data space objects on vector tiles to avoid losing key information such as the moving direction of the vector data space objects.

[0039] Optionally, in some embodiments, determining whether there is an incompletely drawn vector data space object corresponding to the vector tile includes: traversing each vector data space object, determining whether the vector data space object on each vector tile overlaps with the boundary of the corresponding vector tile; in the case that the vector data space object overlaps with the boundary of the vector tile, determining the vector data space object overlapping with the boundary of the vector tile as an incomplete vector data space object.

[0040] In this embodiment, when determining whether there is an incompletely drawn vector data space object corresponding to a vector tile, specifically, each vector data space object is traversed to determine whether the vector data space object on each vector tile overlaps with the boundary of the corresponding vector tile, that is, to determine whether each vector data space object overlaps with the boundary of the corresponding vector tile. In the case of overlap, it can be determined that the vector data space object is an incomplete vector data space object. According to whether the vector data space object overlaps with the boundary of the corresponding vector tile, the incompletely drawn vector data space object can be quickly determined from a large number of vector data space objects, thereby improving the screening efficiency.

[0041] Optionally, of course, the incompletely drawn vector data space objects can also be determined by calculating the area of ​​each vector data space object, first determining the standard area of ​​the vector data space object, and then comparing the calculated area with the standard area, and determining the vector data space objects with a smaller area than the standard area as incompletely drawn vector data space objects. Determining the area of ​​the incompletely drawn vector data space objects based on the calculated area of ​​the vector data space objects can improve the accuracy of the screening.

[0042] Optionally, in some embodiments, the spatial range of each vector tile is changed, and a spatial search is performed on an incomplete vector data spatial object. The step of determining the vector tile to which the incomplete vector data spatial object belongs includes: expanding the spatial range of each vector tile according to the size of the vector data spatial object; searching whether there is an incomplete vector data spatial object within each spatial range; and in the event that an incomplete vector data spatial object is retrieved within the spatial range, determining that the vector tile corresponding to the spatial range is the vector tile to which it belongs.

[0043] In this embodiment, when determining the vector tile to which the incomplete vector data space object belongs, specifically, the spatial range of each vector tile is expanded according to the size of the vector data space object, and whether there is an incomplete vector data space object in each spatial range is retrieved. Among them, the size of the vector tile can be 256 pixels × 256 pixels, or 512 pixels × 512 pixels. When zooming in and out of the map, the display size of the vector tile will change, while the display size of the vector data space object will not change. Therefore, determining the spatial range of the vector tile according to the size of the incomplete vector data space object can more accurately retrieve the incompletely drawn vector data space object. In the case of retrieving that there is an incomplete vector data space object in the spatial range, the vector tile corresponding to the spatial range is determined to be the vector tile to which it belongs. That is, when an incompletely drawn vector data space object is retrieved within the spatial range of one of the vector tiles, the vector tile is determined to be the vector tile to which it belongs, that is, the vector tile that needs to be supplemented. By performing spatial retrieval on each vector tile, the vector tiles to which all incompletely drawn vector data space objects belong can be found, ensuring that each incompletely drawn vector data space object can find its own vector tile to avoid omission.

[0044] Optionally, each vector tile may be expanded to a fixed spatial range, where the expanded spatial range is greater than 0 pixels and less than or equal to 10 pixels, thereby improving the efficiency of expanding the spatial range of each vector tile and avoiding low retrieval efficiency due to an excessively large expanded spatial range.

[0045] Optionally, in some embodiments, the step of retrieving whether there are incomplete vector data space objects within each spatial range includes: determining the coverage of each vector tile; and retrieving whether there are incomplete vector data space objects in the spatial range outside the coverage of each vector tile.

[0046] In this embodiment, when searching for incomplete vector data space objects in each spatial range, specifically, the coverage range of each vector tile is determined, and then the spatial range outside the coverage range of each vector tile is searched for incomplete vector data space objects. That is, the spatial search of the present application searches the outer edge space of each vector tile, and does not search the coverage range of the vector tile. For example, when searching for incompletely drawn vector data space objects in the outer edge space of the current vector tile, the coverage range of the current vector tile will not be searched, so as to avoid interference with the search results when incompletely drawn vector data space objects exist in the current tile, and further improve the search efficiency and search accuracy.

[0047] Optionally, in some embodiments, the step of drawing an incomplete vector data space object on the corresponding vector tile includes: obtaining the shape of the drawn complete vector data space object; and drawing the incomplete vector data space object on the corresponding vector tile according to the shape of the complete vector data space object.

[0048] In this embodiment, when an incomplete vector data space object is drawn on the vector tile to which it belongs, specifically, the shape of the completely drawn vector data space object is first obtained, and then the incomplete vector data space object is drawn on the vector tile to which it belongs according to the shape of the complete vector data space object. Wherein, the vector data space object displays graphic data on the vector tile, and different objects can be displayed as different graphics as needed. When there is an incompletely drawn vector data space object, the shape of the completely drawn vector data space object can be obtained, and the corresponding vector tile can be supplemented and drawn according to the complete shape of the vector data space object, thereby displaying the complete vector data space object, avoiding missing key information, and providing users with more accurate and reliable information.

[0049] Optionally, in some embodiments, when a vector data space object event is monitored for a vector tile, before the step of determining whether there is an incompletely drawn vector data space object corresponding to the vector tile, the step includes: obtaining the vector data space object; and rendering the vector data space object onto the vector tile.

[0050] In this embodiment, before the event of the existence of a vector data space object on a vector tile is monitored, the vector data space object is obtained and rendered on the vector tile. The vector data space object can represent ships, vehicles, people, etc. In other words, the present application monitors the rendered vector tiles, that is, continuously monitors the vector data space objects on the vector tiles, and then can find out the incompletely drawn vector data space objects and draw them. That is, most of the vector data space objects are uniformly rendered on the vector tiles, and only a part of the completely drawn vector data space objects are supplemented with drawing, which greatly improves the drawing efficiency of the vector data space objects.

[0051] Optionally, in some embodiments, the vector data space object drawing method based on vector tiles further includes: monitoring incomplete drawing events of vector data space objects; and upon monitoring that each vector tile has completed drawing events, determining that all recorded incomplete vector data space objects are completely drawn.

[0052] In this embodiment, the incomplete vector data space object events are continuously monitored, and when all vector tiles have completed the supplementary drawing events, it is determined that all the recorded incomplete vector data space objects have been drawn. Spatial retrieval is performed on the outer edge of each vector tile, which can avoid missing any incompletely drawn vector data space object, ensure that all recorded incomplete vector data space objects are fully supplemented and drawn on the corresponding vector tiles, further avoid the omission of key information, and provide users with more accurate and reliable information.

[0053] Another vector data space object drawing method based on vector tiles according to an embodiment of the present invention is provided. Figure 2 As shown, the vector data space object drawing method based on vector tiles includes: S201: Acquire vector data space object; S202: Rendering the vector data space object onto the vector tile; S203: when a vector data space object event is detected for a vector tile, traverse each vector data space object to determine whether the vector data space object on each vector tile overlaps with a boundary of a corresponding vector tile; S204: when the vector data space object overlaps with the boundary of the vector tile, determining the vector data space object overlapping with the boundary of the vector tile as an incomplete vector data space object; S205: if it is determined that there is an incomplete vector data space object, record the incomplete vector data space object; S206: expanding the spatial range of each vector tile according to the size of the vector data spatial object; S207: Determine the coverage of each vector tile; S208: Check whether there is an incomplete vector data space object in the spatial range outside the coverage range of each vector tile; S209: in the case where an incomplete vector data space object is found within the retrieved space range, determining a vector tile corresponding to the space range as the vector tile to which it belongs; S210: Obtain the shape of the completely drawn vector data space object; S211: drawing an incomplete vector data space object on the corresponding vector tile according to the shape of the complete vector data space object; S212: monitoring the event of incompletely drawn vector data space objects; S213: When a drawing completion event of each vector tile is monitored, it is determined that all recorded incomplete vector data space objects are drawn completely.

[0054] The embodiment of the second aspect of the present invention provides a vector data space object rendering system 10 based on vector tiles, such as Figure 3 As shown, a vector data space object drawing system 10 based on vector tiles includes: a judgment module 11, a recording module 12, a determination module 13 and a drawing module 14, wherein the judgment module 11 is used to judge whether there is an incompletely drawn vector data space object corresponding to the vector tile when monitoring the event that the vector data space object exists in the vector tile; the recording module 12 is used to record the incomplete vector data space object when it is determined that there is an incomplete vector data space object; the determination module 13 is used to change the spatial range of each vector tile, perform spatial retrieval on the incomplete vector data space object, and determine the vector tile to which the incomplete vector data space object belongs; the drawing module 14 is used to draw the incomplete vector data space object on the vector tile to which it belongs.

[0055] According to the vector data space object drawing system 10 based on vector tiles proposed by the present invention, the judgment module 11 is used to monitor the event that a vector data space object exists in a vector tile, and when the event that a vector data space object exists in a vector tile is monitored, it is judged whether there is an incompletely drawn vector data space object corresponding to the vector tile, that is, for each vector tile, it is judged whether there is an incompletely drawn vector data space object. The recording module 12 is used to record the incomplete vector data space object when it is determined that there is an incompletely drawn vector data space object, that is, when it is detected that there is an incompletely drawn vector data space object on the vector tile, the incompletely drawn vector data space object is recorded, so that the vector data space object on the edge of the vector tile can be screened out. Next, the determination module 13 is used to change the spatial range of each vector tile and perform spatial retrieval on the incomplete vector data space object. The spatial range here is not the drawing range of the vector tile. The drawing range of each vector tile is fixed. The determination module 13 is also used to retrieve the outer edge space of the vector tile by changing the spatial range of the vector tile, and then determine whether there is an incomplete vector data space object in the outer edge space of the vector tile. In the case of determining that there is an incomplete vector data space object, the vector tile is identified as a vector tile that needs to be supplemented and drawn. The vector tile that needs to be supplemented and drawn is the vector tile to which the incomplete vector data space object belongs. Finally, the drawing module 14 is used to draw the incomplete vector data space object on the vector tile to which it belongs, wherein the recorded incomplete vector data space object is only displayed incompletely on the vector tile, not that the vector data space object itself is incomplete, so it is only necessary to draw the incompletely drawn vector data space object on the vector tile to which it belongs to complete the displayed missing vector data space object. That is to say, the present application retrieves the incompletely drawn vector data space objects on the vector tile, then records the incompletely drawn vector data space objects, and traverses each vector tile. When there is a vector data space object within the outer edge space range, the vector tile corresponding to the space range is determined to be the corresponding vector tile, and finally the incompletely drawn vector data space object is supplemented on the corresponding vector tile. It can be seen that the present application solves the problem of incomplete drawing of space objects near the edge of the vector tile. Multiple vector tiles are spliced ​​to form a map, which can display the complete vector data space objects, avoid missing key information, and provide users with more accurate and reliable information.

[0056] The third aspect of the present invention provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention are implemented.

[0057] The storage medium in the embodiment of the present invention implements the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention, so it has all the beneficial effects of the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention, which will not be repeated here.

[0058] A fourth aspect of the present invention provides an electronic device 20, such as Figure 4 As shown, the electronic device 20 includes a memory 21, a processor 22, and a computer program stored in the memory 21 and executable on the processor 22. When the processor 22 executes the computer program, the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention are implemented.

[0059] The electronic device in the embodiment of the present invention implements the steps of the vector data space object drawing method based on vector tiles provided in the first aspect of the present invention, so it has all the beneficial effects of the vector data space object drawing method based on vector tiles proposed in the first aspect of the present invention, which will not be repeated here.

[0060] In a specific application, the vector tile method is used to draw spatial objects, and data request and drawing are mainly performed in units of tiles. For the recognition of incomplete edge spatial objects, specifically, after the data corresponding to a single tile is obtained, the spatial objects near the edge are recognized.

[0061] The specific method is as follows: Listen to the tile to obtain the corresponding vector data space object event (the existing WebGIS-related vector tile method for rendering vector layers all supports "listening to the tile to obtain the corresponding vector data space object event", which is not elaborated in this application); determine whether there are incompletely drawn spatial objects, traverse each vector data space object, perform spatial calculations with the corresponding tiles, determine whether the graphics drawn by the vector data space object exceed the tile range, and cache records.

[0062] After all tiles are rendered, query and draw edge space objects: When all tiles are rendered, traverse the rendered tiles to find out whether there are space objects near the outer edges of the tiles. If so, draw these edge space objects within the current tile.

[0063] Listen to the event that all tiles have been rendered and drawn: traverse the tiles that have been drawn, expand each tile to a certain spatial range (the size of the expanded spatial range depends on the spatial size of the drawn vector object), and perform spatial retrieval on the cached records of the incompletely drawn edge space objects. If the edge space object can be found, draw the found edge space object into the tile, and traverse all tiles in this way to find and draw the edge space object. The main purpose of listening to this event is to ensure that the vector data corresponding to the drawn tiles have been loaded and the edge space object identification has been completed.

[0064] like Figure 5 and Figure 6 As shown, the vector tiles 30 are numbered from left to right and from top to bottom as tile ①, tile ②, tile ③ and tile ④, and there are two incompletely drawn edge space objects (incompletely drawn vector data space object 50) in tile ③. In addition, there is a completely drawn vector data space object 40 in each of tile ①, tile ③ and tile ④. By spatially searching the cache records of the incompletely drawn edge space objects in the extended range of tile ①, a triangle spanning tile ① and tile ③ can be found, and the triangle is drawn in tile ①, that is, a part of the triangle is drawn in tile ① and tile ③ respectively, and after tile ① and tile ③ are spliced, the triangle is complete. Similarly, by performing spatial retrieval on the cache records of the incomplete edge space objects with the extended range of tile ④, it is possible to find the triangle spanning tiles ③ and ④ (the incompletely drawn vector data space object 50), and draw the triangle in tile ④, that is, part of the triangle is drawn in tile ③ and tile ④ respectively, and after splicing tiles ③ and ④, the triangle is complete.

[0065] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0066] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0067] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0068] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for drawing vector data space objects based on vector tiles, characterized in that: include: When a vector data space object event is detected for a vector tile, determining whether there is an incompletely drawn vector data space object corresponding to the vector tile; In the case where it is determined that the incomplete vector data space object exists, recording the incomplete vector data space object; Changing the spatial range of each of the vector tiles, performing spatial retrieval on the incomplete vector data spatial object, and determining the vector tile to which the incomplete vector data spatial object belongs; The incomplete vector data space object is drawn on the associated vector tile.

2. The vector data space object drawing method based on vector tiles according to claim 1, characterized in that: The determining whether there is an incompletely drawn vector data space object corresponding to the vector tile includes: Traversing each of the vector data space objects, and determining whether the vector data space object on each of the vector tiles overlaps with a boundary of the corresponding vector tile; In a case where the vector data space object overlaps with a boundary of the vector tile, the vector data space object overlapping with the boundary of the vector tile is determined as the incomplete vector data space object.

3. The vector data space object drawing method based on vector tiles according to claim 1, characterized in that: The step of changing the spatial range of each of the vector tiles, performing spatial retrieval on the incomplete vector data spatial object, and determining the vector tile to which the incomplete vector data spatial object belongs comprises: Expanding the spatial range of each of the vector tiles according to the size of the vector data spatial object; Retrieve whether there is the incomplete vector data space object in each of the space ranges; In the case where the incomplete vector data space object is found to exist within the space range, the vector tile corresponding to the space range is determined to be the vector tile to which it belongs.

4. The vector data space object drawing method based on vector tiles according to claim 3 is characterized in that: The step of retrieving whether the incomplete vector data space object exists in each of the spatial ranges comprises: Determining the coverage of each of the vector tiles; It is then retrieved whether the incomplete vector data space object exists in the spatial range outside the coverage range of each vector tile.

5. The vector data space object drawing method based on vector tiles according to claim 1, characterized in that: The step of drawing the incomplete vector data space object on the vector tile to which it belongs comprises: Get the shape of the fully drawn vector data space object; The incomplete vector data space object is drawn on the corresponding vector tile according to the shape of the complete vector data space object.

6. The vector data space object drawing method based on vector tiles according to any one of claims 1 to 5, characterized in that: Before the step of determining whether there is an incompletely drawn vector data space object corresponding to the vector tile when the event of the vector data space object existing in the vector tile is monitored, the method includes: Obtain the vector data space object; The vector data space object is rendered onto the vector tile.

7. The vector data space object drawing method based on vector tiles according to any one of claims 1 to 5, characterized in that: Also includes: Listening for an event of drawing the incomplete vector data space object; When the drawing event of each of the vector tiles is monitored, it is determined that all the recorded incomplete vector data space objects are drawn completely.

8. A vector data space object rendering system based on vector tiles, characterized in that: include: A judging module, configured to judge whether there is an incompletely drawn vector data space object corresponding to the vector tile when a vector data space object event is monitored; A recording module, configured to record the incomplete vector data space object when it is determined that the incomplete vector data space object exists; A determination module, used for changing the spatial range of each of the vector tiles, performing spatial retrieval on the incomplete vector data spatial object, and determining the vector tile to which the incomplete vector data spatial object belongs; A drawing module is used to draw the incomplete vector data space object on the corresponding vector tile.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

Citation Information

Patent Citations

  • Vector drawing method and device based on vector tile data and electronic equipment

    CN116737852A

  • Two-dimensional vector data automatic publishing method and system based on GIS (Geographic Information System) platform

    CN118193655A

  • Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device

    WO2022089018A1