CN117333585B - Annotation processing method and system based on vector tile map - Google Patents

Annotation processing method and system based on vector tile map Download PDF

Info

Publication number
CN117333585B
CN117333585B CN202311405878.9A CN202311405878A CN117333585B CN 117333585 B CN117333585 B CN 117333585B CN 202311405878 A CN202311405878 A CN 202311405878A CN 117333585 B CN117333585 B CN 117333585B
Authority
CN
China
Prior art keywords
annotation
filtering
mark
marks
grid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311405878.9A
Other languages
Chinese (zh)
Other versions
CN117333585A (en
Inventor
尹斌
孙小涛
黄慧
刘现印
李玉琳
平宗玮
王凤娇
侯立媛
崔红霞
赵君
王皎
王峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Provincial Institute of Land Surveying and Mapping
Original Assignee
Shandong Provincial Institute of Land Surveying and Mapping
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Provincial Institute of Land Surveying and Mapping filed Critical Shandong Provincial Institute of Land Surveying and Mapping
Priority to CN202311405878.9A priority Critical patent/CN117333585B/en
Publication of CN117333585A publication Critical patent/CN117333585A/en
Application granted granted Critical
Publication of CN117333585B publication Critical patent/CN117333585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention belongs to the technical field of map making, and provides a annotation processing method and system based on a vector tile map, wherein the method comprises the following steps: acquiring vector tile data to be displayed; acquiring a set parameter of a annotation style, and carrying out initialization display on the vector tile data; dividing grids for each vector tile data, and performing first annotation filtering on each grid according to the importance of the elements; for each mark reserved after the first mark filtering, expanding the set size from the central position to the periphery, and performing the second mark filtering according to whether the expanded marks are mutually pressed with adjacent grids or not; and carrying out avoidance optimization on each annotation which is reserved after the second annotation filtering. According to the invention, the annotation data is filtered twice according to the importance level, and then annotation and element avoidance processing is carried out, so that the balance between the front-end drawing effect and information display is realized.

Description

Annotation processing method and system based on vector tile map
Technical Field
The invention belongs to the technical field of map making, and particularly relates to a annotation processing method and system based on a vector tile map.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
With the development of big data technology, the rapid sharing requirement of people on electronic maps is also becoming stronger. When the traditional electronic map is shared, grid tiles are usually obtained through a tile clipping tool, but the grid tile base map lacks real-time performance, and a client needs to request a server again if the client needs to perform map query. The problem can be solved by adopting the vector tiles, the vector tiles are stored into vector block data with various scales according to certain standards and technologies aiming at the vector electronic map, and when the electronic map is displayed at the front end, the vector blocks can be directly called for drawing. The vector tile can retain attribute information, and a server is not required to be requested again when a client inquires; the method has the advantages that the block coding mode is adopted, only the request area and the vector tile base map of the corresponding level are returned when the client obtains the vector tile base map, and the real-time vector drawing mode is adopted, so that the drawing efficiency is higher.
Map markers refer to various letters, numbers, etc. that play an explanatory role on a map. Map markers are often used in conjunction with map symbols to illustrate information about the name, location, range, etc. of each feature in a map. The smaller the scale, the wider the geographical range displayed on the screen, the more geographical elements, and the denser the map annotation, and some in the prior art adapt to the limited display space by stacking labels, reducing word sizes and abbreviation labels, and some in the prior art do not label by specifying the threshold value of the element sizes for line elements and surface elements, and if the threshold value is smaller than the threshold value.
Although these methods can solve the problem of capping between marks to a certain extent, they cannot achieve balance of mark distribution, and affect the appearance of a map.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a annotation processing method and a system based on a vector tile map, which realize the balance of front-end drawing effect and information display by filtering annotation data twice according to importance level and then performing annotation and element avoidance processing.
To achieve the above object, one or more embodiments of the present invention provide the following technical solutions:
a annotation processing method based on a vector tile map comprises the following steps:
acquiring vector tile data to be displayed;
Acquiring a set parameter of a annotation style, and carrying out initialization display on the vector tile data;
Dividing grids for each vector tile data, and performing first annotation filtering on each grid according to the importance of the elements;
for each mark reserved after the first mark filtering, expanding the set size from the central position to the periphery, and performing the second mark filtering according to whether the expanded marks are mutually pressed with adjacent grids or not;
and carrying out avoidance optimization on each annotation which is reserved after the second annotation filtering.
In some embodiments, the first and second annotation filters are performed for point annotation, line annotation, and line numbering annotation, respectively.
In some embodiments, performing a first annotation filter on the point annotation or line number annotation comprises:
Taking the central position of each point mark or line number mark as a locating point, and sequencing one or more locating points falling into each grid according to the importance level of the corresponding element; and reserving marks corresponding to one or more positioning points meeting the set filtering threshold.
In some embodiments, performing the first annotation filtering on the line annotation or the line number annotation comprises: cutting the line mark according to the characters, taking the central position of the middle character as a mark positioning point of the line mark if the line mark comprises an odd number of characters, taking the central position of the central point of the two middle characters as the mark positioning point of the line mark if the line mark comprises an even number of characters, and sequencing one or more positioning points falling into each grid according to the importance level of the corresponding element; and reserving marks corresponding to one or more positioning points meeting the set filtering threshold.
In some embodiments, the avoidance optimization includes: and respectively carrying out avoidance optimization between the two primitives and other notes.
In some embodiments, performing the avoidance optimization between the annotation and the other annotations includes:
according to the style parameters of the marks, carrying out external rectangle drawing on each character of each point mark, each line number mark of each line mark;
starting from the mark with the highest importance level, for each mark, acquiring the external rectangle of the mark, judging whether the external rectangle of other marks exists in the upper, lower, left and right directions and the cover exists, if the cover exists, adjusting the position to avoid, and if the surrounding space is insufficient to completely avoid with other marks, filtering the mark with lower importance.
In some embodiments, the method further comprises performing a back-off optimization on the annotation at the tile joint:
For a grid at the edge of each tile, determining other grids adjacent to the grid across tiles;
Judging whether the external rectangle of the mark in the grid and the external rectangle of the mark in other grids have a gland, if so, adjusting the position to avoid, and if not, filtering the mark.
In some embodiments, the method further comprises: and re-executing the annotation processing method in response to the annotation style parameter input by the user.
One or more embodiments of the present invention also provide a vector tile map-based annotation processing system, including:
the vector tile data acquisition module acquires vector tile data to be displayed;
the map annotation initialization module is configured to acquire annotation style setting parameters and perform initialization display on the vector tile data;
The annotation primary filtering module is configured to divide grids for each vector tile data, and performs primary annotation filtering on each grid according to the importance of the elements;
the annotation secondary filtering module is configured to expand the set size from the central position to the periphery of each annotation reserved after the first annotation filtering, and perform the second annotation filtering according to whether a mutual gland exists between each expanded annotation and the adjacent grid;
The annotation avoiding optimization module is configured to avoid optimization for each annotation reserved after the second annotation filtering.
One or more embodiments of the present invention also provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the vector tile map-based annotation processing method when the program is executed by the processor.
One or more embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the vector tile map-based annotation processing method.
The one or more of the above technical solutions have the following beneficial effects:
By setting importance for the geographic elements, marks are filtered according to the importance of the elements during display, the problems that the marks are too much in content, marks in the same level are mutually covered, important marks are covered by secondary marks, marks and the elements are covered are solved, the balance of front-end drawing effect and information display is realized, and the map display effect is optimized.
The secondary filtering mechanism is introduced to divide the grids of the tiles into small-scale grids, the marks in each grid are filtered firstly, then secondary filtering is carried out based on the position relationship between the grid where each mark is positioned and the adjacent grid, the problem that the marks are too dense is further avoided, the uniformity of the display of the whole marks on the map is ensured on the basis that important information on the map is not omitted, and the display effect is optimized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention.
FIG. 1 is a flow diagram of a method of vector tile map based annotation processing in one or more embodiments of the invention;
FIG. 2 is a diagram of meshing in accordance with one or more embodiments of the invention;
FIG. 3 is a schematic illustration of first filtering of point notes in one or more embodiments of the invention;
FIG. 4 is a schematic diagram of first filtering of line notes in one or more embodiments of the invention.
Detailed Description
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present invention. As used herein, the singular is also intended to include the plural unless the context clearly indicates otherwise, and furthermore, it is to be understood that the terms "comprises" and/or "comprising" when used in this specification are taken to specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Term interpretation:
WebGIS is an advanced form of geographic information system that can be used on a network platform. It was originally a GIS running in a Web browser, and later evolved into a Web GIS that served desktops and mobile clients. The primary goal is to allow users to dynamically access, share and manipulate geospatial data over a network.
Map geographic elements are the most basic geographic content on a map. Is a geographic entity with the characteristics of position, distribution and interrelation, and is a basic element on a common map. Including natural elements such as water, landform, soil, vegetation, etc., and social and economic elements such as residential lands, traffic networks, political administration boundaries, industrial and agricultural facilities, cultural heritage, etc. The water body is river, lake, sea, etc.; the landforms include various plain, mountain land, hills and various special landforms; soil vegetation includes desert, forest, shrub, grassland, marsh, etc. Residential areas include cities, towns, villages, and the like; the traffic network comprises auxiliary buildings such as railways, highways, shipping and the like, airports, stations, ports and the like.
Vector data refers to data types that describe geospatial entities in terms of vector primitives such as points, lines, planes, etc. A point is the most basic element in vector data and is used to describe a point location information in a geographic space, such as a center point of a city, a source head of a river, and the like. A line is a continuous path of points connected to describe a linear entity in a geographic space, such as a road, river, railway, etc. A facet is a closed area formed by a plurality of lines connected to describe planar entities in a geographic space, such as lakes, mountains, cities, etc.
Map annotation (section): map annotation occurs as the map is generated, so to speak, as a main component of the map, which is part of the map language. Map markers refer to various letters, numbers, etc. that play an explanatory role on a map. Map markers are often used in conjunction with map symbols to illustrate information about the name, location, range, etc. of each feature in a map. Map annotation can be divided into: 1) Name notes such as residential, river, ocean, etc.; 2) Description notes, commonly used to supplement description of the nature of features, such as flowers and plants, etc., and legend description, picture names, scale bars, etc.; 3) Digital annotation for marking the number characteristics of the ground objects, such as elevation, contour line value, road length, navigation line mileage and the like; 4) Symbol notations are classified into general symbols and specific symbols. Map annotation is a map language that is not related to geographic properties and is drawn onto a map according to the needs of the user. In one or more embodiments of the present invention, point marks, line marks are used to represent marks for point elements, marks for line elements, and line numbering marks appear in pairs with line marks before line marks.
One or more embodiments of the present invention are applied to WebGIS scenes, and provide a method for processing a annotation based on a vector tile map, which is applied to a client, and aims at the problems of capping, incomplete display, etc. when the front end displays an electronic map, and comprises the following steps:
Step 1: and acquiring vector tile data to be displayed.
Specifically, a current screen coordinate range and a target scale are obtained and sent to a server; and receiving the request area returned by the server and the vector tile data of the corresponding level.
Step 2: and acquiring the set parameters of the annotation style, and carrying out initialization display on the vector tile data.
And presetting default annotation style parameters for the vector tile data of each level, and displaying according to the default annotation style parameters if no modification of the style by the user is received. The initialization display can adopt display rules of the system, such as marking points on the space positions of the point elements, and the character head is upward; line notes (e.g. "jinghu high speed", "via ten lines", "small clear river", etc.) are generally marked along the spatial run of line elements, with the headers running perpendicular to the line elements and the word spacing being related to the line element length. It will be appreciated by those skilled in the art that the rules for displaying the notes in the currently available GIS software tools may be employed and are not specifically limited herein.
The annotation style parameters include conventional parameters such as font, font size, character spacing, etc., and may also include special symbols such as pictographic symbols representing woodland, etc.
It will be appreciated that the smaller the display scale, the more elements the screen space contains, and the higher the density of the map annotations, and that there must be a gland between the map annotations. In order to solve the technical problem, in some embodiments, the display density of the marks is controlled by performing secondary filtering and screening on the marks based on a mode of combining grid division and element importance and taking the element marks with priority to display importance levels as a principle.
Step 3: and carrying out first grid division on each vector tile data, and carrying out first annotation filtering on each grid according to the importance of the elements.
Specifically, each tile is grid-divided, for example, the size of a single tile of the vector tile is 256×256 pixels, grid division is performed by adopting a grid with the size of 16×16 pixels, and each tile is divided into 16 rows and 16 columns of grid units in the horizontal direction and the vertical direction. And combining the actual spatial distribution of the element and the mark center point, filtering and screening all marks in each grid unit according to the importance degree of the element, reserving one or more marks, deleting other redundant elements, and not participating in subsequent display operation.
The selection of the mesh size used for the mesh division relates to the display density of the annotation, and thus in some embodiments, may be adaptively adjusted according to the target display scale. Smaller display scales may cause important notes to be filtered out if a larger grid is selected, so in general, the larger the display scale, the larger the grid size.
And 3, after carrying out grid division on each vector tile data, carrying out first filtering on point marks, line marks and line number marks according to a set filtering threshold value for each grid.
The specific method for carrying out the first filtering aiming at the point mark comprises the following steps: taking the central position of each point mark as a positioning point of the point mark, and sequencing one or more positioning points falling into each grid according to the importance level of the corresponding element; and reserving marks corresponding to one or more positioning points meeting the set filtering threshold.
The specific method for carrying out the first filtering on the line mark comprises the following steps: cutting a line mark according to characters, taking the central position of a middle character as a mark positioning point of the line mark if the line mark comprises an odd number of characters, taking the central position of a connecting line of the central points of two middle characters as a mark positioning point of the line mark if the line mark comprises an even number of characters, for example, in a Jing-hong-ao high speed mode, according to actual mark display, taking the central position of a display position of an 'Australian' character, and sequencing one or more positioning points falling into each grid according to importance levels of corresponding elements; and reserving marks corresponding to one or more positioning points meeting the set filtering threshold.
The specific method for carrying out the first filtering aiming at the line number annotation comprises the following steps: calculating the line number annotation center position as an anchor point for the annotation to participate in filtering calculation, and sequencing one or more anchor points falling into each grid according to the importance level of the corresponding element; and reserving marks corresponding to one or more positioning points meeting the set filtering threshold.
The filtering threshold is used for limiting the number of marks reserved in each grid, and can be configured and adjusted according to the actual data volume and characteristics, in this embodiment, the grid size is 4*4 pixels, and the filtering threshold is 1, that is, only one mark with the highest element importance level is reserved in each grid.
In some embodiments, element importance rules are preset, wherein the rules comprise importance levels of each class of elements and importance levels of lower-level classification elements inside each class of elements. For example, road elements having higher importance levels than residential areas, lower classifications of road elements including highways, national roads, provincial roads, county roads, etc., are also assigned different importance levels, such as the highest importance level on highways. The importance levels are recorded in attribute data of the respective elements.
After the primary filtering of the annotation data, the equilibrium and the information effectiveness of the data distribution in each grid unit of the fine granularity are ensured, but the map display and the element distribution have mutual consistency, and the secondary filtering and screening are needed to be carried out from the macro scale.
Step 4: and expanding the set size of each mark reserved after the first mark filtering from the central position to the periphery, judging whether each expanded mark covers adjacent grids, and if the marks exist, performing secondary filtering according to the importance of the marks and marks in the grids of the cover.
Specifically, if a gland exists between an expanded mark and an adjacent grid, screening is performed according to the importance of the mark in the grid where the mark is located and the marks in the adjacent grids, and marks with high importance are reserved. It will be appreciated by those skilled in the art that if the first annotation is filtered, one annotation is retained in each grid, and the annotation is screened according to the importance of the annotation in the annotation and the annotation in the grid of the gland, and the annotation with high importance is retained.
Similarly, the second filtering is performed for the point mark, the line mark, and the line number mark, respectively.
After the first and second data filtering, the distribution balance and the richness of the annotation data in the whole image are basically reasonable, but the phenomenon of mutual capping between the annotations of different types still can exist, and if the fonts are large, the capping can also exist, so that the subsequent processing is performed by combining the actual display requirements. The element avoidance is further optimized in the display process by combining the specific actual display effect and drawing requirements of the front end of the map.
Step 5: and carrying out avoidance optimization on each annotation which is reserved after the second annotation filtering.
Specifically, four-grid avoidance operation is performed according to the importance level ordering among the primitives and between the notes, elements with high weight values and no conflict are reserved for map display, and the rest redundant elements are not displayed.
In some embodiments, the avoidance optimization includes: and respectively carrying out gland detection between the image element and between the image element and other marks, and carrying out avoidance optimization.
The avoidance principle is that the marks cannot cover the graph of the map element, and the marks cannot cover each other. For example, POI points of interest notes cannot cover highway graphics, resident point notes cannot cover roads, water system graphics.
The avoidance optimization specific method between the notes comprises the following steps:
(1) And drawing external rectangles for each character of each point mark, each line mark and each line number mark according to the pattern parameters of the marks. Specifically, the point marks are drawn to circumscribe rectangles according to the font size; drawing an external rectangle of each character by the line character annotation according to the character position, the font size and the rotation angle; the line number annotation draws an circumscribed rectangle according to the position of the label and the font size.
(2) Starting from the mark with the highest importance level, for each mark, acquiring the circumscribed rectangle of the mark, judging whether the circumscribed rectangle of other marks and the gland exist in the directions of up, down, left and right, if the gland exists, adjusting the position to avoid, for example, if the covering position is on the left side, the mark is shifted to the right, and if the covering position is on the upper side, the mark is shifted downwards. If the space in the four directions is insufficient to realize complete avoidance, marks with low importance are filtered and are not displayed.
In addition, an avoidance rule between the marks and the primitives is set, and the avoidance rule comprises display grades of various primitives and marks.
Notably, part of the special annotation may be located at the splice of adjacent tiles, and the display range spans the tiles, so as to avoid the problem that the annotation data between the adjacent tiles is not displayed fully or displayed reasonably, the method further includes:
(3) For a grid at the edge of each tile, determining other grids adjacent to the grid across tiles; judging whether a gland exists between the external rectangle of the mark in the grid and the external rectangle of the mark in other grids; if the gland is present, the position is adjusted to avoid, for example, the mark is truncated at the edge zone, and the center point of the mark is shifted toward the inside of the tile. If complete avoidance cannot be achieved, for example, if the inward shift causes a conflict with another annotation, the annotation is filtered and not displayed. I.e. for each tile edge grid, the back-off detection is performed with eight neighboring orientations.
Some elements are broken into a plurality of sections when being collected, for example, a road is broken into a plurality of small sections, each small section is marked, and the condition that the same tile has a plurality of homonyms can possibly occur, so that the homonyms are deleted.
(4) And adjusting the number of homonymous marks in the unit according to a preset duplicate removal threshold.
Step 6: and re-executing the step 2-5 in response to the annotation style parameter input by the user.
In one or more embodiments, in order to balance the front-end drawing effect and the information display, after filtering the annotation data according to the importance level/weight value of the element, the front/back end dynamically performs avoidance drawing, and the personalized processing of the map annotation is realized by taking the annotation priority display with high importance as the principle.
Based on the above method, one or more embodiments of the present invention further provide a annotation processing system based on a vector tile map, including:
the vector tile data acquisition module acquires vector tile data to be displayed;
the map annotation initialization module is configured to acquire annotation style setting parameters and perform initialization display on the vector tile data;
The annotation primary filtering module is configured to divide grids for each vector tile data, and performs primary annotation filtering on each grid according to the importance of the elements;
the annotation secondary filtering module is configured to expand the set size from the central position to the periphery of each annotation reserved after the first annotation filtering, and perform the second annotation filtering according to whether a mutual gland exists between each expanded annotation and the adjacent grid;
The annotation avoiding optimization module is configured to avoid optimization for each annotation reserved after the second annotation filtering.
The system is also provided with a self-defining module, a user can adjust the display density of the marks and the patterns of the marks, and the system can adaptively process according to the patterns and the display density of the marks. The method specifically comprises the following steps:
The system comprises a annotation density display control module configured to receive a density control parameter input by a user, determine a grid size and a filtering threshold based on the density control parameter. It will be appreciated by those skilled in the art that the density control parameter may be a relative parameter, for example, in the range of 1 to 10.
The system comprises a annotation style setting module, a annotation style setting module and a user interface module, wherein the annotation style setting module is configured to receive annotation style parameters input by a user.
And the annotation dynamic updating module is configured to re-execute annotation processing in response to the annotation style parameter input by the user.
One or more embodiments of the present invention also provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the vector tile map-based annotation processing method when the program is executed by the processor.
In some embodiments, the linked visualization method based on the underlying geographic entity database may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and/or installed to the electronic device via RAM and/or ROM and/or a communication unit. One or more steps of the methods described above may be performed when a computer program is loaded into RAM and/or ROM and executed by an electronic device.
While the foregoing description of the embodiments of the present invention has been presented in conjunction with the drawings, it should be understood that it is not intended to limit the scope of the invention, but rather, it is intended to cover all modifications or variations within the scope of the invention as defined by the claims of the present invention.

Claims (7)

1. A annotation processing method based on a vector tile map is characterized by comprising the following steps:
acquiring vector tile data to be displayed;
Acquiring a set parameter of a annotation style, and carrying out initialization display on the vector tile data;
Receiving a density control parameter input by a user, and determining a grid size and a filtering threshold value based on the density control parameter;
Dividing grids for each vector tile data, and performing first annotation filtering on each grid according to the importance of the elements;
performing first annotation filtering on point annotations or line number annotations includes:
Cutting the line marks according to characters by taking the central positions of the point marks or the line number marks as positioning points, taking the central positions of the middle characters as the marking positioning points of the line marks if the line marks contain odd numbers of characters, taking the central positions of the connecting lines of the central points of the two middle characters as the marking positioning points of the line marks if the line marks contain even numbers of characters, and sequencing one or more positioning points falling into each grid according to the importance level of the corresponding element; reserving marks corresponding to one or more positioning points meeting a set filtering threshold;
for each mark reserved after the first mark filtering, expanding the set size from the central position to the periphery, and performing the second mark filtering according to whether the expanded marks are mutually pressed with adjacent grids or not;
performing avoidance optimization on each mark reserved after the second mark filtering;
the method further comprises avoiding optimization of the marks at the tile joints:
For a grid at the edge of each tile, determining other grids adjacent to the grid across tiles;
Judging whether the external rectangle of the mark in the grid and the external rectangle of the mark in other grids have a gland, if so, adjusting the position to avoid, and if not, filtering the mark, and jointly carrying out avoidance detection on the edge grid of each tile and the adjacent eight directions.
2. The vector tile map-based annotation processing method of claim 1, wherein the first annotation filtering and the second annotation filtering are performed for point annotation, line annotation and line number annotation, respectively.
3. The vector tile map-based annotation processing method of any one of claim 2, wherein the avoidance optimization comprises: and respectively carrying out avoidance optimization between the two primitives and other notes.
4. The vector tile map-based annotation processing method of claim 3, wherein performing an avoidance optimization between the annotation and other annotations comprises:
according to the style parameters of the marks, carrying out external rectangle drawing on each character of each point mark, each line number mark of each line mark;
starting from the mark with the highest importance level, for each mark, acquiring the external rectangle of the mark, judging whether the external rectangle of other marks exists in the upper, lower, left and right directions and the cover exists, if the cover exists, adjusting the position to avoid, and if the surrounding space is insufficient to completely avoid with other marks, filtering the mark with lower importance.
5. A vector tile map based annotation processing system comprising:
the vector tile data acquisition module acquires vector tile data to be displayed;
the map annotation initialization module is configured to acquire annotation style setting parameters and perform initialization display on the vector tile data;
Receiving a density control parameter input by a user, and determining a grid size and a filtering threshold value based on the density control parameter;
The annotation primary filtering module is configured to divide grids for each vector tile data, and performs primary annotation filtering on each grid according to the importance of the elements;
performing first annotation filtering on point annotations or line number annotations includes:
Cutting the line marks according to characters by taking the central positions of the point marks or the line number marks as positioning points, taking the central positions of the middle characters as the marking positioning points of the line marks if the line marks contain odd numbers of characters, taking the central positions of the connecting lines of the central points of the two middle characters as the marking positioning points of the line marks if the line marks contain even numbers of characters, and sequencing one or more positioning points falling into each grid according to the importance level of the corresponding element; reserving marks corresponding to one or more positioning points meeting a set filtering threshold;
the annotation secondary filtering module is configured to expand the set size from the central position to the periphery of each annotation reserved after the first annotation filtering, and perform the second annotation filtering according to whether a mutual gland exists between each expanded annotation and the adjacent grid;
the annotation avoiding optimization module is configured to avoid and optimize each annotation reserved after the second annotation filtering;
the tile joint avoiding optimization module is configured to avoid and optimize the marks at the tile joint;
avoiding optimizing the annotation at the tile joint comprises:
For a grid at the edge of each tile, determining other grids adjacent to the grid across tiles;
Judging whether the external rectangle of the mark in the grid and the external rectangle of the mark in other grids have a gland, if so, adjusting the position to avoid, and if not, filtering the mark, and jointly carrying out avoidance detection on the edge grid of each tile and the adjacent eight directions.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the vector tile map based annotation processing method of any of claims 1-4 when the program is executed by the processor.
7. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements the vector tile map-based annotation processing method according to any one of claims 1-4.
CN202311405878.9A 2023-10-26 2023-10-26 Annotation processing method and system based on vector tile map Active CN117333585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311405878.9A CN117333585B (en) 2023-10-26 2023-10-26 Annotation processing method and system based on vector tile map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311405878.9A CN117333585B (en) 2023-10-26 2023-10-26 Annotation processing method and system based on vector tile map

