CN103020250B - The map-indication method of a kind of Distribution GIS and device - Google Patents

The map-indication method of a kind of Distribution GIS and device Download PDF

Info

Publication number
CN103020250B
CN103020250B CN201210556883.5A CN201210556883A CN103020250B CN 103020250 B CN103020250 B CN 103020250B CN 201210556883 A CN201210556883 A CN 201210556883A CN 103020250 B CN103020250 B CN 103020250B
Authority
CN
China
Prior art keywords
map
displaying ratio
gis
client
map layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210556883.5A
Other languages
Chinese (zh)
Other versions
CN103020250A (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.)
Vtron Group Co Ltd
Original Assignee
Vtron Technologies Ltd
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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201210556883.5A priority Critical patent/CN103020250B/en
Publication of CN103020250A publication Critical patent/CN103020250A/en
Application granted granted Critical
Publication of CN103020250B publication Critical patent/CN103020250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the map-indication method of a kind of Distribution GIS, including: obtain the displaying ratio of GIS client;The displaying ratio of several map layers stored with GIS display end by the displaying ratio of described client compares, and according to comparative result, selects the map layer that displaying ratio is same or like;Obtaining map slice of data from the map layer selected and carry out Zoom display, the displaying ratio of the map slice of data after scaling is identical with the displaying ratio of GIS client.The embodiment of the present invention also provides for corresponding device.The map that technical solution of the present invention can make GIS display end and GIS client show is completely the same.

Description

