CN103473984B - Template-based dynamic map obtaining method in network environment - Google Patents
Template-based dynamic map obtaining method in network environment Download PDFInfo
- Publication number
- CN103473984B CN103473984B CN201310352834.4A CN201310352834A CN103473984B CN 103473984 B CN103473984 B CN 103473984B CN 201310352834 A CN201310352834 A CN 201310352834A CN 103473984 B CN103473984 B CN 103473984B
- Authority
- CN
- China
- Prior art keywords
- map
- template
- area
- data
- vector data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention relates to a template-based dynamic map obtaining method in a network environment. The method comprises the following steps: preparing map data needing to be obtained and the boundary vector data of the map of an assigned area; rasterizing the vector data of the two groups of data; extracting a to-be-matched rectangular map area containing the assigned area map from a rasterized map through an algorithm; drafting a template having the same size as the to-be-matched rectangular map area by using the rasterized boundary vector data, and setting the portion enclosed by a boundary to be white and transparent and the other portions to be black and non-transparent; and covering the template on an obtained rectangular map area for matching, and a black area shielding a map area not needing to be obtained and only displaying an unshielded portion so that the map information of the assigned area is obtained. By using the method provided by the invention, the obtaining demands can be queried according to various map information, the template can be drafted in a customized mode, and the map information of the assigned area can be dynamically obtained, thus the originality of map data of surrounding areas is guaranteed, and the flexibility and accuracy of map obtaining are improved.
Description
Technical field
The present invention relates to Geographic Information System, specifically relate to the dynamic map acquisition methods based on template under a kind of network environment.
Background technology
Along with the development of computer age, the demand of development and construction in map acquisition of society and requirement grow with each passing day, and the requirement of acquisition in visualize and accuracy especially in a network environment for appointed area map is also more and more higher.On present network, the function of the various application service system relevant to map in map acquisition can not meet this demand and requirement, these application service systems relevant to map are to the inquiry of appointed area map and acquisition, it is all the mode display translation with rectangular area, and can not the desired target area map of Obtaining Accurate irregular polygon according to specific needs, reject so can not reach the effect that independently diagram data highlights crucially diagram data., there is following Railway Project in the application service system that on current network, great majority are relevant to map:
1. the appointed area map that in the map acquiring technology applied at present, great majority obtain with the mode display translation of rectangular area, can only can not carry out Dynamic Acquisition according to real needs to the desired target area map being rendered as irregular polygon.
2. the map of rectangular area display, main display is based on the rectangular area graph region of user designated area map, simultaneously because the map of appointed area can not be all rectangle substantially, but irregular polygon, so cause appointed area map periphery with unnecessary independently diagram data, user can not check desired target area map datum intuitively.
The rectangular area graph region of picture capturing method acquisition 3. existingly, if user only needs to carry out editing operation to wherein appointed area map, the irrelevant map of its periphery may cause interference to it, equally also may carry out mistake editor to peripheral map data thus have modified original map data, like this with rectangular area graph region method obtain map be not well positioned to meet the requirement of client to map datum editing operation, the primitiveness of its peripheral map can not be ensured.
Summary of the invention
The object of the invention is the deficiency existed to solve prior art, and based on the dynamic map acquisition methods of template under providing a kind of network environment, the method can carry out the map datum of Dynamic Acquisition desired target area by making different templates, eliminate other irrelevant informations outside the intended target map area needing acquisition, highlight key message.
For achieving the above object, the technical solution adopted in the present invention is: provide the dynamic map acquisition methods based on template under a kind of network environment, operate according to the following steps:
(1) map datum prepares: prepare the target map data A needing to carry out obtaining;
(2), boundary vector data encasement: prepare the boundary vector data needing the desired target area map obtained;
(3), map data rasterizing: the target map data that (1) determining step prepares is raster data or vector data, is that map vector data then carries out rasterizing to it, otherwise enters next step;
(4), obtain the rectangular area graph region that need mate: suppose that the coordinate of desired target area map boundary line represents with (X, Y), obtain X, Y value minimum and maximum in the coordinate (X, Y) of desired target area map boundary line by algorithm, suppose that X minimum value is X
0, maximal value is X
n, Y minimum value is Y
0, maximal value is Y
n, i.e. X
0≤ X≤X
nand Y
0≤ Y≤Y
n, and by (X
0, Y
0), (X
n, Y
n) respectively as lower left corner point coordinate and upper right corner coordinate, rasterizing map marking rectangle, the map area of being surrounded by this rectangle is as the rectangular area graph region that need mate;
(5), boundary vector data rasterizing: to step (2) in the boundary vector data of desired target area map that obtain of the needs that prepare carry out rasterizing;
(6), template construct: make according to demand and the step (4) middle need the obtained rectangular area graph region template of the same size of mating, boundary vector data in utilizing step (5) after rasterizing draw out appointed area map boundary line in template, and different transparence values is arranged to different pieces of information part, be used to refer to each pixel and whether selected;
(7), template matches: the template made to be covered in (4) the obtained rectangular area graph region of step and to mate, template is set to opaque section hide not needing the map area obtained, make it not show, transparent part then shows the appointed area map picture that needs obtain;
(8), appointed area map exports: again export the appointed area map picture obtained, show, namely obtain the map datum of appointed area to the result exported.
In the present invention step (6) described in different transparence values is arranged to different pieces of information part, be that the part of being surrounded by map boundary line is set to transparent white, remainder is arranged to opaque black.
Template construct described in the present invention, must ensure to be plotted in map boundary line vector position in template and step (4) in the need that obtain mate the boundary vector position consistency of specifying area map in rectangular area graph region.Described graph data is made up of numerous tiny pixel point value in fact, gives different values just demonstrate different colors to pixel.Namely template is the plate that one deck hides, current grid map image data are blocked, different values is given to the grid forming template, be used to refer to each pixel whether to be selected, when mating with rasterizing map image data, shown by the pixel selected and white clear part, then do not shown by the part of opaque black mask, thus certain part of map image is separated.
Under network environment of the present invention based on the dynamic map acquisition methods of template compared with the conventional method tool have the following advantages:
Method of the present invention can according to user to the demand obtaining various difformity map, self-defining drafting is carried out to template, reach the object dynamically obtaining desired target area map datum, reach and effectively reject independently diagram data, highlight the effect of desired target area map, the present invention solves the Obtaining Accurate problem to appointed area map in current correlation map application service system in a network environment well, map is obtained and has more accuracy and dirigibility.
Accompanying drawing explanation
Fig. 1 is the dynamic map acquisition methods operational flowchart based on template under network environment of the present invention.
Fig. 2 is that specific embodiment rasterizing map and acquisition need mate rectangular area graph region schematic diagram.
Fig. 3 is the rectangular area graph region needing in Fig. 2 to mate.
Fig. 4 makes the template obtaining appointed area map.
The template of Fig. 5 made by Fig. 4 is to the design sketch of rectangular area graph region coupling in Fig. 3.
The appointed area map that Fig. 6 obtains for template matches shown in Fig. 5 shows result figure again.
In above-mentioned figure: the map picture after 200--rasterizing; The rectangle of the need that 201--marks graph region matchingly;
The rectangular area graph region that 300--need mate; The template that 400--makes; 401--white clear region;
402--black non transparent region; The appointed area map that 501--obtains.
Embodiment
Below in conjunction with drawings and Examples, method of the present invention is described further, and is not used to limit substantial technological context of the present invention.
Embodiment 1: method of the present invention is the map datum for correlation map application service system issue in a network environment, and make different template Dynamic Acquisition desired target area map datums according to demand, specific implementation is as shown in Fig. 1 flow process:
(1), map datum prepares: prepare to need the map datum A carrying out map acquisition on this map.
(2), boundary vector data encasement: prepare the boundary vector data needing the desired target area map obtained.
(3), map data rasterizing: the target map data that (1) determining step prepares is raster data or vector data, if be map vector data, carry out rasterizing, otherwise enter step (4) to it.Wherein rasterizing process object is that this map vector data is transformed into view data.
(4), obtain the rectangular area graph region that need mate: suppose that the coordinate of desired target area map boundary line represents with (X, Y), obtain X, Y value minimum and maximum in the coordinate (X, Y) of desired target area map boundary line by algorithm, suppose that X minimum value is X
0, maximal value is X
n, Y minimum value is Y
0, maximal value is Y
n, i.e. X
0≤ X≤X
nand Y
0≤ Y≤Y
n, and by (X
0, Y
0), (X
n, Y
n) respectively as lower left corner point coordinate and upper right corner coordinate, rasterizing map marking rectangle, the map area of being surrounded by this rectangle extracts as the rectangular area graph region that need mate.The rectangular area graph region of this step energy automatic acquisition complete packet are containing the desired target area map needing to obtain, and the rectangular area graph region area reduction that simultaneously also need carry out mating is to minimum.
(5), boundary vector data rasterizing: to step (2) in the boundary vector data of desired target area map that obtain of the needs that prepare carry out rasterizing;
(6), template construct: make according to demand and the step (4) middle need the obtained rectangular area graph region template of the same size of mating, boundary vector data in utilizing step (5) after rasterizing draw out appointed area map boundary line in template, and different transparence values is arranged to different pieces of information part, the part of being surrounded by map boundary line is set to transparent white, and remainder is arranged to opaque black;
(7), template matches: the template made to be covered in (4) the obtained rectangular area graph region of step and to mate, template is set to black non transparent part hide not needing the map area obtained, make it not show, white clear part then shows the appointed area map picture that needs obtain.
(8), appointed area map exports: again export the appointed area map picture obtained, show, namely obtain the map datum of appointed area to the result exported.
Embodiment 2: according to the operating process of the invention described above method, existing with real Fig. 2,3,4, shown in 5 and 6, the operation steps that the inventive method is concrete is described:
Step (1) and step (2), all set need to carry out on this map the desired target area map boundary line vector data needing in the map datum A of map acquisition and this map to obtain.
(3) step, judges the map datum prepared, if map datum A is map vector data, carries out rasterizing, otherwise enter step (4), carry out rasterizing to map datum A now, obtain the map picture 200 after rasterizing as shown in Figure 2;
Wherein map vector data rasterizing principle: the main resolute of map datum storage class and lattice structure, the map datum that the main cause of map vector data rasterizing is lattice structure is by grid array adjacent for uniform close sized by map partitioning by the present invention, each grid is defined by row, column as a pixel or pixel, and comprises attribute type or the value of this pixel of coded representation.The template obtaining appointed area map is also grid data form, so must by Grid of vector data to utilize template to obtain map datum.
(4), the rectangular area graph region that described acquisition need be mated, is obtained by algorithm and represents X, Y value minimum and maximum in the coordinate (X, Y) of Fig. 2 appointed area map boundary line, i.e. X step
0≤ X≤X
nand Y
0≤ Y≤Y
n, and by (X
0, Y
0), (X
n, Y
n) respectively as lower left corner point coordinate and upper right corner coordinate, the rectangle 201 of the need that rasterizing map marks graph region matchingly, extracts the rectangular area graph region 300 as mating, as shown in Figure 3 using the map area that this rectangle surrounds.
Step (5), to border Grid of vector data, the present embodiment this step is incorporated in step (2) in carry out.
Step (6), the making of template: see Fig. 4, make and need mate rectangular area graph region 300 template of the same size with obtaining shown in Fig. 3, utilize the map boundary line data after the middle rasterizing of step (5) to draw template, to ensure to be plotted in the map boundary line vector position in template and the boundary vector position consistency of specifying area map in the step rectangular area graph region 300 that (4) the middle need obtained mate, by arranging the transparency of template, the region that map boundary line surrounds is set to white clear region 401, border is set to black non transparent region 402 with periphery area.
Step (7), template matches: as shown in Figure 5, the rectangular area graph region 300 template 400 made being covered the need coupling that Fig. 3 extracts is mated, the black non transparent region 402 of template hides not by the map area selected, and white clear region 401 shows the appointed area map 501 needing to obtain.
Wherein template matches process: graph data is made up of numerous tiny pixel point value in fact, the different assignment of pixel demonstrates different colors.Namely template is the plate that one deck hides, current grid map image data are blocked, different values is given to the grid forming template, be used to refer to each pixel whether to be selected, when mating with rasterizing map image data, shown by the pixel selected and white clear region, the part that hides by opaque black region then do not show, thus certain part of map image to be separated.
(8), appointed area map exports step: the appointed area map 501 of acquisition is carried out output display again, namely obtains appointed area map, as shown in Figure 6.
The present invention is compared with existing correlation technique; for the ground picture capturing method of the map datum issued in correlation map application service system under network environment; the present invention obtains appointed area map datum dynamically by self-defined template; user accurately and flexibly can obtain the map area required for it whereby; and the operations such as inquiry editor can be carried out when not disturbed by other regions to this area map, original map data can also be protected not by edit-modify.The more existing correlation technique of visible the present invention has more practicality and reliability.
The present invention can be applicable under the network environment of industry-by-industry in map application service system, and widely, market outlook are very optimistic for application.
Claims (1)
1. under network environment based on a dynamic map acquisition methods for template, it is characterized in that: according to the following steps operate:
(1), map datum prepares: prepare the target map data A needing to carry out obtaining;
(2), boundary vector data encasement: prepare the boundary vector data needing the desired target area map obtained;
(3), map data rasterizing: the target map data that (1) determining step prepares is raster data or vector data, is that map vector data then carries out rasterizing to it, otherwise enters next step;
(4), obtain the rectangular area graph region that need mate: the coordinate (X supposing desired target area map boundary line, Y) represent, obtain X, Y value minimum and maximum in the coordinate (X, Y) of desired target area map boundary line by algorithm, suppose that X minimum value is X
0, maximal value is X
n, Y minimum value is Y
0, maximal value is Y
n, i.e. X
0≤ X≤X
nand Y
0≤ Y≤Y
n, and by (X
0, Y
0), (X
n, Y
n) respectively as lower left corner point coordinate and upper right corner coordinate, rasterizing map marking rectangle, the map area of being surrounded by this rectangle is as the rectangular area graph region that need mate;
(5), boundary vector data rasterizing: to step (2) in the boundary vector data of desired target area map that obtain of the needs that prepare carry out rasterizing;
(6), template construct: make according to demand and the step (4) middle need the obtained rectangular area graph region template of the same size of mating, boundary vector data in utilizing step (5) after rasterizing draw out appointed area map boundary line in template, and different transparence values is arranged to different pieces of information part, be used to refer to each pixel and whether selected;
(7), template matches: the template made to be covered in (4) the obtained rectangular area graph region of step and to mate, template is set to opaque section hide not needing the map area obtained, make it not show, transparent part then shows the appointed area map picture that needs obtain;
(8), appointed area map exports: again export the appointed area map picture obtained, show, namely obtain the map datum of appointed area to the result exported;
Furthermore step (6) described in different transparence values is arranged to different pieces of information part, be that the part of being surrounded by map boundary line is set to transparent white, remainder is arranged to opaque black.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310352834.4A CN103473984B (en) | 2013-08-14 | 2013-08-14 | Template-based dynamic map obtaining method in network environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310352834.4A CN103473984B (en) | 2013-08-14 | 2013-08-14 | Template-based dynamic map obtaining method in network environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103473984A CN103473984A (en) | 2013-12-25 |
CN103473984B true CN103473984B (en) | 2015-05-27 |
Family
ID=49798810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310352834.4A Active CN103473984B (en) | 2013-08-14 | 2013-08-14 | Template-based dynamic map obtaining method in network environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103473984B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678682B (en) * | 2013-12-26 | 2019-10-11 | 中国科学院遥感与数字地球研究所 | Magnanimity raster data processing and management method based on abstraction templates |
CN104731883B (en) * | 2015-03-11 | 2017-11-17 | 北京农业信息技术研究中心 | Method for displaying network map and system |
CN110110028B (en) * | 2019-05-09 | 2023-06-09 | 浪潮软件集团有限公司 | Method and system for displaying map according to user-defined area and oriented to OGC standard |
CN111143711A (en) * | 2019-12-23 | 2020-05-12 | 贝壳技术有限公司 | Object searching method and system |
CN111666365B (en) * | 2020-05-27 | 2023-04-18 | 北京地林伟业科技股份有限公司 | Method for rapidly filtering and displaying electronic map service according to authorized area |
CN117252941A (en) * | 2023-09-18 | 2023-12-19 | 青岛卓易策略数据信息技术有限公司 | Grid map drawing method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6708117B2 (en) * | 2000-09-15 | 2004-03-16 | Ernest A. Carroll | Preparing and disseminating digitized geospatial data for areas having irregular boundaries |
US6917877B2 (en) * | 2001-08-14 | 2005-07-12 | Navteq North America, Llc | Method for determining the intersection of polygons used to represent geographic features |
CN101388157B (en) * | 2008-09-25 | 2011-11-30 | 炬力集成电路设计有限公司 | Electronic map display method, apparatus and equipment |
CN101388043B (en) * | 2008-09-26 | 2011-12-07 | 北京航空航天大学 | OGC high performance remote sensing image map service method based on small picture |
CN101593454A (en) * | 2009-07-09 | 2009-12-02 | 浙江大学 | A kind of intelligent output method for land parcel maps |
CN102663033A (en) * | 2012-03-23 | 2012-09-12 | 汉海信息技术(上海)有限公司 | Method for searching interest points in designated area of map by hand-drawing way |
-
2013
- 2013-08-14 CN CN201310352834.4A patent/CN103473984B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103473984A (en) | 2013-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103473984B (en) | Template-based dynamic map obtaining method in network environment | |
CN103093484B (en) | A kind of method of remote sensing image batch integrated with vector data drawing | |
JP6250901B2 (en) | A robot system in which a CNC and a robot controller are connected via a communication network | |
US8743136B2 (en) | Generating object representation from bitmap image | |
CN106484396A (en) | Night changing method, device and terminal unit | |
TWI613510B (en) | Electron beam drawing device, electron beam drawing method, and recording medium | |
KR20120101974A (en) | Method and system for rendering three dimensional views of a scene | |
CN106383881A (en) | Navigation secondary development control system based on cross-platform graphic middleware | |
CN103325117A (en) | Rock core picture processing method and system based on MATLAB | |
CN105117404B (en) | Based on the chart display defect optimization method under subtype and data feature scene | |
CN102509314A (en) | Quick generating method for sunlight greenhouse construction drawing | |
CN112891946A (en) | Game scene generation method and device, readable storage medium and electronic equipment | |
CN115861609A (en) | Segmentation labeling method of remote sensing image, electronic device and storage medium | |
CN105023290A (en) | 3D scenery modeling visualization method and system based on AutoCAD platform | |
CN103558643A (en) | Geological radar fine processing method and system | |
CN103617073A (en) | Method for analyzing and displaying picture file of electrical power system | |
JP6863675B2 (en) | Image split | |
CN113535878B (en) | Line selection method, device, terminal and storage medium based on three-dimensional geological modeling | |
CN102129502B (en) | Optimal electrical power line selection method and system | |
CN105589982A (en) | Method and device for importing design drawings on basis of symbol templates | |
CN103035028B (en) | A kind of method and device realizing interactive application scene | |
CN111369676B (en) | Map image processing method and device and vehicle-mounted equipment | |
KR100943451B1 (en) | System for manufacturing ortho image using tiff format of dem-tiff and method therefor | |
CN104036535A (en) | Quick sorting method for vector in two-dimensional geographic information system | |
CN103092596B (en) | Rudimentary interface development realizes method and the device of interface inversion automatically |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190429 Address after: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 11 Dongxin Road, Wuhan Overseas Students Pioneer Park, 2 floors A and F Patentee after: Wuhan Zhao Tu Science and Technology Ltd. Address before: 430074 No. 388 Lu Lu, Hongshan District, Hubei, Wuhan Patentee before: China University of Geosciences (Wuhan) |
|
TR01 | Transfer of patent right |