CN109002451A - Map datum vacuates method and device - Google Patents
Map datum vacuates method and device Download PDFInfo
- Publication number
- CN109002451A CN109002451A CN201710693584.9A CN201710693584A CN109002451A CN 109002451 A CN109002451 A CN 109002451A CN 201710693584 A CN201710693584 A CN 201710693584A CN 109002451 A CN109002451 A CN 109002451A
- Authority
- CN
- China
- Prior art keywords
- map
- point
- level
- grid
- target
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
Abstract
The invention discloses a kind of map datums to vacuate method and device, belongs to geospatial information field.Method includes: at least to obtain target geographical area and initial map layer grade to be vacuated;In each map level of the initial map layer grade or more, multiple points in geographic coordinate range indicated by each grid that target geographical area includes are obtained;From multiple points of each map level, the target point of each map level is determined;Set the beginning display level of the target point to the number of levels of the affiliated map level of the target point, the beginning display level of the target point is used to indicate the target point and is shown in number of levels equal to or more than in the map level for starting display level.The present invention can satisfy the demand that point continuously displays in multiple map levels, for displaying target point in each grid of each level, has achieved the purpose that vacuate, the point on map is uniformly distributed.
Description
This application claims on 06 07th, 2017 submission Patent Office of the People's Republic of China, application No. is 201710425305.0, invention names
This is hereby incorporated by reference in the referred to as priority of the Chinese patent application of " map datum vacuates method and device ", entire contents
In application.
Technical field
The present invention relates to geospatial information fields more particularly to a kind of map datum to vacuate method and device.
Background technique
With the development of geographic information system technic, map is gradually popularized, to the trip life of people bring it is very big just
Benefit.Growing day by day with map datum amount, a large amount of map datum (point) be easy to cause overlapping spatially on map, no
But beauty is influenced, also will increase the difficulty of data processing.Therefore, need a kind of map datum vacuate method come over the ground diagram data into
Row vacuates processing, preferable map bandwagon effect is presented.
In the related technology, it is vacuated using Sub Points point, Subsets point the methods of vacuates diagram data over the ground and vacuated
Processing.Wherein, it includes: to compare priority first in the point that several phases are closed on that Sub Points point, which vacuates method, is retained preferential
Grade is high, and priority is identical, compares NAME field, reservation NAME field length is short, priority and NAME field length all phases
It randomly chooses simultaneously.It includes: to vacuate map datum according to percentage that Subset point, which vacuates method, for example, script map
On have 100 map datums, vacuating according to percentage is 70.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
In the related technology, it must include " priority " and " NAME " field that Sub Points point, which vacuates method,;Subset point
It vacuates method and subrange different on map is vacuated according to identical percentage, remain the density journey of original image
Degree, can not be such that data are uniformly distributed, the high place of legacy data density is still closeer after vacuating.And above-mentioned technology is not examined
Consider the continuity for vacuating display, diagram data carries out vacuating the result difference that rear each map level is shown over the ground, it is assumed that 11 grades of ground
The result that vacuates of figure includes point A, and vacuates result and onrelevant with 11 grades to 12 grades of the result that vacuates, and is shown after vacuating
It may not include point A in the point shown, it is difficult to meet the needs of point continuously displays in multiple map levels.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of map datums to vacuate method and device.
The technical solution is as follows:
In a first aspect, providing a kind of map datum vacuates method, which comprises
At least obtain target geographical area and initial map layer grade to be vacuated;
In each map level of the initial map layer grade or more, obtain that the target geographical area includes is every
Multiple points in geographic coordinate range indicated by a grid;
From multiple points of each map level, the target point of each map level, the mesh are determined
Punctuation bit is to be vacuated out for the first time, determines the point shown in being currently located map level;
Set the beginning display level of the target point to the number of levels of the affiliated map level of the target point, institute
The beginning display level for stating target point, which is used to indicate the target point and is shown in number of levels, to be equal to or more than described start to show
Show in the map level of grade.
It is described to obtain target geographical area packet described in each map level in the first implementation of first aspect
Multiple points in geographic coordinate range indicated by each grid contained include:
Obtain the geographic coordinate range for multiple grids that target geographical area described in each map level includes;
It is located at from acquisition geographical coordinate in database more in the geographic coordinate range of each grid in the multiple grid
A point.
It is described to obtain target geographic area described in each map level in second of implementation of first aspect
The geographic coordinate range for multiple grids that domain includes includes:
Using following formula, the ground for multiple grids that target geographical area described in each map level includes is obtained
Coordinate range is managed, the geographic coordinate range of each grid includes minimum longitude, minimum latitude, maximum longitude and maximum latitude:
Minx=x*gridnLonlat
Miny=y*gridnLonlat
Maxx=minx+gridnLonlat
Maxy=miny+gridnLonlat
Wherein, minx, miny, maxx and maxy refer respectively to minimum longitude, minimum latitude, maximum longitude and maximum latitude
Degree, x and y refer respectively to the horizontal subscript and vertical subscript of grid, and the horizontal subscript and vertical subscript are used to indicate each in map level
The coordinate position of grid, gridnLonlat refer to the length of each grid and the wide longitude length actually represented in map level
With latitude length.
In the third implementation of first aspect, it is described at least obtain target geographical area and it is to be vacuated initially
Figure layer grade includes:
Obtain the target geographical area and multiple map levels to be vacuated, the multiple map level packet to be vacuated
Include the initial map layer grade.
It is described from multiple points of each map level in the 4th kind of implementation of first aspect, it determines
The target point of each map level includes:
In each map level, if in geographic coordinate range indicated by each grid in the map level
There are the point that one starts display level minimum and the number of levels less than the map level in multiple points, then opened described
The smallest point of beginning display level is determined as the target point;
If existed in multiple points in geographic coordinate range indicated by each grid in the map level more
The point of a number of levels for starting display level minimum and being less than the map level, then most by the multiple beginning display level
The point of highest priority is determined as the target point in small point.
In the 5th kind of implementation of first aspect, the beginning display level by the target point is set as institute
After the number of levels for stating the affiliated map level of target point, the method also includes:
Other points in multiple points of each map level in addition to the target point are started to show
Grade is set as empty.
In the 6th kind of implementation of first aspect, the method also includes:
When newly-increased point, the affiliated net of geographical coordinate for increasing point described in the smallest map level of number of levels newly is determined
Lattice;
Using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the newly-increased point as the target geographic
Region executes the map datum and vacuates method.
In the 7th kind of implementation of first aspect, the method also includes:
When deleting point, the affiliated net of geographical coordinate that point is deleted described in the smallest map level of number of levels is determined
Lattice;
Using geographic coordinate range indicated by the affiliated grid of geographical coordinate for deleting point as the target geographic
Region executes the map datum and vacuates method.
In the 8th kind of implementation of first aspect, the method also includes:
When mobile point, the geographical coordinate institute before the displacement of transfer point described in the smallest map level of number of levels is dynamic is determined
Belong to grid;
Using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the transfer point displacement before dynamic as the mesh
Geographic area is marked, the map datum is executed and vacuates method;
Determine the affiliated grid of geographical coordinate after the displacement of transfer point described in the smallest map level of number of levels is dynamic;
Using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the transfer point displacement after dynamic as the mesh
Geographic area is marked, the map datum is executed and vacuates method.
In the 9th kind of implementation of first aspect, the single sizing grid in different map layer grades is identical, or, different
Single sizing grid in map level is different.
Second aspect provides a kind of map datum and vacuates device, and described device includes:
Module is obtained, at least obtaining target geographical area and initial map layer grade to be vacuated;
The acquisition module is also used in each map level of the initial map layer grade or more, described in acquisition
Multiple points in geographic coordinate range indicated by each grid that target geographical area includes;
Determining module, for determining the mesh of each map level from multiple points of each map level
Punctuation bit, the target point are to be vacuated out for the first time, determine the point for needing to show in being currently located map level;
Setup module, for setting the affiliated map layer of target point for the beginning display level of the target point
The number of levels of grade, the beginning display level of the target point, which is used to indicate the target point and is shown in number of levels, to be equal to or greatly
In the map level for starting display level.
In the first implementation of second aspect, the acquisition module, for obtaining in each map level
The geographic coordinate range for multiple grids that the target geographical area includes;Geographical coordinate is obtained from database positioned at described more
Multiple points in a grid in the geographic coordinate range of each grid.
In second of implementation of second aspect, the acquisition module obtains described every for applying following formula
The geographic coordinate range for multiple grids that target geographical area described in a map level includes, the geographical coordinate model of each grid
It encloses including minimum longitude, minimum latitude, maximum longitude and maximum latitude:
Minx=x*gridnLonlat
Miny=y*gridnLonlat
Maxx=minx+gridnLonlat
Maxy=miny+gridnLonlat
Wherein, minx, miny, maxx and maxy refer respectively to minimum longitude, minimum latitude, maximum longitude and maximum latitude
Degree, x and y refer respectively to the horizontal subscript and vertical subscript of grid, and the horizontal subscript and vertical subscript are used to indicate each in map level
The coordinate position of grid, gridnLonlat refer to the length of each grid and the wide longitude length actually represented in map level
With latitude length.
In the third implementation of second aspect, the acquisition module, for obtain the target geographical area and
Multiple map levels to be vacuated, the multiple map level to be vacuated include the initial map layer grade.
In the 4th kind of implementation of second aspect, the determining module is used in each map level, if institute
State in multiple points in geographic coordinate range indicated by each grid in map level that there are a beginning display levels
The smallest point of the beginning display level is then determined as described by the point of number of levels that is minimum and being less than the map level
Target point;If existed in multiple points in geographic coordinate range indicated by each grid in the map level more
The point of a number of levels for starting display level minimum and being less than the map level, then most by the multiple beginning display level
The point of highest priority is determined as the target point in small point.
In the 5th kind of implementation of second aspect, the setup module is also used to each map level
The beginning display level of other points in multiple points in addition to the target point is set as empty.
In the 6th kind of implementation of second aspect, described device further includes execution module:
The determining module is also used to determine when newly-increased point and increase point described in the smallest map level of number of levels newly
The affiliated grid of geographical coordinate of position;
Execution module, for geographic coordinate range indicated by the affiliated grid of geographical coordinate using the newly-increased point as
The target geographical area executes the map datum and vacuates method.
In the 7th kind of implementation of second aspect, the determining module is also used to determine level when deleting point
The affiliated grid of geographical coordinate of point is deleted described in the smallest map level of number;
The execution module is also used to geographical coordinate model indicated by the affiliated grid of geographical coordinate for deleting point
It encloses as the target geographical area, executes the map datum and vacuate method.
In the 8th kind of implementation of second aspect, the determining module is also used to determine level when mobile point
The affiliated grid of geographical coordinate before transfer point displacement described in the smallest map level of number is dynamic;
The execution module is also used to geography indicated by the affiliated grid of geographical coordinate by transfer point displacement before dynamic
Coordinate range executes the map datum and vacuates method as the target geographical area;
The determining module is also used to determine the geography after the displacement of transfer point described in the smallest map level of number of levels is dynamic
The affiliated grid of coordinate;
The execution module is also used to geography indicated by the affiliated grid of geographical coordinate by transfer point displacement after dynamic
Coordinate range executes the map datum and vacuates method as the target geographical area.
In the 9th kind of implementation of second aspect, the acquisition module, for obtain the target geographical area and
Multiple map levels to be vacuated, the multiple map level to be vacuated include the initial map layer grade.
The third aspect provides a kind of computer equipment, which is characterized in that including processor, communication interface, memory and
Communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;Memory is used for
Store computer program;Processor realizes side described in first aspect for executing the computer program stored on memory
Method step.
Fourth aspect provides a kind of computer readable storage medium, which is characterized in that the computer-readable storage medium
It is stored with computer program in matter, method and step described in first aspect is realized when the computer program is executed by processor.
Technical solution provided in an embodiment of the present invention has the benefit that
By vacuating to the map layer grade that vacuates of needs, target point in each map level is started into display etc.
Grade is set as the number of levels of the map level, so that the target point is equal to or more than since the map level in number of levels
It is continuously displayed in the map level of the map level, can satisfy the demand that point continuously displays in multiple map levels.And
And as the target point be from multiple points in geographic coordinate range indicated by each grid determine, be for
Displaying target point, has achieved the purpose that vacuate in each grid of each level, allows the point on map uniform
Distribution.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the flow chart that a kind of map datum provided in an embodiment of the present invention vacuates method;
Fig. 2 is the flow chart that a kind of map datum provided in an embodiment of the present invention vacuates method;
Fig. 3 is the schematic diagram for vacuating process of target geographical area provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram for vacuating process of single grid provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of grid provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram for vacuating process of newly-increased point provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram provided in an embodiment of the present invention that vacuate process for deleting point;
Fig. 8 is the schematic diagram for vacuating process of mobile point provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram that a kind of map datum provided in an embodiment of the present invention vacuates device;
Figure 10 is the structural schematic diagram that a kind of map datum provided in an embodiment of the present invention vacuates device;
Figure 11 is a kind of structural schematic diagram of server 1100 provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of computer equipment 1200 provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is the flow chart that a kind of map datum provided in an embodiment of the present invention vacuates method.Referring to Fig. 1, this method packet
It includes:
101, target geographical area and initial map layer grade to be vacuated at least are obtained.
102, in each map level of the initial map layer grade or more, obtain that the target geographical area includes is every
Multiple points in geographic coordinate range indicated by a grid.
103, from multiple points of each map level, the target point of each map level, the target are determined
Point is to be vacuated out for the first time, determines the point shown in being currently located map level.
104, the beginning display level of the target point is set to the number of levels of the affiliated map level of the target point, it should
The beginning display level of target point, which is used to indicate the target point and is shown in number of levels, starts display level equal to or more than this
Map level in.
Method provided in an embodiment of the present invention is vacuated by the map layer grade vacuated to needs, by each map layer
The beginning display level of target point is set as the number of levels of the map level in grade, so that the target point is from the map level
Start, is continuously displayed in the map level that number of levels is equal to or more than the map level, can satisfy point in multiple maps
The demand continuously displayed in level.And since the target point is more in the geographic coordinate range indicated by each grid
It is determined in a point, is in each grid of each level a displaying target point, has achieved the purpose that vacuate, make
The point obtained on map can be uniformly distributed.
Optionally, geography indicated by each grid that the target geographical area includes in each map level of the acquisition is sat
Mark range in multiple points include:
Obtain the geographic coordinate range for multiple grids that the target geographical area includes in each map level;
It is located at from acquisition geographical coordinate in database multiple in the geographic coordinate range of each grid in multiple grid
Point.
Optionally, the geographical coordinate model for multiple grids that the target geographical area includes in the acquisition each map level
It encloses and includes:
Using following formula, obtains the geographical of multiple grids that the target geographical area includes in each map level and sit
Range is marked, the geographic coordinate range of each grid includes minimum longitude, minimum latitude, maximum longitude and maximum latitude:
Minx=x*gridnLonlat
Miny=y*gridnLonlat
Maxx=minx+gridnLonlat
Maxy=miny+gridnLonlat
Wherein, minx, miny, maxx and maxy refer respectively to minimum longitude, minimum latitude, maximum longitude and maximum latitude
Degree, x and y refer respectively to the horizontal subscript and vertical subscript of grid, and the horizontal subscript and vertical subscript are used to indicate each net in map level
The coordinate position of lattice, gridnLonlat refer to the length of each grid in map level and the wide longitude length actually represented with
Latitude length.
Optionally, this at least obtains target geographical area and initial map layer grade to be vacuated includes:
The target geographical area and multiple map levels to be vacuated are obtained, multiple map level to be vacuated includes should
Initial map layer grade.
Optionally, the target point packet of each map level should be determined from multiple points of each map level
It includes:
In each map level, if more in geographic coordinate range indicated by each grid in the map level
There are the point that one starts display level minimum and the number of levels less than the map level in a point, then this is started to show
The smallest point of grade is determined as the target point;
If in multiple points in geographic coordinate range indicated by each grid in the map level, there are multiple
Start display level minimum and be less than the point of the number of levels of the map level, then by multiple the smallest point of beginning display level
The point of highest priority is determined as the target point in position.
Optionally, the level for setting the beginning display level of the target point to the affiliated map level of the target point
After number, this method further include:
By the beginning display level of other points in multiple points of each map level in addition to the target point
It is set as empty.
Optionally, this method further include:
When newly-increased point, determine that this in the smallest map level of number of levels increases the affiliated grid of geographical coordinate of point newly;
Using geographic coordinate range indicated by the affiliated grid of the geographical coordinate for increasing point newly as the target geographical area,
It executes the map datum and vacuates method.
Optionally, this method further include:
When deleting point, the affiliated grid of geographical coordinate of the deletion point in the smallest map level of number of levels is determined;
Using geographic coordinate range indicated by the affiliated grid of the geographical coordinate of the deletion point as the target geographical area,
It executes the map datum and vacuates method.
Optionally, this method further include:
When mobile point, determine belonging to the geographical coordinate before transfer point displacement is dynamic in the smallest map level of number of levels
Grid;
As the target using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the transfer point displacement before dynamic
Region is managed, the map datum is executed and vacuates method;
Determine the affiliated grid of geographical coordinate after transfer point displacement is dynamic in the smallest map level of number of levels;
As the target using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the transfer point displacement after dynamic
Region is managed, the map datum is executed and vacuates method.
Optionally, the single sizing grid in different map layer grades is identical, or, the single grid in different map layer grades is big
Small difference.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
Fig. 2 is the flow chart that a kind of map datum provided in an embodiment of the present invention vacuates method.This method is held by server
Row, referring to fig. 2, this method comprises:
201, target geographical area and initial map layer grade to be vacuated at least are obtained.
Wherein, which is used to indicate the map level for starting to vacuate, the initial map layer grade or more
Each map level is map level to be vacuated.The target geographical area refers to the actual geographic space region that needs vacuate
Domain, the target geographical area can carry out frame choosing by user on map, can also be directly inputted by user, can also be by user
It is selected in multiple geographic areas that map provides, wherein the user refers to the correlation with map data management permission
Personnel, it is not limited in the embodiment of the present invention.The corresponding map scale of each map level, for example, map one is shared
18 scale bars, as 1:2 hundred million (i.e. on map 1 centimetre represent on the spot 2000 kilometers), 1:1 hundred million, 1:5000 ten thousand ..., 1:2000
Deng, then a total of 18 map levels of the map, respectively the 1st grade of map, the 2nd grade of map ..., the 18th grade of map.Such as may be used
It, will be under 1:2000 scale bar using by the map under hundred million scale bar of 1:2, as the 1st grade of map, the number of levels of the 1st grade of map is 1
Map as the 18th grade of map, the number of levels of the 18th grade of map is 18, letter shown by the higher map level of number of levels
It ceases more detailed.
In the embodiment of the present invention, server can receive vacuate instruction when, execute the step 201, this vacuates instruction
The target geographical area and initial map layer grade to be vacuated at least are carried, server can be vacuated from this at least to be obtained in instruction
To the target geographical area and the initial map layer grade.For example, the map, which can provide, vacuates operation indicating, this vacuates operation and mentions
Show and vacuate instruction for how guidance user step by step to issue, so that trigger the server executes vacuates process accordingly.User can
To vacuate operation indicating according to this, select the target geographical area in map upper ledge, and the initial map layer grade be set, such as input or
Select the initial map layer grade.
In a kind of possible implementation, this, which vacuates instruction, can carry the target geographical area and multiple ground to be vacuated
Figure layer grade, multiple map level to be vacuated include the initial map layer grade, and correspondingly, server at least obtains target geographic
Region and initial map layer grade to be vacuated, which may include: server, to be vacuated from this and obtains the target geographical area and more in instruction
A map level to be vacuated.
In alternatively possible implementation, this, which vacuates instruction, can also only carry the target geographical area, server from
This is vacuated get the target geographical area in instruction after, according to the actual coordinate range of the target geographical area and can refer to
Determine algorithm, the multiple map layers that can completely show the target geographical area are filtered out from all map levels of the map
Grade, using multiple map level as multiple map level to be vacuated, it is not limited in the embodiment of the present invention.
202, in each map level of the initial map layer grade or more, obtain that the target geographical area includes is every
Multiple points in geographic coordinate range indicated by a grid.
It may include the identical multiple grids of size, i.e., different map layers in the embodiment of the present invention, in each map level
Single sizing grid in grade is identical, and the grid that the bigger map level of number of levels includes is more.Certainly, in different map layer grades
Single sizing grid can also be different.
The step 202 may comprise steps of a to b:
A, the geographic coordinate range for multiple grids that the target geographical area includes in each map level is obtained.
In step a, server can apply following formula, obtain the target geographical area in each map level
The geographic coordinate range for the multiple grids for including, the geographic coordinate range of each grid include minimum longitude, minimum latitude, maximum
Longitude and maximum latitude.By taking map level is n-th grade of map as an example, the geographic coordinate range of each grid can in the map level
To be calculated by the following formula to obtain:
Minx=x*gridnLonlat
Miny=y*gridnLonlat
Maxx=minx+gridnLonlat
Maxy=miny+gridnLonlat
Wherein, minx, miny, maxx and maxy refer respectively to minimum longitude, minimum latitude, maximum longitude and maximum latitude
Degree, x and y refer respectively to the horizontal subscript and vertical subscript of grid, and the horizontal subscript and vertical subscript are used to indicate each net in map level
The coordinate position of lattice, gridnLonlat refer to the length of each grid in n-th grade of map and the wide longitude length actually represented with
Latitude length.
B, it is located at from acquisition geographical coordinate in database more in the geographic coordinate range of each grid in multiple grid
A point.
In the embodiment of the present invention, for each point existing on map, server is stored with the point in the database
Geographical coordinate, start display level and priority etc..Wherein, geographical coordinate can refer to the latitude and longitude coordinates of the point;It opens
Beginning display level can be expressed as zoom value, which is the site setting before this is vacuated by server, at this
In vacuating zoom value will be reset for the point;Priority can be calculated according to assigned priority algorithm.
In step b, in each map level, for each grid that target geographical area includes, server can
According to the geographical coordinate of points all in database, to obtain the geographical seat that geographical coordinate is located at the grid from all points
Mark multiple points in range.
Above-mentioned steps a to step b is actually to be directed to each map level, for the target geographic area in the map level
Each grid that domain includes, server obtain the process of multiple points in geographic coordinate range indicated by the grid.
It should be noted that the step 202 is to obtain the target geographical area for server in step 201 and this is first
The case where beginning map level, and the target geographical area and multiple map layers to be vacuated are obtained for server in step 201
The case where grade, server can be executed in the step 202 and be obtained in each map level of multiple map level to be vacuated
The step of taking multiple points and subsequent step.
203, from multiple points of each map level, the target point of each map level, the target are determined
Point is to be vacuated out for the first time, determines the point shown in being currently located map level.
In the embodiment of the present invention, server determines that the process of the target point of each map level may include: each
In map level, if there are one in multiple points in geographic coordinate range indicated by each grid in the map level
A zoom value is minimum and is less than the point of the number of levels of the map level, then the smallest point of zoom value is determined as the target
Point;If in multiple points in geographic coordinate range indicated by each grid in the map level, there are multiple zoom
Value is minimum and is less than the point of the number of levels of the map level, then by highest priority in multiple the smallest point of zoom value
Point is determined as the target point.
In each map level, for each grid that target geographical area includes, server is obtained by step 202
After multiple points in geographic coordinate range indicated by the grid, multiple point can be carried out by the step 203
The comparison of zoom value determines target point, if can not determine according to zoom value, can further compare the preferential of point
Grade determines target point.
To have point A (zoom value is a), point in geographic coordinate range indicated by some grid in the map level
For position B (zoom value is b), point C (zoom value is c) and point D (zoom value is d), server can compare the point
A, the size of the zoom value of point B, point C and point D, that is, compare the size of a, b, c and d, if a < b < c < d and a <
Point A is then determined as target point by the number of levels of the map level;If the layer of a=b < c < d and a < the map level
Series then compares the priority of point A and point B, if the priority of the priority > B of A, is determined as target for point A
Point randomly chooses a point as target point if priority=B priority of A from A and B.
The step 203 is actually to be directed to each map level, includes for the target geographical area in the map level
Each grid, server to multiple points in geographic coordinate range indicated by the grid carry out zoom value or zoom value with
And the comparison of priority, to determine the process of target point from multiple point.By being somebody's turn to do in each map level of determination
The target point for each grid that target geographical area includes, server can be by target geographical area packets in each map level
The target point of all grids contained is retrieved as the target point of each map level.
204, the beginning display level of the target point is set to the number of levels of the affiliated map level of the target point, and
Set empty for the beginning display level of other points in multiple points of each map level in addition to the target point,
The beginning display level of the target point be used to indicate the target point be shown in number of levels equal to or more than this start display etc.
In the map level of grade.
It, can be by this after server obtains the target point of each map level by step 203 in the embodiment of the present invention
The zoom value of a little target points is set as the number of levels of the map level, which is equal to or greatly in number of levels
It is continuously displayed in the map level of the zoom value.Server, can also be by it while the zoom value of target point is arranged
The zoom value of his point is set as empty, can guarantee at most to show a point in each grid in this way, reach the mesh vacuated
, the point on map is uniformly distributed.It certainly, can also be to zoom value in subsequent level during vacuating
It is set to the zoom value of empty point assignment again, so that the point can be shown in subsequent level.
The step 204 is actually to be directed to each map level, includes for the target geographical area in the map level
Each grid, server from multiple points in geographic coordinate range indicated by the grid determine target point after, can
The number of levels of the map level is set as with the zoom value by the target point.Server is by resetting each map level
In the target geographical area all grids for including target point zoom value, and by each grid in addition to target point
The zoom values of other points be set as empty so that at most showing a point in each grid, vacuate the same of purpose reaching
When, the continuity for meeting point shows demand.
Above-mentioned steps 201 to step 204 is that target geographical area vacuates process, in fact, server can using by
The mode that vacuates of grade vacuates process and vacuates process complete the target geographical area according to certain.It is this referring to Fig. 3, Fig. 3
The schematic diagram for vacuating process for the target geographical area that inventive embodiments provide, with obtaining target for server in step 202
Manage region and initial map layer grade to be vacuated, server can to each map level of the initial map layer grade or more,
It is vacuated step by step according to map level, server vacuates that process is identical to each map level, the pumping of each map level
Dilute process includes step 202 to step 204.That is, server executes step 202 to step 204 for map level is started, holding
It has gone after step 204, then has executed step 202 to step 204 for next map level, and so on, until to terminating ground
Figure layer grade executes the step 202 to step 204.Wherein, start map level (startZoom) and terminate map level
(endZoom) can be arranged according to the initial grading row of map layer, for example, it can be the initial map layer that this, which starts map level,
Grade, this terminates the maximum map level of all map levels middle layer series that map level can be the map.
Target geographical area and multiple map levels to be vacuated are obtained for server in step 202, and server can be with
It is shown in Fig. 3 to each map layer grade progress in multiple map level to be vacuated to vacuate process.In this case, starting ground
Figure layer grade can be multiple series the smallest map level in map level middle layer to be vacuated, this, which terminates map level, to be
Multiple series maximum map level in map level middle layer to be vacuated.For example, multiple map level to be vacuated is the 5th
Grade map, the 6th grade of map, the 7th grade of map and the 8th grade of map, then it can be the 5th grade of map, end layer that this, which starts map level,
Grade can be the 8th grade of map.Start the cycle over that (zoom=startZoom in such as Fig. 3, zoom, which refer to, to be worked as from map level is started
Before the map level that is recycled to), start after map level vacuated, then carry out next map level (zoom=in such as Fig. 3
Vacuating zoom++=startZoom+1), terminates map level (zoom=endZoom in such as Fig. 3) up to being recycled to, i.e.,
Complete target geographical area vacuates process.
Wherein, for previous cycle to map level in the target geographical area multiple grids for including, server can
To be vacuated one by one to multiple grid, server to each grid to vacuate process identical.Referring to fig. 4, Fig. 4 is the present invention
The schematic diagram for vacuating process for the single grid that embodiment provides, the process that vacuates of each grid may include: according to the grid
Indicated geographic coordinate range obtains geographical coordinate and is located at the point in geographic coordinate range indicated by the grid, if
Not getting point then terminates to vacuate process, if getting point, it is minimum and small that zoom value is obtained from all points
In the point of the number of levels of the affiliated map level of the grid.If obtaining unique point, (there are a zoom in i.e. all points
Value is minimum and is less than the point of the number of levels of the affiliated map level of the grid), then unique point is determined as target point, and
It sets the zoom value of the target point to the number of levels of the affiliated map level of the grid, sets the zoom value of other points to
It is empty;If it is (minimum and less than the affiliated map level of the grid there are multiple zoom values in i.e. all points to obtain multiple points
The point of number of levels), then unique point (point of highest priority in multiple point) is obtained according to priority, this is unique
Point is determined as the target point, and the zoom value of the target point is then arranged.Referring to Fig. 3, server is held for grid is started
Row single grid shown in Fig. 4 vacuate process after, then for what next grid executed single grid shown in Fig. 4 vacuate stream
Journey, and so on, until vacuating process to terminate that grid executed single grid shown in Fig. 4.Wherein, it is (horizontal to start grid
Under be designated as startX, it is vertical under be designated as startY) and terminate grid (endX is designated as under horizontal, indulge under be designated as endY) can be according to each
The subscript of grid is arranged, and the subscript of grid can be according to map level, target geographical area and the net that previous cycle arrives
Lattice sizes obtains.In a kind of possible implementation, starting grid can be the multiple nets for the map level that previous cycle arrives
Horizontal subscript and the smallest grid of vertical subscript in lattice, terminate grid can for previous cycle to map level multiple grids in
Horizontal subscript and the maximum grid of vertical subscript.(x=startX in such as Fig. 4, y=startY, x are started the cycle over from grid is started
Refer to the horizontal subscript for the grid that previous cycle arrives), after beginning grid has vacuated, then carry out next grid (x=in such as Fig. 4
StartX, y=y++=startY+1) vacuate, until be recycled to terminate grid (x=endX in such as Fig. 4, y=endY),
Complete previous cycle to map level vacuate process.
Each point is arranged according to multiple maps level at target geographical area in the embodiment of the present invention step by step
Zoom value, namely each point of setting are shown since which map level, have reached the continuity for vacuating display.Referring to Fig. 5,
Fig. 5 is a kind of schematic diagram of grid provided in an embodiment of the present invention, is with the 8th grade of map, the 9th grade of map and the 10th grade of map
Example, the process that the zoom value of point is arranged in server step by step can be such that
Fig. 5 (a) is one of grid of the 8th grade of map, and the geographical coordinate of this four points of A, B, C, D is in the net
In the geographic coordinate range of lattice, it is assumed that server determines that A is target point, then 8 can be set by its zoom value, by B, C and D
Zoom value be set as empty.(dotted line is indicated in the corresponding grid of next stage map)
Fig. 5 (b) is one of grid of the 9th grade of map, and in the 9th grade of map, A inherits it in the 8th grade of map level
The zoom value of middle setting.By 5 (a) it is found that in the 9th grade of map, A and B are still in a grid, in order to guarantee each level
Each grid in only show a point, the zoom value of B can be set to empty.And in the 9th grade of map, C and D are respective
Grid in be unique, therefore set 9 for the zoom value of C and D.
Fig. 5 (c) is one of grid of the 10th grade of map, and in the 10th grade of map, A continues to inherit it on the 8th grade of ground
The zoom value being arranged in figure layer grade is constant, and it is constant that C point and D point inherit the zoom value that it is arranged in the 9th grade of map level.By 5
(b) it is found that it is unique that B is in its grid, therefore 10 are set by the zoom value of B.
By it is obtained by the above method as a result, the zoom value of A be 8, the C and zoom value of D is 9, the zoom value of B is 10,
Namely A is shown in the 8th grade of map, A, C, D are shown in the 9th grade of map, and A, B, C, D are shown in the 10th grade of map.Pass through
This mode has reached the continuity for vacuating display, and each grid of each grade at most shows a point, has reached and has vacuated
Purpose, the point on map is uniformly distributed.
It should be noted that vacuating method the embodiment of the invention provides target geographical area, it is contemplated that in map
In actual use, it might have and increase point newly in map, delete point or the demand of mobile point, such as businessman newly opens
Need to delete the field in the shop after needing the scene for increasing the shop newly in map, businessman to close shop behind shop in map
The scene etc. in the mobile shop in map is needed after scape or businessman's migration shop.For this purpose, the embodiment of the invention also provides
Method is vacuated when vacuating method and mobile point when vacuating method, deleting point when newly-increased point.
It is the schematic diagram for vacuating process of newly-increased point provided in an embodiment of the present invention referring to Fig. 6, Fig. 6, when increasing point newly
The method that vacuates may include: to determine that this in the smallest map level of number of levels increases the geographical of point newly and sit when newly-increased point
Grid belonging to marking;Using geographic coordinate range indicated by the affiliated grid of the geographical coordinate for increasing point newly as the target geographic area
Domain executes the map datum and vacuates method.
Wherein, the smallest map level of number of levels refers to the smallest map layer of all map levels middle layer series of map
Grade, such as a total of 18 map levels of map, respectively the 1st grade of map, the 2nd grade of map ..., the 18th grade of map, then the layer
The smallest map level of series is the 1st grade of map.
The newly-increased point first order map influences be the newly-increased point the affiliated grid of geographical coordinate, grid meaning
Other map levels locating for the geographic coordinate range shown are affected.Therefore, server can increase this newly point
The geographic coordinate range of the affiliated grid of geographical coordinate vacuates method as target geographical area, performance objective geographic area.Its
In, when determining the target point of each map level, server requires will be in the newly-increased point and each map level
Other points carry out the comparison of zoom value and priority, reset the zoom value of each point.
It is the schematic diagram provided in an embodiment of the present invention that vacuate process for deleting point referring to Fig. 7, Fig. 7, when deleting point
The method that vacuates may include: to determine that the geographical of the deletion point in the smallest map level of number of levels sits when deleting point
Grid belonging to marking;Using geographic coordinate range indicated by the affiliated grid of the geographical coordinate of the deletion point as the target geographic area
Domain executes the map datum and vacuates method.
The deletion point first order map influence be the deletion point the affiliated grid of geographical coordinate, the grid is signified
Other map levels locating for the geographic coordinate range shown are affected.Therefore, server can be by the deletion point
The geographic coordinate range of the affiliated grid of geographical coordinate vacuates method as target geographical area, performance objective geographic area.Its
In, when determining the target point of each map level, server requires not deleting each in each map level a little
Position carry out zoom value and and priority comparison, reset these zoom values for not deleting point.
It is the schematic diagram for vacuating process of mobile point provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, when moving point
The process that vacuates may include: when mobile point, before determining that transfer point displacement is dynamic in the smallest map level of number of levels
The affiliated grid of geographical coordinate;Using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the transfer point displacement before dynamic as
The target geographical area executes the map datum and vacuates method;Determine that the transfer point is displaced in the smallest map level of number of levels
The affiliated grid of geographical coordinate after dynamic;By geographical coordinate model indicated by the affiliated grid of geographical coordinate of the transfer point displacement after dynamic
It encloses as the target geographical area, executes the map datum and vacuate method.
When the movement point vacuate process be actually delete point vacuate process and newly-increased point vacuate process
Merging, so it will not be repeated.
The embodiment of the invention provides completely vacuate process: the pumping for vacuating process, newly-increased point of target geographical area
Dilute process, delete point vacuate process and mobile point vacuate process.The map number provided through the embodiment of the present invention
It can be each site setting zoom value according to vacuating process, so that each point is according to its zoom value, in multiple map levels
It continuously displays, meets the continuity demand for vacuating display, and map can be carried out based on the zoom value to each site setting
It shows.Such as server, after diagram data is vacuated over the ground, the point after each vacuating on map has zoom value.Server
WMS (Web map service, web map service) map level can be issued, the pattern logic of WMS map level is set.
When receiving the request of the displaying to some map level of the map, zoom value can be less than or equal to current map level
All points of number of levels be shown in the map level, this completes the dynamic requests displayings for vacuating data.
Method provided in an embodiment of the present invention is vacuated by the map layer grade vacuated to needs, by each map layer
The zoom value of target point is set as the number of levels of the map level in grade, so that the target point is since the map level,
It is continuously displayed in the map level that number of levels is equal to or more than the map level, can satisfy point in multiple map levels
The demand continuously displayed.And since the target point is multiple points in the geographic coordinate range indicated by each grid
Middle determination, it is in each grid of each level a displaying target point, has achieved the purpose that vacuate, so that map
On point can be uniformly distributed.
Fig. 9 is the structural schematic diagram that a kind of map datum provided in an embodiment of the present invention vacuates device.Referring to Fig. 9, the dress
It sets and includes:
Module 901 is obtained, at least obtaining target geographical area and initial map layer grade to be vacuated;
The acquisition module 901 is also used in each map level of the initial map layer grade or more, obtains the target
Multiple points in geographic coordinate range indicated by each grid that geographic area includes;
Determining module 902, for determining the target of each map level from multiple points of each map level
Point, the target point are to be vacuated out for the first time, determine the point shown in being currently located map level;
Setup module 903, for setting the affiliated map layer of target point for the beginning display level of the target point
The number of levels of grade, the beginning display level of the target point are used to indicate the target point and are shown in number of levels equal to or more than this
In the map level for starting display level.
Optionally, the acquisition module 901, it is multiple for obtain that the target geographical area in each map level includes
The geographic coordinate range of grid;It is located at the geographical coordinate model of each grid in multiple grid from acquisition geographical coordinate in database
Enclose interior multiple points.
Optionally, the acquisition module 901 obtains the target geographic in each map level for applying following formula
The geographic coordinate range for multiple grids that region includes, the geographic coordinate range of each grid include minimum longitude, minimum latitude,
Maximum longitude and maximum latitude:
Minx=x*gridnLonlat
Miny=y*gridnLonlat
Maxx=minx+gridnLonlat
Maxy=miny+gridnLonlat
Wherein, minx, miny, maxx and maxy refer respectively to minimum longitude, minimum latitude, maximum longitude and maximum latitude
Degree, x and y refer respectively to the horizontal subscript and vertical subscript of grid, and the horizontal subscript and vertical subscript are used to indicate each net in map level
The coordinate position of lattice, gridnLonlat refer to the length of each grid in map level and the wide longitude length actually represented with
Latitude length.
Optionally, the acquisition module 901 should for obtaining the target geographical area and multiple map levels to be vacuated
Multiple map levels to be vacuated include the initial map layer grade.
Optionally, the determining module 902 is used in each map level, if each grid in the map level
Start display level minimum there are one in multiple points in indicated geographic coordinate range and is less than the map level
This is then started the smallest point of display level and is determined as the target point by the point of number of levels;If in the map level
There are multiple beginning display levels minimums and less than the ground in multiple points in geographic coordinate range indicated by each grid
The point of highest priority in multiple beginning the smallest point of display level is then determined as by the point of the number of levels of figure layer grade
The target point.
Optionally, the setup module 903, be also used to will in multiple points of each map level except the target point with
The beginning display level of other outer points is set as empty.
Optionally, referring to Figure 10, which further includes execution module 904:
The determining module 902 is also used to determine that this in the smallest map level of number of levels increases point newly when newly-increased point
The affiliated grid of geographical coordinate;
Execution module 904, for making geographic coordinate range indicated by the affiliated grid of geographical coordinate of the newly-increased point
For the target geographical area, executes the map datum and vacuate method.
Optionally, the determining module 902 is also used to when deleting point, and determining should in the smallest map level of number of levels
Delete the affiliated grid of geographical coordinate of point;
The execution module 904 is also used to geographical coordinate model indicated by the affiliated grid of the geographical coordinate of the deletion point
It encloses as the target geographical area, executes the map datum and vacuate method.
Optionally, the determining module 902 is also used to when mobile point, and determining should in the smallest map level of number of levels
The affiliated grid of geographical coordinate before transfer point displacement is dynamic;
The execution module 904 is also used to geography indicated by the affiliated grid of geographical coordinate by transfer point displacement before dynamic
Coordinate range executes the map datum and vacuates method as the target geographical area;
The determining module 902 is also used to determine the geography after transfer point displacement is dynamic in the smallest map level of number of levels
The affiliated grid of coordinate;
The execution module 904 is also used to geography indicated by the affiliated grid of geographical coordinate by transfer point displacement after dynamic
Coordinate range executes the map datum and vacuates method as the target geographical area.
Optionally, the single sizing grid in different map layer grades is identical, or, the single grid in different map layer grades is big
Small difference.
In the embodiment of the present invention, vacuated by the map layer grade vacuated to needs, by target in each map level
The beginning display level of point is set as the number of levels of the map level, so that the target point is since the map level,
Number of levels is equal to or more than continuously display in the map level of the map level, can satisfy point and connects in multiple map levels
The demand of continuous display.And since the target point is from multiple points in geographic coordinate range indicated by each grid
Determining, it is in each grid of each level a displaying target point, has achieved the purpose that vacuate, so that on map
Point can be uniformly distributed.
It should be understood that map datum provided by the above embodiment vacuates device when map datum vacuates, only more than
The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference
Functional module complete, i.e., the internal structure of equipment is divided into different functional modules, with complete it is described above whole or
Person's partial function.In addition, map datum provided by the above embodiment vacuates device embodiment of the method is vacuated with map datum belong to
Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Figure 11 is a kind of structural schematic diagram of server 1100 provided in an embodiment of the present invention.Referring to Fig.1 1, server
1100 include processing component 1122, further comprises one or more processors, and deposit as representated by memory 1132
Memory resource, can be by the instruction of the execution of processing component 1122, such as application program for storing.It is stored in memory 1132
Application program may include it is one or more each correspond to one group of instruction module.In addition, processing component 1122
It is configured as executing instruction, vacuates method to execute above-mentioned map datum.
Server 1100 can also include the power management that a power supply module 1126 is configured as execute server 1100,
One wired or wireless network interface 1150 is configured as server 1100 being connected to network and an input and output (I/O)
Interface 1158.Server 1100 can be operated based on the operating system for being stored in memory 1132, such as Windows
ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr it is similar.
Figure 12 is a kind of structural schematic diagram for computer equipment 1200 that the embodiment of the present disclosure provides.Referring to Figure 12, the meter
Calculating machine equipment 1200 includes processor, communication interface, memory and communication bus, can also include input/output interface and display
Equipment, wherein processor, memory, input/output interface, display equipment and communication interface are completed mutual by communication bus
Communication.The memory is stored with computer program, and the processor is real for executing the computer program stored on memory
Map datum in existing above-mentioned Fig. 2 embodiment vacuates method.
Communication bus is to connect the circuit of described element and realize transmission between these elements.For example, processing
Device receives order from other elements by communication bus, decrypts the order received, according to the order of decryption execute calculate or
Data processing.Memory may include program module, such as kernel (kernel), middleware (middleware), application program
Programming interface (Application Programming Interface, API) and application.The program module can be software,
Firmware or hardware or in which at least two compositions.Input/output interface forwarding user (such as is incuded by input-output equipment
Device, keyboard, touch screen) input order or data.Display equipment shows various information to user.Communication interface is by the computer
Equipment 1200 is attached with other network equipments, user equipment, network.For example, communication interface can be by wired or wireless
Network is connected to be connected to external other network equipments or user equipment.Wireless communication may include following at least one:
Wireless Fidelity (Wireless Fidelity, WiFi), bluetooth (Bluetooth, BT), the short distance wireless communication technology (Near
Field Communication, NFC), GPS (Global Positioning System, GPS) and bee
Nest communicates (cellular communication) (for example, Long Term Evolution (Long Term Evolution, LTE), long
The subsequent evolution (Long Term Evolution-Advanced, LTE-A) of phase evolution technology, CDMA (Code
Division Multiple Access, CDMA), wideband code division multiple access (Wideband CDMA, WCDMA), universal mobile communications
System (Universal Mobile Telecommunication System, UMTS), wireless broadband Internet access (Wireless
Broadband, WiBro) and global system for mobile communications (Global System for Mobile communication,
GSM).Wire communication may include following at least one: universal serial bus (Universal Serial Bus, USB), high definition
Clear degree multimedia interface (High Definition Multimedia Interface, HDMI), asynchronous transmission standard interface
(Recommended Standard 232, RS-232) and Plain Old Telephone Service (Plain Old Telephone
Service, POTS).Network can be telecommunication network and communication network.Communication network can be computer network, internet, object
Networking, telephone network.Computer equipment 1200 can connect network, computer equipment 1200 and other networks by communication interface
Equipment communication agreement used can be applied, application programming interface (Application Programming
Interface, API), middleware, kernel and communication interface at least one support.
In the exemplary embodiment, a kind of computer readable storage medium for being stored with computer program, example are additionally provided
It is such as stored with the memory of computer program, above-mentioned computer program realizes the ground in above-described embodiment 2 when being executed by processor
Diagram data vacuates method.For example, the computer readable storage medium can be read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), CD-ROM (Compact Disc Read-Only
Memory, CD-ROM), tape, floppy disk and optical data storage devices etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (22)
1. a kind of map datum vacuates method, which is characterized in that the described method includes:
At least obtain target geographical area and initial map layer grade to be vacuated;
In each map level of the initial map layer grade or more, each net that the target geographical area includes is obtained
Multiple points in geographic coordinate range indicated by lattice;
From multiple points of each map level, the target point of each map level, the target point are determined
Position determines the point shown in being currently located map level to be vacuated out for the first time;
Set the beginning display level of the target point in the number of levels of the affiliated map level of the target point, the mesh
The beginning display level of punctuation bit be used to indicate the target point be shown in number of levels be equal to or more than it is described start display etc.
In the map level of grade.
2. the method according to claim 1, wherein described obtain target geographic area described in each map level
Multiple points in geographic coordinate range indicated by each grid that domain includes include:
Obtain the geographic coordinate range for multiple grids that target geographical area described in each map level includes;
It is located at multiple points in the multiple grid in the geographic coordinate range of each grid from geographical coordinate is obtained in database
Position.
3. according to the method described in claim 2, it is characterized in that, it is described with obtaining target described in each map level
The geographic coordinate range of reason region multiple grids for including includes:
Using following formula, obtains the geographical of multiple grids that target geographical area described in each map level includes and sit
Range is marked, the geographic coordinate range of each grid includes minimum longitude, minimum latitude, maximum longitude and maximum latitude:
Minx=x*gridnLonlat
Miny=y*gridnLonlat
Maxx=minx+gridnLonlat
Maxy=miny+gridnLonlat
Wherein, minx, miny, maxx and maxy refer respectively to minimum longitude, minimum latitude, maximum longitude and maximum latitude, x and
Y refers respectively to the horizontal subscript and vertical subscript of grid, and the horizontal subscript and vertical subscript are used to indicate each grid in map level
Coordinate position, gridnLonlat refer to the length of each grid and the wide longitude length actually represented and latitude in map level
Length.
4. the method according to claim 1, wherein it is described at least obtain target geographical area and it is to be vacuated just
Beginning map level includes:
The target geographical area and multiple map levels to be vacuated are obtained, the multiple map level to be vacuated includes institute
State initial map layer grade.
5. the method according to claim 1, wherein described from multiple points of each map level,
The target point for determining each map level includes:
In each map level, if multiple in geographic coordinate range indicated by each grid in the map level
There are the point that one starts display level minimum and the number of levels less than the map level in point, then start to show by described
Show that the smallest point of grade is determined as the target point;
If opened in multiple points in geographic coordinate range indicated by each grid in the map level there are multiple
Beginning display level is minimum and is less than the point of the number of levels of the map level, then the multiple beginning display level is the smallest
The point of highest priority is determined as the target point in point.
6. the method according to claim 1, wherein the beginning display level by the target point is arranged
After number of levels for the affiliated map level of the target point, the method also includes:
By the beginning display level of other points in multiple points of each map level in addition to the target point
It is set as empty.
7. the method according to claim 1, wherein the method also includes:
When newly-increased point, the affiliated grid of geographical coordinate for increasing point described in the smallest map level of number of levels newly is determined;
Using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the newly-increased point as the target geographical area,
It executes the map datum and vacuates method.
8. the method according to claim 1, wherein the method also includes:
When deleting point, the affiliated grid of geographical coordinate that point is deleted described in the smallest map level of number of levels is determined;
Using geographic coordinate range indicated by the affiliated grid of geographical coordinate for deleting point as the target geographical area,
It executes the map datum and vacuates method.
9. the method according to claim 1, wherein the method also includes:
When mobile point, the affiliated net of geographical coordinate before the displacement of transfer point described in the smallest map level of number of levels is dynamic is determined
Lattice;
As the target using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the transfer point displacement before dynamic
Region is managed, the map datum is executed and vacuates method;
Determine the affiliated grid of geographical coordinate after the displacement of transfer point described in the smallest map level of number of levels is dynamic;
As the target using geographic coordinate range indicated by the affiliated grid of geographical coordinate of the transfer point displacement after dynamic
Region is managed, the map datum is executed and vacuates method.
10. the method according to claim 1, wherein the single sizing grid in different map layer grade is identical,
Or, the single sizing grid in different map layer grades is different.
11. a kind of map datum vacuates device, which is characterized in that described device includes:
Module is obtained, at least obtaining target geographical area and initial map layer grade to be vacuated;
The acquisition module is also used in each map level of the initial map layer grade or more, obtains the target
Multiple points in geographic coordinate range indicated by each grid that geographic area includes;
Determining module, for determining the target point of each map level from multiple points of each map level
Position, the target point are to be vacuated out for the first time, determine the point shown in being currently located map level;
Setup module, for setting the affiliated map level of the target point for the beginning display level of the target point
Number of levels, the beginning display level of the target point are used to indicate the target point and are shown in number of levels equal to or more than institute
It states in the map level for starting display level.
12. device according to claim 11, which is characterized in that the acquisition module, for obtaining each map
The geographic coordinate range for multiple grids that target geographical area described in level includes;Geographical coordinate is obtained from database to be located at
Multiple points in the multiple grid in the geographic coordinate range of each grid.
13. device according to claim 12, which is characterized in that the acquisition module is obtained for applying following formula
The geographic coordinate range for multiple grids that target geographical area described in each map level includes, the geography of each grid
Coordinate range includes minimum longitude, minimum latitude, maximum longitude and maximum latitude:
Minx=x*gridnLonlat
Miny=y*gridnLonlat
Maxx=minx+gridnLonlat
Maxy=miny+gridnLonlat
Wherein, minx, miny, maxx and maxy refer respectively to minimum longitude, minimum latitude, maximum longitude and maximum latitude, x and
Y refers respectively to the horizontal subscript and vertical subscript of grid, and the horizontal subscript and vertical subscript are used to indicate each grid in map level
Coordinate position, gridnLonlat refer to the length of each grid and the wide longitude length actually represented and latitude in map level
Length.
14. device according to claim 11, which is characterized in that the acquisition module, for obtaining the target geographic
Region and multiple map levels to be vacuated, the multiple map level to be vacuated include the initial map layer grade.
15. device according to claim 11, which is characterized in that the determining module is used in each map level,
To start to show if there are one in multiple points in geographic coordinate range indicated by each grid in the map level
Show that grade is minimum and is less than the point of the number of levels of the map level, then determines the smallest point of the beginning display level
For the target point;If in multiple points in geographic coordinate range indicated by each grid in the map level
There are multiple beginning display levels minimums and the points of the number of levels less than the map level, then start to show by the multiple
The point of highest priority is determined as the target point in the smallest point of grade.
16. device according to claim 11, which is characterized in that the setup module is also used to each map
The beginning display level of other points in multiple points of level in addition to the target point is set as empty.
17. device according to claim 11, which is characterized in that described device further includes execution module:
The determining module is also used to determine when newly-increased point and increase point described in the smallest map level of number of levels newly
The affiliated grid of geographical coordinate;
Execution module, for geographic coordinate range indicated by the affiliated grid of geographical coordinate using the newly-increased point as described in
Target geographical area executes the map datum and vacuates method.
18. device according to claim 11, which is characterized in that the determining module is also used to when deleting point, really
The affiliated grid of geographical coordinate of point is deleted described in the smallest map level of given layer series;The execution module, be also used to by
Geographic coordinate range indicated by the affiliated grid of geographical coordinate for deleting point executes institute as the target geographical area
It states map datum and vacuates method.
19. device according to claim 11, which is characterized in that the determining module is also used to when mobile point, really
The affiliated grid of geographical coordinate before the displacement of transfer point described in the smallest map level of given layer series is dynamic;
The execution module is also used to geographical coordinate indicated by the affiliated grid of geographical coordinate by transfer point displacement before dynamic
Range executes the map datum and vacuates method as the target geographical area;
The determining module is also used to determine the geographical coordinate after the displacement of transfer point described in the smallest map level of number of levels is dynamic
Affiliated grid;
The execution module is also used to geographical coordinate indicated by the affiliated grid of geographical coordinate by transfer point displacement after dynamic
Range executes the map datum and vacuates method as the target geographical area.
20. device according to claim 11, which is characterized in that the single sizing grid in different map layer grades is identical,
Or, the single sizing grid in different map layer grades is different.
21. a kind of computer equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein place
Device, communication interface are managed, memory completes mutual communication by communication bus;Memory, for storing computer program;Place
Device is managed, for executing the computer program stored on memory, realizes the described in any item method and steps of claim 1-10.
22. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-10 described in any item method and steps when the computer program is executed by processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2017104253050 | 2017-06-07 | ||
CN201710425305 | 2017-06-07 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109002451A true CN109002451A (en) | 2018-12-14 |
CN109002451B CN109002451B (en) | 2021-01-12 |
Family
ID=64572851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710693584.9A Active CN109002451B (en) | 2017-06-07 | 2017-08-14 | Map data thinning method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109002451B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110427583A (en) * | 2019-06-21 | 2019-11-08 | 浙江浙大中控信息技术有限公司 | The method for vacuating drafting applied to mobile terminal map magnanimity line |
CN110610544A (en) * | 2019-08-13 | 2019-12-24 | 北京中色地科测绘有限公司 | Drilling data thinning method and device, equipment and storage medium |
CN110610539A (en) * | 2019-08-13 | 2019-12-24 | 北京中色地科测绘有限公司 | Stratum curved surface construction method, device, equipment and storage medium |
CN110990502A (en) * | 2019-11-12 | 2020-04-10 | 哈尔滨工程大学 | Method for simplifying data of electronic chart position points |
CN111813875A (en) * | 2019-04-11 | 2020-10-23 | 浙江宇视科技有限公司 | Map point location information processing method and device and server |
CN111858827A (en) * | 2020-07-31 | 2020-10-30 | 成都新潮传媒集团有限公司 | Map point position rarefying display method and device and computer equipment |
CN111931072A (en) * | 2020-10-09 | 2020-11-13 | 深圳市天维大数据技术有限公司 | Point location recommendation method and device, terminal equipment and storage medium |
WO2021057663A1 (en) * | 2019-09-26 | 2021-04-01 | 深圳前海微众银行股份有限公司 | Map overlay thinning method, device and apparatus, and computer storage medium |
CN113806413A (en) * | 2021-11-22 | 2021-12-17 | 江苏货斯基网络科技有限公司 | Trajectory screening and classifying method and device, computer equipment and storage medium |
CN115794937A (en) * | 2023-01-31 | 2023-03-14 | 中国电子科技集团公司第二十八研究所 | Global grid-based massive moving target layered display method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130321466A1 (en) * | 2012-06-05 | 2013-12-05 | Kenneth L. Kocienda | Determining to Display Designations of Points of Interest Within a Map View |
CN105550344A (en) * | 2015-12-24 | 2016-05-04 | 中科宇图科技股份有限公司 | Grid and weight relation-based vector point element thinning method |
CN106610976A (en) * | 2015-10-22 | 2017-05-03 | 高德信息技术有限公司 | POI labeling method and device |
-
2017
- 2017-08-14 CN CN201710693584.9A patent/CN109002451B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130321466A1 (en) * | 2012-06-05 | 2013-12-05 | Kenneth L. Kocienda | Determining to Display Designations of Points of Interest Within a Map View |
CN106610976A (en) * | 2015-10-22 | 2017-05-03 | 高德信息技术有限公司 | POI labeling method and device |
CN105550344A (en) * | 2015-12-24 | 2016-05-04 | 中科宇图科技股份有限公司 | Grid and weight relation-based vector point element thinning method |
Non-Patent Citations (1)
Title |
---|
周婷婷: "天地图福建电子地图注记逐级递增显示方法研究", 《测绘与空间地理信息》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111813875B (en) * | 2019-04-11 | 2024-04-05 | 浙江宇视科技有限公司 | Map point location information processing method, device and server |
CN111813875A (en) * | 2019-04-11 | 2020-10-23 | 浙江宇视科技有限公司 | Map point location information processing method and device and server |
CN110427583A (en) * | 2019-06-21 | 2019-11-08 | 浙江浙大中控信息技术有限公司 | The method for vacuating drafting applied to mobile terminal map magnanimity line |
CN110427583B (en) * | 2019-06-21 | 2022-04-22 | 浙江中控信息产业股份有限公司 | Method for drawing map mass lines at mobile terminal in sparse mode |
CN110610544A (en) * | 2019-08-13 | 2019-12-24 | 北京中色地科测绘有限公司 | Drilling data thinning method and device, equipment and storage medium |
CN110610539A (en) * | 2019-08-13 | 2019-12-24 | 北京中色地科测绘有限公司 | Stratum curved surface construction method, device, equipment and storage medium |
WO2021057663A1 (en) * | 2019-09-26 | 2021-04-01 | 深圳前海微众银行股份有限公司 | Map overlay thinning method, device and apparatus, and computer storage medium |
CN110990502B (en) * | 2019-11-12 | 2023-01-03 | 哈尔滨工程大学 | Method for simplifying data of electronic chart position points |
CN110990502A (en) * | 2019-11-12 | 2020-04-10 | 哈尔滨工程大学 | Method for simplifying data of electronic chart position points |
CN111858827A (en) * | 2020-07-31 | 2020-10-30 | 成都新潮传媒集团有限公司 | Map point position rarefying display method and device and computer equipment |
CN111858827B (en) * | 2020-07-31 | 2023-11-14 | 成都新潮传媒集团有限公司 | Map point location thinning display method and device and computer equipment |
CN111931072B (en) * | 2020-10-09 | 2021-01-15 | 深圳市天维大数据技术有限公司 | Point location recommendation method and device, terminal equipment and storage medium |
CN111931072A (en) * | 2020-10-09 | 2020-11-13 | 深圳市天维大数据技术有限公司 | Point location recommendation method and device, terminal equipment and storage medium |
CN113806413A (en) * | 2021-11-22 | 2021-12-17 | 江苏货斯基网络科技有限公司 | Trajectory screening and classifying method and device, computer equipment and storage medium |
CN115794937A (en) * | 2023-01-31 | 2023-03-14 | 中国电子科技集团公司第二十八研究所 | Global grid-based massive moving target layered display method and device |
CN115794937B (en) * | 2023-01-31 | 2023-04-18 | 中国电子科技集团公司第二十八研究所 | Global grid-based massive moving target layered display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109002451B (en) | 2021-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002451A (en) | Map datum vacuates method and device | |
CN105898762B (en) | Base station optimization and deployment method and device | |
CN106845470A (en) | Map data collecting method and apparatus | |
WO2017206484A1 (en) | Geographic data presentation method and apparatus | |
CN106886434A (en) | A kind of Distributed Application installation method and device | |
KR101782873B1 (en) | Method for selecting data files for downloading | |
CN106973384A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN106804055A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN106465175A (en) | Method for collecting and aggregating network quality data | |
CN112055958A (en) | Enabling wireless security measures based on wireless access point attributes | |
CN106504523A (en) | A kind of traffic isochrone information generating method and device | |
CN106708837A (en) | Interest point search method and device | |
CN107391516A (en) | Bus station polymerization and device | |
CN103838861B (en) | A kind of method and display system based on three-dimension GIS dynamic display information | |
CN102622224A (en) | Method for achieving tree-like control piece with search function in Windchill system | |
CN108256666A (en) | The location determining method and device of charging pile, processor | |
CN110887495B (en) | Method for applying real-time road conditions of cloud platform to urban emergency GIS platform | |
CN106793015A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN109309858B (en) | Display method, device, equipment and medium of mutually exclusive icon | |
CN104735237B (en) | A kind of path Forecasting Methodology and interactive voice response IVR paths forecasting system | |
CN106793016B (en) | Wireless fidelity Wi-Fi connection method and mobile terminal | |
CN106612197B (en) | Network thumbnail generation method and equipment | |
KR100689581B1 (en) | System and method for providing map service | |
CN104504057A (en) | Public-network-map-aided land survey method | |
JP3908069B2 (en) | Derivation and display method of job nets related to job nets |
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 |