The map-indication method of a kind of Distribution GIS and device
Technical field
The present invention relates to geographic information system technology field, be specifically related to map-indication method and the device of a kind of Distribution GIS.
Background technology
In existing GIS-Geographic Information System (GeographicInformationSystem, GIS): GIS client can arbitrarily add map layer, and data are usually vector, it is possible to is grid;GIS display end is deployed on the processor spelling wall, and in order to enable to show faster map, the map datum in GIS display end is usually grid, specifically map slice of data.Map section is that the figure instrument of cutting using specialty is according to the overlapped information of map in client, original map data creating is become the map layer of some ranks, the map layer of different stage has different scales, comprises the map section of some same sizes in each map layer.
When GIS client needs the map denotation carrying out certain ratio, it needs to communicate with GIS display end, and notice GIS display end needs spelling the map showing this ratio on wall.This mode has such a problem, because the map of GIS client can show with arbitrary proportion, and spells the map datum of only several ratios on the GIS display end of wall end.Therefore, when the ratio that both displays use is different, the map that GIS client and spelling wall show just has difference.
Summary of the invention
The embodiment of the present invention provides the map-indication method of a kind of Distribution GIS and device, if during to solve that in prior art, the displaying ratio of GIS display end and GIS client is inconsistent, and the differentiated technical problem of map causing both to show.
The map-indication method of a kind of Distribution GIS, it is characterised in that including:
Obtain the displaying ratio of GIS client;
The displaying ratio of several map layers stored with GIS display end by the displaying ratio of described GIS client compares, and according to comparative result, selects the map layer that displaying ratio is same or like;
Obtaining map from the map layer selected cut into slices and carry out Zoom display, the displaying ratio of the map section after scaling is identical with the displaying ratio of GIS client.
The map display of a kind of Distribution GIS, it is characterised in that including:
Acquisition module, for obtaining the displaying ratio of GIS client;
Selecting module, the displaying ratio of several map layers for being stored with GIS display end by the displaying ratio of described GIS client compares, and according to comparative result, selects one layer of map section that displaying ratio is same or like;
Zoom display module, cuts into slices for obtaining map from the map layer selected and carries out Zoom display, and the displaying ratio of the map section after scaling is identical with the displaying ratio of GIS client.
The embodiment of the present invention uses the displaying ratio of the some map layers stored with GIS display end by the displaying ratio of GIS client to compare, according to comparative result, select the map layer that displaying ratio is same or like, obtaining map slice of data from this map layer selected and carry out the technical scheme of Zoom display, the map that GIS display end and GIS client can be made to show is completely the same.
Accompanying drawing explanation
Fig. 1 is the flow chart of the map-indication method of the Distribution GIS of one embodiment of the invention;
Fig. 2 is the flow chart of the map-indication method of the Distribution GIS of another embodiment of the present invention;
Fig. 3 is the schematic diagram at the center of the indication range that scaling map moves to GIS display end;
Fig. 4 is the schematic diagram of the map display of the Distribution GIS of one embodiment of the invention.
Detailed description of the invention
The embodiment of the present invention provides the map-indication method of a kind of Distribution GIS, if during to solve that in prior art, the displaying ratio of GIS display end and GIS client is inconsistent, and the differentiated technical problem of map causing both to show.The embodiment of the present invention also provides for corresponding device.It is described in detail individually below.
Embodiment one,
Refer to Fig. 1, the map-indication method of the Distribution GIS that the embodiment of the present invention provides, including:
110, the displaying ratio of GIS client is obtained.
Generally, GIS display end operates on the processor spelling wall, and GIS client operates on common PC, and both are attached communication by ICP/IP protocol.Wherein, in GIS display end, the map datum of storage includes that several have the map layer of different displaying ratio.
The map title is 3dgz hypothetically, has " 0 ", " 1 ", " 2 ", " 3 " totally four map layers, and corresponding displaying ratio is 1/128000,1/64000,1/32000,1/16000 respectively;Assuming that in map layer, the size of each map section is PicW*PicH, such as: 256*256, the resolution spelling wall is WallW*WallH, such as 7680*7680.
The displaying ratio assuming certain moment GIS client is 1/32001, and GIS client notification GIS display end carries out the 3dgz map datum of this ratio and shows, GIS display end obtains, by this notice, name map and the displaying ratio thereof that GIS client shows.
120, the displaying ratio of several map layers stored with GIS display end by the displaying ratio of described GIS client compares, and according to comparative result, selects the map layer that displaying ratio is same or like.
GIS display end title according to the map and displaying ratio thereof make a look up in locally stored, select a suitable map layer of displaying ratio.Described properly refers to that displaying ratio is same or like.
As in figure 2 it is shown, this selection course specifically can be as described below:
If the displaying ratio of described client is identical with the displaying ratio of certain map layer, select this map layer;
If the displaying ratio of described client is less than the minimum displaying ratio of several described map layers, such as 1/128000, selecting the map layer with this minimum displaying ratio, such as map layer " 0 ", follow-up amplification shows;
If the displaying ratio of described client is more than the maximum displaying ratio of described several map layers, such as 1/16000, select the map layer with this maximum displaying ratio, such as map layer " 3 ", follow-up reduce display;
If the displaying ratio of described client is between the displaying ratio of certain two map layer, determine whether that whether the displaying ratio of described client is less than the threshold values preset, if being less than, then select the map layer wherein with less displaying ratio, otherwise, the map layer wherein with bigger displaying ratio is selected.Described default threshold values refers to the threshold values in the two map layer with the map layer of less displaying ratio.Such as, the displaying ratio of GIS client is 1/32001 between 1/64000 and 1/32000, more than the threshold values preset, then selects the map layer of 1/32000 layer, follow-up reduces display.
The meaning chosen of the threshold values of each map layer is:
If the data choosing ratio value big reduce, its advantage is not affect display quality, but due to image down, therefore the viewing area of whole combination can not be filled up, so GIS display end needs again process new map slice of data and show, this needs to expend certain time, if map slice numbers too much can have a strong impact on the frame per second of display, produces poor Consumer's Experience;
If the data selecting small scale are amplified, advantage is to need not process too much map section, but the display effect of map worse and worse, such as can be likely to occur the image of mosaic, reason is that the Pixel Information that map is cut into slices uses multiple pixels of screen to show.
Therefore, coefficient threshold can be put according to different demands are reduced in concrete application.Here, the present invention propose a quality preferential time threshold values reference algorithm.The formula of this algorithm foundation is (WallW/PicW/K) * (WallH/PicH/K) * T≤(1/Fps), and wherein, T is the time that GIS display end processes every pictures, and unit is the second;K is zoom factor;Fps represents frame per second, and unit is the second, represents the frame number of display per second, and Fps value is arranged by user oneself.When above-mentioned formula is false, selecting the map layer that displaying ratio is less, follow-up amplification shows;Otherwise, select the bigger map layer of displaying ratio, follow-up reduce display.Described threshold values is the function of panntographic system K, when the equal sign in above-mentioned formula is set up, zoom factor K can be calculated, according to above-mentioned formula, K square with map section size PicW*PicH be inversely proportional to, PicW*PicH displaying ratio with place map layer again has the proportionate relationship determined, say, that described threshold values is also the function of the displaying ratio of map layer.If assuming K=S1/S0, can make S1 is described threshold values.
130, obtaining map from the map layer selected cut into slices and carry out Zoom display, the displaying ratio of the map section of Zoom display is identical with the displaying ratio of GIS client.
From the map layer selected, obtain map slice of data and carry out Zoom display and include:
1301, determine the indication range of GIS display end, from the map layer selected, obtain map slice of data according to this indication range.
Under the spelling size of wall, central point geographical coordinate and currently displaying ratio according to current GIS display end place, the resolution of map section can be calculated spelling wall needs to show the geographic range of map, then belongs to the map in this geographic range according to geographic range from locally stored middle lookup and cuts into slices.The algorithm calculating geographic range is as follows: assume to spell wall central point geographical coordinate for (WallGeoX, WallGeoY);K is zoom factor, equal to the displaying ratio of GIS client figure layer divided by the displaying ratio of selected map layer, determine that the formula of geographic range is as follows: abscissa x meets (WallGeoX-(WallW/2) * R/K=< x≤(WallGeoX+ (WallW/2) * R/K;Vertical coordinate y meets (WallGeoY-(WallH/2) * R/K)=< y≤(WallGeoY+ (WallH/2) * R/K).
1302, each map section for obtaining creates texture mapping object, and draws each texture mapping, it is thus achieved that scaling map, wherein, and the starting point coordinate of each texture and length and be the most all the integral multiple of zoom factor K.
Creating a texture mapping object for the section of each map, wherein starting point coordinate x*K and y*K and the width of texture mapping is respectively set to PicGeoX*K, PicGeoY*K, PicW*K, PicH*K with height;Starting point coordinate has the change taking advantage of K to be in order to after making map section scaling, energy is seamless spliced.After drawing each texture mapping, what these texture mapping were complete is spliced into a big map image.
1303, the center of the indication range that scaling map is moved to GIS display end shows, the central point of the central point of scaling map and the indication range of GIS display end overlaps.
The physical zoom of map image is to carry out based on the geographical coordinate spelling wall central point corresponding, so the central point of map image should be corresponding with the central point of spelling wall before and after Suo Fang.As shown in Figure 3, it is assumed that the center point coordinate of the map image being spliced into is (ImageGeoX, ImageGeoY), reply map image translates, and makes this central point (ImageGeoX, ImageGeoY) overlap with spelling wall central point (WallGeoX, WallGeoY).
To sum up, embodiments provide the map-indication method of a kind of Distribution GIS, the method uses the displaying ratio of the some map layers stored with GIS display end by the displaying ratio of GIS client to compare, according to comparative result, select the map layer that displaying ratio is same or like, obtaining map slice of data from this map layer selected and carry out the technical scheme of Zoom display, the map that GIS display end and GIS client can be made to show is completely the same.
Using the present embodiment method, GIS display end only needs a small amount of map layer data can carry out the display of map of various different displaying ratio.Wherein, it is contemplated that performance and the factor of display effect, the present embodiment method is that each map layer arranges a threshold values, can be selected by user, so that choosing more flexible to map slice of data.
Embodiment two,
Refer to Fig. 4, the map display of the Distribution GIS that the embodiment of the present invention provides, including:
Acquisition module 210, for obtaining the displaying ratio of GIS client;
Selecting module 220, the displaying ratio of several map layers for being stored with GIS display end by the displaying ratio of described GIS client compares, and according to comparative result, selects one layer of map section that displaying ratio is same or like;
Zoom display module 230, cuts into slices for obtaining map from the map layer selected and carries out Zoom display, and the displaying ratio of the map section after scaling is identical with the displaying ratio of GIS client.
Further, described selection module 220 specifically may be used for:
If the displaying ratio of described client is less than the minimum displaying ratio of several described map layers, select the map layer with this minimum displaying ratio;
If the displaying ratio of described client is more than the maximum displaying ratio of several described map layers, select the map layer with this maximum displaying ratio;
If the displaying ratio of described client is between the displaying ratio of certain two map layer, determine whether that whether the displaying ratio of described client is less than the threshold values preset, if being less than, then select the map layer wherein with less displaying ratio, otherwise, the map layer wherein with bigger displaying ratio is selected.
Wherein, the threshold values of certain map layer can be that the displaying ratio of this map layer is multiplied by K × K/FPS × T, and wherein, K is zoom factor, and FPS is frame per second, and T is the time that GIS display end processes every pictures.
Further, described Zoom display module 230 may include that
Acquiring unit, for determining the indication range of GIS display end, obtains map slice of data according to this indication range from the map layer selected;
Unit for scaling, creates texture mapping object for each map slice of data for obtaining, and draws each texture mapping, it is thus achieved that scaling map, wherein, and the starting point coordinate of each texture and length and be the most all the integral multiple of zoom factor K;
Translation unit, the center of the indication range for scaling map is moved to GIS display end shows, the central point of the central point of scaling map and the indication range of GIS display end overlaps.
The map display of above-mentioned Distribution GIS, can be integrated in GIS display end.
To sum up, embodiments provide the map display of a kind of Distribution GIS, the displaying ratio of some map layers that the displaying ratio of GIS client stores with GIS display end can be compared by this device, according to comparative result, select the map layer that displaying ratio is same or like, from this map layer selected, obtain map slice of data and carry out Zoom display, it is thus possible to the map making GIS display end and GIS client show is completely the same.
Map-indication method and the device of the Distribution GIS provided the embodiment of the present invention above are described in detail, but the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention, should not be construed as limitation of the present invention.Those skilled in the art in the technical scope that the invention discloses, the change that can readily occur in or replacement, all should contain within protection scope of the present invention.

Claims (6)

1. the map-indication method of a Distribution GIS, it is characterised in that including:
Obtain the displaying ratio of GIS client;
The displaying ratio of several map layers stored with GIS display end by the displaying ratio of described GIS client compares, according to comparative result, select the map layer that displaying ratio is same or like, wherein, each map layer arranges a threshold values, described threshold values is the function of the displaying ratio of map layer, and described threshold values is used for determining zoom factor;
Obtaining map from the map layer selected cut into slices and carry out Zoom display, the displaying ratio of the map section after scaling is identical with the displaying ratio of GIS client.
Method the most according to claim 1, it is characterised in that described according to comparative result, the map layer selecting displaying ratio close includes:
If the displaying ratio of described client is less than the minimum displaying ratio of several described map layers, select the map layer with this minimum displaying ratio;
If the displaying ratio of described client is more than the maximum displaying ratio of several described map layers, select the map layer with this maximum displaying ratio;
If the displaying ratio of described client is between the displaying ratio of certain two map layer, further the displaying ratio of described client is substituted into the threshold values preset, and judge whether the equilibrium relationships corresponding to described default threshold values is set up, if being false, then select the map layer wherein with less displaying ratio, otherwise, the map layer wherein with bigger displaying ratio is selected.
Method the most according to claim 1, it is characterised in that described obtain map slice of data from the map layer selected and carry out Zoom display and include:
Determine the indication range of GIS display end, from the map layer selected, obtain map slice of data according to this indication range;
Each map section for obtaining creates texture mapping object, and draws each texture mapping, it is thus achieved that scaling map, wherein, the starting point coordinate of each texture and length and height are all the integral multiples of zoom factor K;
The center of the indication range that scaling map is moved to GIS display end shows, the central point of the central point of scaling map and the indication range of GIS display end overlaps.
4. the map display of a Distribution GIS, it is characterised in that including:
Acquisition module, for obtaining the displaying ratio of GIS client;
Select module, the displaying ratio of several map layers for being stored with GIS display end by the displaying ratio of described GIS client compares, according to comparative result, select one layer of map section that displaying ratio is same or like, wherein, each map layer arranges a threshold values, and described threshold values is the function of the displaying ratio of map layer, and described threshold values is used for determining zoom factor;
Zoom display module, cuts into slices for obtaining map from the map layer selected and carries out Zoom display, and the displaying ratio of the map section after scaling is identical with the displaying ratio of GIS client.
Device the most according to claim 4, it is characterised in that described selection module specifically for:
If the displaying ratio of described client is less than the minimum displaying ratio of several described map layers, select the map layer with this minimum displaying ratio;
If the displaying ratio of described client is more than the maximum displaying ratio of several described map layers, select the map layer with this maximum displaying ratio;
If the displaying ratio of described client is between the displaying ratio of certain two map layer, further the displaying ratio of described client is substituted into the threshold values preset, and judge whether the equilibrium relationships corresponding to described default threshold values is set up, if being false, then select the map layer wherein with less displaying ratio, otherwise, the map layer wherein with bigger displaying ratio is selected.
Device the most according to claim 4, it is characterised in that described Zoom display module includes:
Acquiring unit, for determining the indication range of GIS display end, obtains map slice of data according to this indication range from the map layer selected;
Unit for scaling, creates texture mapping object for each map section for obtaining, and draws each texture mapping, it is thus achieved that scaling map, wherein, the starting point coordinate of each texture and length and height are all the integral multiples of zoom factor K;
Translation unit, the center of the indication range for scaling map is moved to GIS display end shows, the central point of the central point of scaling map and the indication range of GIS display end overlaps.
CN201210556883.5A 2012-12-18 2012-12-18 The map-indication method of a kind of Distribution GIS and device Active CN103020250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210556883.5A CN103020250B (en) 2012-12-18 2012-12-18 The map-indication method of a kind of Distribution GIS and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210556883.5A CN103020250B (en) 2012-12-18 2012-12-18 The map-indication method of a kind of Distribution GIS and device

Publications (2)

Publication Number Publication Date
CN103020250A CN103020250A (en) 2013-04-03
CN103020250B true CN103020250B (en) 2016-08-03

Family

ID=47968853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210556883.5A Active CN103020250B (en) 2012-12-18 2012-12-18 The map-indication method of a kind of Distribution GIS and device

Country Status (1)

Country Link
CN (1) CN103020250B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104599324A (en) * 2015-02-06 2015-05-06 浪潮集团有限公司 Map data loading method and map data loading device based on GIS (geographic information system) platform
US9665924B2 (en) 2015-04-01 2017-05-30 Microsoft Technology Licensing, Llc Prioritized requesting of mapping layers
CN105069105B (en) * 2015-08-03 2019-04-16 广东威创视讯科技股份有限公司 Factor data display methods and system
CN106488402B (en) * 2015-09-01 2019-11-26 腾讯科技(深圳)有限公司 Ground is made an inventory rendering method and relevant device
CN106227495B (en) * 2016-08-29 2019-07-26 北京易华录信息技术股份有限公司 A kind of data display method, apparatus and system
CN106803402B (en) * 2017-04-05 2019-04-16 山东慧行天下文化传媒有限公司 Intelligent guide guide system and method based on the classification display of map pantograph ratio
CN108648815A (en) * 2018-04-26 2018-10-12 沈阳东软医疗系统有限公司 Medical Devices state display method, device, equipment and storage medium
CN109657023B (en) * 2018-12-11 2020-02-07 山东慧行天下文化传媒有限公司 Scenic spot dynamic electronic map drawing method, server and system
CN110418056A (en) * 2019-07-16 2019-11-05 Oppo广东移动通信有限公司 A kind of image processing method, device, storage medium and electronic equipment
CN111161385B (en) * 2019-12-30 2023-10-10 北京奇艺世纪科技有限公司 Image rendering method and device, electronic equipment and storage medium
CN112697132A (en) * 2020-12-21 2021-04-23 北京金和网络股份有限公司 Positioning method, device and system based on GIS

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2306337A1 (en) * 2009-09-28 2011-04-06 E-Technology Masters' srl Procedure for collecting street numbers for geographic information system (GIS)
CN102800048A (en) * 2012-07-06 2012-11-28 广州亿程交通信息有限公司 Electronic map scaling display method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2306337A1 (en) * 2009-09-28 2011-04-06 E-Technology Masters' srl Procedure for collecting street numbers for geographic information system (GIS)
CN102800048A (en) * 2012-07-06 2012-11-28 广州亿程交通信息有限公司 Electronic map scaling display method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
国界电子地图自适应显示的研究与实践;白小双;《中国优秀硕士学位论文全文数据库》;20120215;第3、4页 *

Also Published As

Publication number Publication date
CN103020250A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103020250B (en) The map-indication method of a kind of Distribution GIS and device
CN110347769B (en) Processing method, device, equipment and storage medium for multi-level map tiles
US9852534B2 (en) Method and apparatus for contextually varying imagery on a map
US8803901B1 (en) Map rendering using interpolation of style parameters across zoom levels
AU2010218137B2 (en) System and method of indicating transition between street level images
CN110704770B (en) Display method and device for expansion tile map based on WebGIS environment
CN101783010B (en) System and method for generating electronic chart pictures capable of being seamlessly spliced
JP5404956B2 (en) Information distribution apparatus, information distribution system, information distribution method, and portable communication device
CN105865484B (en) A kind of display methods and device of navigation information
CN106775333A (en) A kind of screenshotss method and device
CN103686064A (en) Picture segment display method and client-side
CN101578636A (en) Displaying elevation information from a digital map
CN111104615A (en) Meteorological element superposition display method based on vector electronic chart
US20150130845A1 (en) Out-of-viewpoint indicators for relevant map features
CN110580273B (en) Map GIS data processing and storing method and device and readable storage medium
EP2804149B1 (en) Water representation by color gradients on a digital map
CN102024377B (en) 3D map layered display method and device
CN107526576B (en) Method and device for displaying view components of page
CN111125206B (en) Air pollutant data processing method and device
CN101539937A (en) Method for fast display of vast images
CN101539939B (en) Method for fast display of vast images
CN115049758A (en) WebGIS-based thematic map making method, server and storage medium
CN114611036A (en) Gis data processing and rendering method
JP6132345B2 (en) Display device, method and program for controlling display of divided map image according to display ratio
CN111858822A (en) Method and device for displaying spliced pictures of GIS map

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Kezhu road high tech Industrial Development Zone, Guangzhou city of Guangdong Province, No. 233 510670

Patentee after: Wei Chong group Limited by Share Ltd

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd.