CN103473984A - Template-based dynamic map obtaining method in network environment - Google Patents

Template-based dynamic map obtaining method in network environment Download PDF

Info

Publication number
CN103473984A
CN103473984A CN2013103528344A CN201310352834A CN103473984A CN 103473984 A CN103473984 A CN 103473984A CN 2013103528344 A CN2013103528344 A CN 2013103528344A CN 201310352834 A CN201310352834 A CN 201310352834A CN 103473984 A CN103473984 A CN 103473984A
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.)
Granted
Application number
CN2013103528344A
Other languages
Chinese (zh)
Other versions
CN103473984B (en
Inventor
郑坤
答海玲
张柱
刘培
易云蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Zhao Tu Science and Technology Ltd.
Original Assignee
China University of Geosciences
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Geosciences filed Critical China University of Geosciences
Priority to CN201310352834.4A priority Critical patent/CN103473984B/en
Publication of CN103473984A publication Critical patent/CN103473984A/en
Application granted granted Critical
Publication of CN103473984B publication Critical patent/CN103473984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

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

The dynamic map acquisition methods of net environment based on template
Technical field
The present invention relates to Geographic Information System, specifically relate to the dynamic map acquisition methods of a kind of net environment based on template.
Background technology
Along with the development of computer age, at map, demand and the requirement aspect obtaining grows with each passing day the development and construction of society, especially also more and more higher for obtaining in the requirement aspect visualize and accuracy of appointed area map at net environment.Now on network various application service systems relevant to map at map, the function aspect obtaining can not meet this demand and requirement, these application service systems relevant to map are to the inquiry of appointed area map and obtain, all that mode with rectangular area shows output, and the desired target area map of Obtaining Accurate irregular polygon is according to specific needs rejected independently diagram data and is highlighted the crucially effect of diagram data so can not reach.There is following several problem in the great majority application service systems relevant to map on current network:
1. the map of applying at present obtains the appointed area maps that in technology, great majority obtain can only show output in the mode of rectangular area, can not carry out Dynamic Acquisition to the desired target area map that is rendered as irregular polygon according to real needs.
2. the map that rectangular area shows, the main demonstration be take the user designated area map as main rectangular area graph region, map due to appointed area can not be rectangle basically simultaneously, but irregular polygon, so cause appointed area map periphery with unnecessary independently diagram data, the user can not check the desired target area map datum intuitively.
3. the rectangular area graph region that existing ground picture capturing method obtains, if the user only need to carry out editing operation to appointed area map wherein, the irrelevant map of its periphery may cause interference to it, thereby equally also may miss editor to the peripheral map data and revise original map data, the map obtained with rectangular area graph region method like this can not well meet the requirement of client to the map datum editing operation, can not guarantee the primitiveness of its peripheral map.
Summary of the invention
The objective of the invention is the deficiency existed in order to solve prior art, and provide the dynamic map acquisition methods of a kind of net environment based on template, the method can be carried out by making different templates the map datum of Dynamic Acquisition desired target area, reject other irrelevant informations outside the intended target map area that need to obtain, highlighted key message.
For achieving the above object, the technical solution adopted in the present invention is: provide the dynamic map acquisition methods of a kind of net environment based on template, according to the following steps operation:
(1) map datum is prepared: the target map data A that preparation need to be obtained;
(2), the boundary vector data are prepared: the boundary vector data of the desired target area map that preparation need to be obtained;
(3), map data rasterizing: the target map data that (1) determining step is prepared are raster data or vector data, are that map vector data carries out rasterizing to it, otherwise enter next step;
(4), obtain the rectangular area graph region that needs coupling: the coordinate of supposing the desired target area map boundary line means with (X, Y), obtains middle minimum and maximum X, the Y value of coordinate (X, Y) of desired target area map boundary line by algorithm, supposes that the X minimum value is X 0, maximal value is X n, the 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, on the rasterizing map, marking rectangle, the map area that this rectangle is surrounded is as the rectangular area graph region of need coupling;
(5), boundary vector data rasterizing: the boundary vector data to the step desired target area map that (2) the middle needs of preparing obtain are carried out rasterizing;
(6), template construct: the rectangular area graph region template of the same size of making according to demand the need coupling of obtaining in (4) with step, utilize step (5) in boundary vector data after rasterizing draw out the appointed area map boundary line on template, and different pieces of information is partly arranged to different transparence values, whether selectedly be used to refer to each pixel;
(7), template matches: the template of making is covered on the rectangular area graph region that (4) step obtained and mated, being set to opaque section on template is hidden the map area that does not need to obtain, it is not shown, transparent part shows the appointed area map picture that need to obtain;
(8), appointed area map output: the appointed area map picture obtained is exported again, the result of exporting is shown, obtain the map datum of appointed area.
In the present invention, step partly arranges different transparence values to different pieces of information described in (6), is that the part that map boundary line surrounds is set to transparent white, and remainder is arranged to opaque black.
Template construct described in the present invention, must guarantee to be plotted in the boundary vector position consistency of specifying area map in the need coupling rectangular area graph region that map boundary line vector position on template and step obtain in (4).Described graph data is comprised of numerous tiny pixel point value in fact, gives different values to pixel and just demonstrates different colors.Template is the plate that one deck hides, current rasterizing map image data are blocked, give different values to the grid that forms template, whether selectedly be used to refer to each pixel, when being mated with rasterizing map image data, selecteed pixel is that white transparent part is shown, the part hidden by opaque black does not show, thereby certain part of map image is separated.
The dynamic map acquisition methods of net environment of the present invention based on template has following advantage compared with the conventional method:
Method of the present invention can be according to the user to obtaining the demand of various difformity maps, template is carried out to self-defining drafting, reach the purpose of dynamically obtaining the desired target area map datum, reach and effectively reject independently diagram data, highlight the effect of desired target area map, the present invention has solved at present in net environment correlation map application service system well to the Obtaining Accurate problem of appointed area map, makes map obtain and has more accuracy and dirigibility.
The accompanying drawing explanation
Fig. 1 is the dynamic map acquisition methods operational flowchart of net environment of the present invention based on template.
Fig. 2 is specific embodiment rasterizing map and obtains need coupling rectangular area graph region schematic diagram.
Fig. 3 is the rectangular area graph region that needs coupling in Fig. 2.
Fig. 4 is for making the template of obtaining the appointed area map.
The design sketch of the template that Fig. 5 is Fig. 4 made to rectangular area graph region coupling in Fig. 3.
Fig. 6 is that the appointed area map that template matches shown in Fig. 5 obtains shows figure as a result again.
In above-mentioned figure: the map picture after the 200--rasterizing; The need that 201--marks are the rectangle of graph region matchingly;
The rectangular area graph region that 300--need mate; The template that 400--makes; 401--white transparent region;
402--black non transparent zone; The appointed area map that 501--obtains.
Embodiment
Below in conjunction with drawings and Examples, method of the present invention is described further, not in order to limit essence technology contents scope of the present invention.
Embodiment 1: method of the present invention is for the map datum in the issue of net environment correlation map application service system, makes according to demand different template Dynamic Acquisition desired target area map datums, and specific implementation is as shown in Fig. 1 flow process:
(1), map datum is prepared: preparation need to be carried out the map datum A that map obtains on this map.
(2), the boundary vector data are prepared: the boundary vector data of the desired target area map that preparation need to be obtained.
(3), map data rasterizing: the target map data that (1) determining step is prepared are raster data or vector data, and map vector data carries out rasterizing to it if, otherwise enter step (4).Wherein rasterizing process purpose is that this map vector data is transformed into to view data.
(4), obtain the rectangular area graph region that needs coupling: the coordinate of supposing the desired target area map boundary line means with (X, Y), obtains middle minimum and maximum X, the Y value of coordinate (X, Y) of desired target area map boundary line by algorithm, supposes that the X minimum value is X 0, maximal value is X n, the 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, on the rasterizing map, marking rectangle, the map area that this rectangle is surrounded extracts as the rectangular area graph region of need coupling.The rectangular area graph region of this step energy automatic acquisition complete packet are containing the desired target area map that need to obtain, and the rectangular area graph region area also need mated tapers to minimum simultaneously.
(5), boundary vector data rasterizing: the boundary vector data to the step desired target area map that (2) the middle needs of preparing obtain are carried out rasterizing;
(6), template construct: the rectangular area graph region template of the same size of making according to demand the need coupling of obtaining in (4) with step, utilize step (5) in boundary vector data after rasterizing draw out the appointed area map boundary line on template, and different pieces of information is partly arranged to different transparence values, the part that map boundary line surrounds is set to transparent white, and remainder is arranged to opaque black;
(7), template matches: the template of making is covered on the rectangular area graph region that (4) step obtained and mated, being set to the black non transparent part on template is hidden the map area that does not need to obtain, it is not shown, white transparent part shows the appointed area map picture that need to obtain.
(8), appointed area map output: the appointed area map picture obtained is exported again, the result of exporting is shown, obtain the map datum of appointed area.
Embodiment 2: according to the operating process of the invention described above method, existing with shown in real Fig. 2,3,4,5 and 6, the concrete operation steps of the inventive method is described:
(2) (1) step reach step, and all set need on this map, carry out needs the desired target area map boundary line vector data obtained in map datum A that map obtains and this map.
(3) step, judged the map datum of preparing, if map datum A be map vector data carry out rasterizing, otherwise enter step (4), now map datum A is carried out to rasterizing, obtain the map picture 200 after rasterizing as shown in Figure 2;
Map vector data rasterizing principle wherein: the main resolute of map datum storage class and lattice structure, the map datum that the present invention is lattice structure by the main cause of map vector data rasterizing is to be the evenly tight adjacent grid array of size by map partitioning, each grid is defined by row, column as a pixel or pixel, and the attribute type that comprises this pixel of coded representation or value.The template of obtaining the appointed area map is also the grid data form, so must be by Grid of vector data in order to utilize template to obtain map datum.
(4), described obtaining needs the rectangular area graph region of mating to step, obtains coordinate (X, Y) middle minimum and maximum X, Y value, the i.e. X of presentation graphs 2 appointed area map boundary lines by algorithm 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 need that mark on the rasterizing map are the rectangle 201 of graph region matchingly, the map area that this rectangle is surrounded extracts as the rectangular area graph region 300 that needs coupling, as shown in Figure 3.
(5), to the border Grid of vector data, the present embodiment is incorporated in step by this step to carry out in (2) step.
Step (6), the making of template: referring to Fig. 4, obtain shown in making and Fig. 3 and need coupling rectangular area graph region 300 templates of the same size, utilize the map boundary line data after rasterizing in step (5) to draw template, boundary vector position consistency with appointment area map in the rectangular area graph region 300 that guarantees to be plotted in the need coupling that map boundary line vector position on template and step obtain in (4), by the transparency of template is set, the region division that map boundary line is surrounded is white transparent region 401, and border is set to black non transparent zone 402 with periphery area.
Step (7), template matches: as shown in Figure 5, the template 400 of making is covered on the rectangular area graph region 300 of the need coupling that Fig. 3 extracts and mated, the black non transparent zone 402 of template hides not selecteed map area, and white transparent region 401 shows needs the appointed area map 501 obtained.
Template matches process wherein: graph data is comprised of numerous tiny pixel point value in fact, and the different assignment of pixel demonstrates different colors.Template is the plate that one deck hides, current rasterizing map image data are blocked, give different values to the grid that forms template, whether selectedly be used to refer to each pixel, when being mated with rasterizing map image data, selecteed pixel is that white transparent region is shown, is not shown by the part that opaque black region hid, thereby certain part of map image is separated.
Step (8), export: the appointed area map of acquisition 501 is carried out to output display again, obtain the appointed area map, as shown in Figure 6 by the appointed area map.
The present invention compares with existing correlation technique; ground picture capturing method for the map datum of issuing in net environment correlation map application service system; the present invention can obtain the appointed area map datum dynamically by self-defined template; the user can accurately and flexibly obtain its needed map area whereby; and can in the situation that by other zones, do not disturbed operations such as this area map being inquired about to editor, can also protect original map data not by edit-modify.The existing correlation technique of visible the present invention has more practicality and reliability.
The present invention can be applicable in the net environment map application service system of industry-by-industry, and application is very extensive, and market outlook are very optimistic.

Claims (2)

1. the dynamic map acquisition methods of a net environment based on template is characterized in that: operation according to the following steps:
(1), map datum is prepared: the target map data A that preparation need to be obtained;
(2), the boundary vector data are prepared: the boundary vector data of the desired target area map that preparation need to be obtained;
(3), map data rasterizing: the target map data that (1) determining step is prepared are raster data or vector data, are that map vector data carries out rasterizing to it, otherwise enter next step;
(4), obtain the rectangular area graph region that needs coupling: the coordinate of supposing the desired target area map boundary line means with (X, Y), obtains middle minimum and maximum X, the Y value of coordinate (X, Y) of desired target area map boundary line by algorithm, supposes that the X minimum value is X 0, maximal value is X n, the 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, on the rasterizing map, marking rectangle, the map area that this rectangle is surrounded is as the rectangular area graph region of need coupling;
(5), boundary vector data rasterizing: the boundary vector data to the step desired target area map that (2) the middle needs of preparing obtain are carried out rasterizing;
(6), template construct: the rectangular area graph region template of the same size of making according to demand the need coupling of obtaining in (4) with step, utilize step (5) in boundary vector data after rasterizing draw out the appointed area map boundary line on template, and different pieces of information is partly arranged to different transparence values, whether selectedly be used to refer to each pixel;
(7), template matches: the template of making is covered on the rectangular area graph region that (4) step obtained and mated, being set to opaque section on template is hidden the map area that does not need to obtain, it is not shown, transparent part shows the appointed area map picture that need to obtain;
(8), appointed area map output: the appointed area map picture obtained is exported again, the result of exporting is shown, obtain the map datum of appointed area.
2. the dynamic map acquisition methods of net environment according to claim 1 based on template, it is characterized in that: step partly arranges different transparence values to different pieces of information described in (6), be that the part that map boundary line surrounds is set to transparent white, remainder is arranged to opaque black.
CN201310352834.4A 2013-08-14 2013-08-14 Template-based dynamic map obtaining method in network environment Active CN103473984B (en)

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 true CN103473984A (en) 2013-12-25
CN103473984B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678682A (en) * 2013-12-26 2014-03-26 中国科学院遥感与数字地球研究所 Mass grid data processing and management method based on abstract templates
CN104731883A (en) * 2015-03-11 2015-06-24 北京农业信息技术研究中心 Network map display method and system
CN110110028A (en) * 2019-05-09 2019-08-09 浪潮软件集团有限公司 A kind of method and system showing map by self defined area towards OGC standard
CN111143711A (en) * 2019-12-23 2020-05-12 贝壳技术有限公司 Object searching method and system
CN111666365A (en) * 2020-05-27 2020-09-15 北京地林伟业科技股份有限公司 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
CN117252941B (en) * 2023-09-18 2024-05-31 青岛卓易策略数据信息技术有限公司 Grid map drawing method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030037059A1 (en) * 2001-08-14 2003-02-20 Xiangheng Yang Method for determining the intersection of polygons used to represent geographic features
US20030135329A1 (en) * 2000-09-15 2003-07-17 Carroll Ernest A. Preparing and disseminating digitized geospatial data for areas having irregular boundaries
CN101388157A (en) * 2008-09-25 2009-03-18 炬力集成电路设计有限公司 Electronic map display packing, apparatus and equipment
CN101388043A (en) * 2008-09-26 2009-03-18 北京航空航天大学 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135329A1 (en) * 2000-09-15 2003-07-17 Carroll Ernest A. Preparing and disseminating digitized geospatial data for areas having irregular boundaries
US20030037059A1 (en) * 2001-08-14 2003-02-20 Xiangheng Yang Method for determining the intersection of polygons used to represent geographic features
CN101388157A (en) * 2008-09-25 2009-03-18 炬力集成电路设计有限公司 Electronic map display packing, apparatus and equipment
CN101388043A (en) * 2008-09-26 2009-03-18 北京航空航天大学 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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678682A (en) * 2013-12-26 2014-03-26 中国科学院遥感与数字地球研究所 Mass grid data processing and management method based on abstract templates
CN103678682B (en) * 2013-12-26 2019-10-11 中国科学院遥感与数字地球研究所 Magnanimity raster data processing and management method based on abstraction templates
CN104731883A (en) * 2015-03-11 2015-06-24 北京农业信息技术研究中心 Network map display method and system
CN104731883B (en) * 2015-03-11 2017-11-17 北京农业信息技术研究中心 Method for displaying network map and system
CN110110028A (en) * 2019-05-09 2019-08-09 浪潮软件集团有限公司 A kind of method and system showing map by self defined area towards OGC standard
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
CN111666365A (en) * 2020-05-27 2020-09-15 北京地林伟业科技股份有限公司 Method for rapidly filtering and displaying electronic map service according to authorized area
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
CN117252941B (en) * 2023-09-18 2024-05-31 青岛卓易策略数据信息技术有限公司 Grid map drawing method

Also Published As

Publication number Publication date
CN103473984B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN108228183B (en) Front-end interface code generation method and device, electronic equipment and storage medium
US20180052593A1 (en) Providing visual selection of map data for a digital map
CN103093484B (en) A kind of method of remote sensing image batch integrated with vector data drawing
CN103473984B (en) Template-based dynamic map obtaining method in network environment
CN103970518B (en) A kind of the 3D rendering method and device of window logic
CN106484396A (en) Night changing method, device and terminal unit
CN109146991B (en) Picture format conversion method, device, equipment and storage medium
CN105354022A (en) Generation method and device of page layout file
CN102663800A (en) City building complex and rendering method considering city image
CN108763472A (en) Three-dimensional data visible apparatus and method
KR101552828B1 (en) Method for Obtaining Polygon Information of Three-dimensional Object Model
CN102157003A (en) Automatic configuration method for annotation label of map under digital environment
CN106383881A (en) Navigation secondary development control system based on cross-platform graphic middleware
CN104462682A (en) Interactive welding joint groove graph drawing and parameter tagging method
CN105117404B (en) Based on the chart display defect optimization method under subtype and data feature scene
CN106204702A (en) The 3D effect of input word generates, inputs 3D display packing and the system of word
CN106846431B (en) Unified Web graph drawing system supporting multiple expression forms
CN102509314A (en) Quick generating method for sunlight greenhouse construction drawing
JP6863675B2 (en) Image split
CN105023290A (en) 3D scenery modeling visualization method and system based on AutoCAD platform
CN103617073A (en) Method for analyzing and displaying picture file of electrical power system
CN103558643A (en) Geological radar fine processing method and system
CN102938230B (en) Dynamic layering rendering expression method of two-dimensional scalar field on electronic map
US9405433B1 (en) Editing element attributes of a design within the user interface view, and applications thereof
CN111080518B (en) Point cloud image stitching method and device and storage medium

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
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)