CN110246202A - A kind of grid drawing method based on map area boundary GPS coordinate - Google Patents
A kind of grid drawing method based on map area boundary GPS coordinate Download PDFInfo
- Publication number
- CN110246202A CN110246202A CN201810184153.4A CN201810184153A CN110246202A CN 110246202 A CN110246202 A CN 110246202A CN 201810184153 A CN201810184153 A CN 201810184153A CN 110246202 A CN110246202 A CN 110246202A
- Authority
- CN
- China
- Prior art keywords
- grid
- boundary
- coordinate
- map
- point
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000004069 differentiation Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 230000001747 exhibiting effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B29/00—Maps; Plans; Charts; Diagrams, e.g. route diagram
- G09B29/003—Maps
Abstract
The present invention relates to a kind of grid drawing methods based on map area boundary GPS coordinate, in region as required, to set grid distance and draw grid, then further be accepted or rejected to grid on the basis of boundary sections in region;Reflect the otherness of map on the whole, it can be according to specific purpose and demand further to each region description, more specifically show the feature in each region, the fining in region and differentiation can more easily meet the needs of crowd, wide in rangeization in some regions eliminates the characteristics of map making person draws the cumbersome of scarcely populated map, clearly highlights different zones in map entirety again.
Description
Technical field
The present invention relates to mapping information technology fields, and in particular to a kind of grid based on map area boundary GPS coordinate
Method for drafting.
Background technique
It is drawn in existing map gridization and shows Various types of data, data exhibiting application of the various data based on grid map
It is very universal, for example, thermodynamic chart, flow of the people distribution map etc..But this kind of map application grid drawing usually has that there are two universal
Problem: one, the drafting grid entirety comparison rule figure (rectangular) of grid can not embody some regionality;Two, map is all whole
Volume mesh, specification is relatively more unified, area can not cannot be protruded on the basis of entirety according to the specific grid of region drafting, three
The feature in domain.In order to realize specific purpose, the otherness in region is embodied in whole map, needs to advise current map one kind
The same improved method of lattice.
Summary of the invention
It is an object of the present invention to provide a kind of grid drawing methods based on map area boundary GPS coordinate.The present invention is in spy
Determine to carry out grid drawing in region, shows regional grid profile in region, more accurately display area, it can be to region not
It is further refined with feature.
In order to solve the above-mentioned technical problem, present invention employs the following technical solutions
A kind of grid drawing method based on map area boundary GPS coordinate, it is characterised in that: it includes the following steps
Step 1, the boundary GPS coordinate (p1, p2, p3...pn) in some region of map is obtained
Step 2, coordinate extreme point is obtained from the GPS coordinate of boundary, first point S1 longitude is minimum, and latitude is minimum, and second
A point S2 longitude is maximum, and latitude is maximum.
Step 3, customized X meters of a grid distance as needed, since S1, every X meters of longitude and latitude distance draws grid,
Until covering S2.
Step 4, the central point GPS coordinate (c1 ... cn) for converting out each grid is calculated.
Step 5, judge each grid element center point GPS coordinate (c1 ... .cn) whether in region, in region, then
Retain the grid, if it was not then giving up the grid.
Further, some central point (such as c1) is calculated in the step 5 whether at region (p1, p2, p3...pn)
It is interior that the specific method is as follows:
1. first determining whether central point C1 is overlapped with each boundary point (p1, p2, p3...pn), illustrate in this if be overlapped
Heart point is on boundary coordinate, then interior at the regional level.
2. secondly judging central point C1 whether on the line segment of boundary (p1, p2, p3...pn) coordinate composition.Boundary is sat
Mark (p1, p2, p3....pn) successively divides line segment, p1-p2 L1, p2-p3 L2, until pn-p1 is Ln.It is possible thereby to
To L1, L2, L3...Ln.
If C1 is on L1, in boundary.
Judge central point C1 whether the method on L1 (p1-p2 line segment):
Condition 1:(C1-P1) X (P2-P1)=0;
Condition 2:C1 is being in the rectangle of angular vertex with P1, P2;
The condition 1 requires C1, P1, P2 three point on a straight line;After condition 1 meets, it should just consider whether that will appear C1 exists
P1P2 extended line or reverse extending line such case, if it is then giving up the point on extended line, if not on extended line
Retain.In addition, condition 2 just limits the transverse and longitudinal coordinate of C1 point, it is desirable that transverse and longitudinal coordinate will be in the minimum value of P1P2 two o'clock
Between maximum value, that is to say, that ensure that C1 between P1P2, center point coordinate meets condition 1 and 2 item and retains, and otherwise gives up
It abandons.
3. secondly judging central point C1 whether in the figure of boundary (p1, p2, p3...pn) coordinate composition.Using ray
Method does a ray from central point, calculates its intersection point number with Polygonal Boundary, if intersection point number is odd number, point
In polygonal internal, otherwise put outside polygon.
Further, a kind of grid drawing method based on map area boundary GPS coordinate is applied to whole map with reality
Show the different definition grid of different zones when showing map, then only to need again selection area and define grid distance, repeats
Step 1-5.
The beneficial effects of the present invention are the present invention can carry out grid drawing in each region of whole map, can be with body
Reveal the otherness of map on the whole;Secondly, can more have according to specific purpose and demand further to each region description
Show to body the feature in each region;On the other hand, all because various maps are all built upon on the basis of GPS map
Such as urban transportation figure, hypsographic map, layer colours topographic map, urban road network's figure, topographic map, hydrological map, climatic chart, plant
The fining and wide in rangeization in region can further be made for different demands by figure, relief map and ground thermal map;Finally, to map
Further compartmentalization, the fining in region can more easily meet the needs of crowd, and wide in rangeization in some regions is saved again
Map making person draws the trouble of scarcely populated map, clearly highlight map on the whole different zones the characteristics of.
Detailed description of the invention
Fig. 1 is a kind of main flow schematic diagram of grid drawing method based on map area boundary GPS coordinate of the invention.
Fig. 2 is to enumerate in a kind of grid drawing method and step 2 based on map area boundary GPS coordinate of the invention
The schematic diagram of selection area method.
Fig. 3 is that area is determined in a kind of grid drawing method and step 3 based on map area boundary GPS coordinate of the invention
The schematic diagram of the method for grid in domain.
Fig. 4 is that a kind of step 5 of grid drawing method based on map area boundary GPS coordinate of the invention judges often
Whether a grid element center point GPS coordinate is in the flow chart in region.
Fig. 5 is method in a kind of step 5 of grid drawing method based on map area boundary GPS coordinate of the invention
3 schematic diagram.
Fig. 6 is that a kind of area grid of grid drawing method based on map area boundary GPS coordinate of the invention is drawn
Schematic diagram after the completion.
Specific embodiment
Case 1 is embodied:
Step 1, the boundary GPS coordinate (p1, p2, p3...pn) in some region of map is obtained
Step 2, coordinate extreme point is obtained from the GPS coordinate of boundary, first point S1 longitude is minimum, and latitude is minimum, and second
A point S2 longitude is maximum, and latitude is maximum.
Step 3, customized X meters of a grid distance as needed, since S1, every X meters of longitude and latitude distance draws grid,
Until covering S2.
Step 4, the central point GPS coordinate (c1 ... cn) for converting out each grid is calculated.
Step 5, judge each grid element center point GPS coordinate (c1 ... .cn) whether in region, in region, then
Retain the grid, if it was not then giving up the grid.
Some central point (such as c1) is calculated in the step 5 whether in region (p1, p2, p3...pn) interior specific method
It is as follows:
1. first determining whether central point C1 is overlapped with each boundary point (p1, p2, p3...pn), illustrate in this if be overlapped
Heart point is on boundary coordinate, then interior at the regional level.
2. secondly judging central point C1 whether on the line segment of boundary (p1, p2, p3...pn) coordinate composition.Boundary is sat
Mark (p1, p2, p3....pn) successively divides line segment, p1-p2 L1, p2-p3 L2, until pn-p1 is Ln.It thus then can be with
Obtain L1, L2, L3...Ln.
If C1 is on L1, in boundary.
Judge central point C1 whether the method on L1 (p1-p2 line segment):
Condition 1:(C1-P1) X (P2-P1)=0;
Condition 2:C1 is being in the rectangle of angular vertex with P1, P2;
The condition 1 requires C1, P1, P2 three point on a straight line;After condition 1 meets, then further coordinate points are applied to
Condition 2 limits the transverse and longitudinal coordinate of C1 point, it is desirable that transverse and longitudinal coordinate will between the minimum value and maximum value of P1P2 two o'clock,
That is it ensure that C1 between P1P2, retains if center point coordinate meets condition 1 and 2, otherwise gives up
3. secondly judging central point C1 whether in the figure of boundary (p1, p2, p3...pn) coordinate composition.Using ray
Method does a ray from central point, calculates its intersection point number with Polygonal Boundary, if intersection point number is odd number (A in legend
Point), then otherwise point is put outside polygon in polygonal internal.
A kind of grid drawing method based on map area boundary GPS coordinate is applied to whole map to realize difference
The different definition grid in region come when showing map, then only need again selection area and define grid distance, repeat 1-5 step
Suddenly.
The beneficial effects of the present invention are the present invention carries out grid drawing in specific region, on the one hand, can embody
The whole otherness with part of map;Secondly, can more have according to specific purpose and demand further to each region description
Show to body the feature in each region;On the other hand, all because various maps are all built upon on the basis of GPS map
Such as urban transportation figure, hypsographic map, layer colours topographic map, urban road network's figure, topographic map, hydrological map, climatic chart, plant
It can be for the fining and wide in rangeization in the further region of different demands by figure, relief map and ground thermal map;Finally, to map
Further compartmentalization, the fining in region can more easily meet the needs of crowd, and wide in rangeization in some regions eliminates again
Map making person draws the trouble of scarcely populated map, clearly highlight map on the whole different zones the characteristics of.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (3)
1. a kind of grid drawing method based on map area boundary GPS coordinate comprising following steps:
Step 1, the boundary GPS coordinate (p1, p2, p3...pn) in some region of map is obtained
Step 2, coordinate extreme point is obtained from the GPS coordinate of boundary, first point S1 longitude is minimum, and latitude is minimum, second point
S2 longitude is maximum, and latitude is maximum.
Step 3, customized X meters of a grid distance as needed, since S1, every X meters of longitude and latitude distance draws grid, until
Until covering S2.
Step 4, the central point GPS coordinate (c1 ... cn) for converting out each grid is calculated.
Step 5, judge that each grid element center point GPS coordinate (c1 ... .cn) whether in region, in region, then retains
The grid, if it was not then giving up the grid.
2. a kind of grid drawing method based on map area boundary GPS coordinate as described in claim 1, it is characterised in that: institute
State calculated in step 5 some central point (such as c1) whether in region (p1, p2, p3...pn) the specific method is as follows:
1. first determining whether central point C1 is overlapped with each boundary point (p1, p2, p3...pn), illustrate the central point if be overlapped
It is on boundary coordinate, then interior at the regional level
2. secondly judging central point C1 whether on the line segment of boundary (p1, p2, p3...pn) coordinate composition.By boundary coordinate
(p1, p2, p3....pn) successively divides line segment, p1-p2 L1, p2-p3 L2, thus then available until pn-p1 is Ln
L1,L2,L3...Ln
If C1 is on L1, in boundary,
Judge central point C1 whether the method on L1 (p1-p2 line segment):
Condition 1:(C1-P1) X (P2-P1)=0;
Condition 2:C1 is being in the rectangle of angular vertex with P1, P2;
The condition 1 requires C1, P1, P2 three point on a straight line;After condition 1 meets, then coordinate points are further applied to condition
2, the transverse and longitudinal coordinate of C1 point is limited, it is desirable that transverse and longitudinal coordinate will be between the minimum value and maximum value of P1P2 two o'clock, also
It is to say to ensure that C1 between P1P2, retains if center point coordinate meets condition 1 and 2, otherwise gives up
3. finally judge central point C1 whether in the figure that boundary (p1, p2, p3...pn) coordinate forms, using ray method, from
Central point does a ray, calculates its intersection point number with Polygonal Boundary, if intersection point number is odd number, puts polygon
Inside shape, otherwise put outside polygon.
3. a kind of grid drawing method based on map area boundary GPS coordinate is it is characterized by: described as described in claim 1
A kind of difference that the grid drawing method based on map area boundary GPS coordinate is applied to whole map to realize different zones is fixed
Adopted grid come when showing map, then only need again selection area and define grid distance, repeat step 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810184153.4A CN110246202A (en) | 2018-03-07 | 2018-03-07 | A kind of grid drawing method based on map area boundary GPS coordinate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810184153.4A CN110246202A (en) | 2018-03-07 | 2018-03-07 | A kind of grid drawing method based on map area boundary GPS coordinate |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110246202A true CN110246202A (en) | 2019-09-17 |
Family
ID=67876212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810184153.4A Pending CN110246202A (en) | 2018-03-07 | 2018-03-07 | A kind of grid drawing method based on map area boundary GPS coordinate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110246202A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190009A (en) * | 2021-05-08 | 2021-07-30 | 珠海市一微半导体有限公司 | Method for realizing robot curve virtual wall based on grid map |
CN113838164A (en) * | 2021-08-18 | 2021-12-24 | 北京商询科技有限公司 | Grid drawing method and device and storage medium |
CN114494519A (en) * | 2022-02-18 | 2022-05-13 | 上海歆广数据科技有限公司 | Electronic map grid drawing method and system in grid data system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06333019A (en) * | 1993-05-25 | 1994-12-02 | Tokyo Electric Power Co Inc:The | Map synthesizing method and device |
CN103728637A (en) * | 2014-01-03 | 2014-04-16 | 中南大学 | Farmland operation area boundary point and unmanned helicopter position point drawing method |
CN105512312A (en) * | 2015-12-11 | 2016-04-20 | 中国航空工业集团公司西安航空计算技术研究所 | Accelerating method for two-dimensional map library |
CN106303950A (en) * | 2015-06-25 | 2017-01-04 | 三星Sds株式会社 | Geography fence service system based on grid and method |
CN107766516A (en) * | 2017-10-24 | 2018-03-06 | 浙江工业大学 | A kind of geographical map retained based on border deforms method for visualizing |
-
2018
- 2018-03-07 CN CN201810184153.4A patent/CN110246202A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06333019A (en) * | 1993-05-25 | 1994-12-02 | Tokyo Electric Power Co Inc:The | Map synthesizing method and device |
CN103728637A (en) * | 2014-01-03 | 2014-04-16 | 中南大学 | Farmland operation area boundary point and unmanned helicopter position point drawing method |
CN106303950A (en) * | 2015-06-25 | 2017-01-04 | 三星Sds株式会社 | Geography fence service system based on grid and method |
CN105512312A (en) * | 2015-12-11 | 2016-04-20 | 中国航空工业集团公司西安航空计算技术研究所 | Accelerating method for two-dimensional map library |
CN107766516A (en) * | 2017-10-24 | 2018-03-06 | 浙江工业大学 | A kind of geographical map retained based on border deforms method for visualizing |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190009A (en) * | 2021-05-08 | 2021-07-30 | 珠海市一微半导体有限公司 | Method for realizing robot curve virtual wall based on grid map |
CN113190009B (en) * | 2021-05-08 | 2024-05-07 | 珠海一微半导体股份有限公司 | Robot curve virtual wall implementation method based on grid map |
CN113838164A (en) * | 2021-08-18 | 2021-12-24 | 北京商询科技有限公司 | Grid drawing method and device and storage medium |
CN114494519A (en) * | 2022-02-18 | 2022-05-13 | 上海歆广数据科技有限公司 | Electronic map grid drawing method and system in grid data system |
CN114494519B (en) * | 2022-02-18 | 2023-08-22 | 上海歆广数据科技有限公司 | Method and system for drawing electronic map grids in grid data system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Moore et al. | User's guide for the national hydrography dataset plus (NHDPlus) high resolution | |
CN110246202A (en) | A kind of grid drawing method based on map area boundary GPS coordinate | |
Lu et al. | Fractal dimension of a transportation network and its relationship with urban growth: a study of the Dallas-Fort Worth area | |
Ling et al. | Waterline mapping at the subpixel scale from remote sensing imagery with high‐resolution digital elevation models | |
CN107193888B (en) | A kind of urban road network model towards lane grade navigator fix | |
Ge et al. | Vectorial boundary-based sub-pixel mapping method for remote-sensing imagery | |
CN109416258B (en) | Method, apparatus and computer program product for adaptive site scaling in a digital map interface | |
CN107967702A (en) | The thermodynamic chart method for visualizing of reverse color applying drawing | |
CN103162664B (en) | Altitude figures acquisition methods and device, navigator | |
Fontaine et al. | Definition and predictability of an OLR‐based West African monsoon onset | |
Musaoglu et al. | Identification of land-cover changes through image processing and associated impacts on water reservoir conditions | |
CN108520545A (en) | A kind of electronic map rendering intent based on symbol level detail model | |
CN109145072A (en) | A kind of grassland biomass remote sensing monitoring partition method and device | |
WO2008045954A2 (en) | Systems and methods for visualizing and measuring real world 3-d spatial data | |
CN103577484B (en) | A kind of space-location method of random variation map | |
CN107239506A (en) | A kind of autocorrelative appraisal procedure of geographic event space-time | |
CN112509453B (en) | Electronic navigation method and system for scenic spot live-action navigation map based on mobile equipment | |
CN106373175A (en) | Terrain height graph data loading method | |
CN110046210B (en) | Map information updating method and device, electronic equipment and storage medium | |
Willmott et al. | Geographic box plots | |
CN111176106A (en) | Time zone switching display method, intelligent watch, device and storage medium | |
US10062193B2 (en) | Attribute based map marker clustering | |
Vederman | The life cycles of jet streams and extratropical cyclones | |
CN108573652A (en) | A kind of road area display methods and device | |
CN110489510A (en) | Processing method, device, readable storage medium storing program for executing and the computer equipment of road data |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190917 |