Publications (2)

Publication Number Publication Date
CN117333585A CN117333585A (en) 2024-01-02
CN117333585B true CN117333585B (en) 2024-05-07

Family

ID=89290245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311405878.9A Active CN117333585B (en) 2023-10-26 2023-10-26 Annotation processing method and system based on vector tile map

Country Status (1)

Country Link
CN (1) CN117333585B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136218A (en) * 2011-03-17 2011-07-27 武汉大学 Automatic collocation method for map lettering during map making through computer
CN103617296A (en) * 2013-12-18 2014-03-05 中国电子科技集团公司第五十四研究所 Optimized display method of place name annotation image layer
JP2014071141A (en) * 2012-09-27 2014-04-21 Zenrin Datacom Co Ltd Map image generation device, map image generation method, and program
WO2016036772A1 (en) * 2014-09-02 2016-03-10 Apple Inc. Dynamic vector map tiles
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN108022273A (en) * 2016-10-28 2018-05-11 中国测绘科学研究院 A kind of figure number Detachable drafting method and system
CN109147547A (en) * 2018-07-26 2019-01-04 浙江省测绘科学技术研究院 A kind of annotation bit selecting based on vector tile and dynamic preventing collision method
CN115510337A (en) * 2022-09-14 2022-12-23 广西壮族自治区自然资源遥感院 Three-dimensional annotation scheduling display method
CN115661396A (en) * 2022-12-28 2023-01-31 中国电子科技集团公司第二十八研究所 Map element annotation display method and system based on global grid division

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136218A (en) * 2011-03-17 2011-07-27 武汉大学 Automatic collocation method for map lettering during map making through computer
JP2014071141A (en) * 2012-09-27 2014-04-21 Zenrin Datacom Co Ltd Map image generation device, map image generation method, and program
CN103617296A (en) * 2013-12-18 2014-03-05 中国电子科技集团公司第五十四研究所 Optimized display method of place name annotation image layer
WO2016036772A1 (en) * 2014-09-02 2016-03-10 Apple Inc. Dynamic vector map tiles
CN106384371A (en) * 2016-09-20 2017-02-08 国家基础地理信息中心 Map drawing method based on vector tile
CN108022273A (en) * 2016-10-28 2018-05-11 中国测绘科学研究院 A kind of figure number Detachable drafting method and system
CN109147547A (en) * 2018-07-26 2019-01-04 浙江省测绘科学技术研究院 A kind of annotation bit selecting based on vector tile and dynamic preventing collision method
CN115510337A (en) * 2022-09-14 2022-12-23 广西壮族自治区自然资源遥感院 Three-dimensional annotation scheduling display method
CN115661396A (en) * 2022-12-28 2023-01-31 中国电子科技集团公司第二十八研究所 Map element annotation display method and system based on global grid division

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于矢量瓦片的点状要素注记处理技术;齐亚光 等;计算机与现代化;20180815(第08期);第44-50页 *

Also Published As

Publication number Publication date
CN117333585A (en) 2024-01-02

Similar Documents

Publication Publication Date Title
Over et al. Generating web-based 3D City Models from OpenStreetMap: The current situation in Germany
CN107423445A (en) A kind of map data processing method, device and storage medium
CN108921943B (en) Road three-dimensional model modeling method based on lane-level high-precision map
CN105427380A (en) Three-dimensional map data processing method based on multiple detailed layers
CN108052642A (en) Electronic Chart Display method based on tile technology
CN113486136B (en) Method and system for assembling geographic entity service on demand
CN112819340A (en) Urban flood disaster dynamic evaluation method based on multi-source data
CN105718481A (en) Massive topographic data organization and release method
CN102607569A (en) Method for automatically generating data of multiple small scales by using large scale water system in navigation
CN111260749A (en) Method, device and storage medium for generating standard scale map
CN114611036B (en) Gis data processing and rendering method
CN115687675A (en) Airborne vector map data processing method
KR20070033628A (en) Maritime geographic information construction and service method
Lin A comparison study on natural and head/tail breaks involving digital elevation models
CN117333585B (en) Annotation processing method and system based on vector tile map
CN113066176B (en) Map data processing method, device, equipment and storage medium
CN111914137A (en) GDP spatialization method based on remote sensing data and POI data
CN114969944B (en) High-precision road DEM construction method
CN110737744A (en) method for making classified thematic map texture symbols for land utilization
CN115577825A (en) Method for determining width of urban ecological corridor depending on river and road
CN110135103A (en) A kind of method and system using water flow simulation Urban Natural ventilation potentiality
CN115588086A (en) Map dividing method, map dividing device, computer readable storage medium and processor
CN113066179B (en) Map data processing method, device, equipment and storage medium
Li et al. [Retracted] Analysis of the Spatial Distribution Pattern of the Urban Landscape in the Central Plains under the Influence of Multiscale and Multilevel Morphological Geomorphology
Dell GIS analysis for applied economists

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant