A kind of acquisition methods of the thematic map based on the change of engineer's scale rank
Technical field
The invention belongs to the technical field that thematic map is shown online, relate to a kind of thematic map acquisition methods based on the change of engineer's scale rank.
Background technology
Thematic map refers to outstanding and represents one or more key elements or spontaneous phenomenon more imperfectly, makes the map of map content Focus.The content and form of thematic map comprises nature, social economy etc., lays particular emphasis on the embodiment of topical content, for the special-purpose such as scientific research, national economy.Traditional thematic map or thematic atlas are based on galley, and fabrication cycle is long, and update time is slow.Along with the development of development especially Web GIS technology and the distributed computing technology of computer technology, thematic map is shown in the mode of online thematic map, namely computer technology is utilized, store in a digital manner, and based on screen display and inquiry, network browsed and uses, improve the interactivity of thematic map, reusability and dirigibility.
At present, the Production and application of online thematic map has two kinds of modes.One is that drawing is divided into two independently processes with application, and be published on line by thematic map after drawing course is completed by graphics software, user simply can only select the whether visual of layer; One is that drawing completes all on line with application, and after user selects thematic map type, the data of system reading database generate thematic map in real time.The thematic map that these two kinds of modes make is all isolated, after thematic map generates, content is immutable, does not associate, when after map scale change and geographical base map content changing with map scale rank, thematic map content can not along with changing, and topical content and geographical base map disconnect.
Summary of the invention
The present invention proposes a kind of acquisition methods of the thematic map based on the change of engineer's scale rank, the technical matters that the content solving the thematic data existed in prior art can not change along with the change of engineer's scale rank.
The technical solution used in the present invention is, the acquisition methods based on the thematic map of engineer's scale rank change comprises the following steps:
Step 1: thematic map data are issued into the service of section thematic maps by third party's map software, and 10,20,30,40,50,60,70,80,90,1,000 level of zoom are set, the interface that system is provided by third party's map software obtains thematic maps; User obtains the engineer's scale rank of active user's convergent-divergent by mouse convergent-divergent map according to demand, system by the interface that third party's map software provides;
Step 2: system judges the administrative division rank under this engineer's scale rank according to obtained engineer's scale rank, obtain screen ranges coordinate simultaneously, screen coordinate is changed into geographic coordinate by the interface provided by third party's map software, then sends administrative division rank and geographic coordinate range requesting query administrative division code to map data base;
Step 3: map data base judges this administrative division of administrative division rank in geographic coordinate range according to the administrative division rank obtained and geographic coordinate range, inquire about from the map datum attribute list of correspondence and obtain administrative division code, by administrative division code retrieval system;
Step 4: the administrative division code of acquisition is sent to thematic data base by system, the thematic data that requesting query is corresponding;
Step 5: thematic data base inquires about thematic data in a database according to the administrative division code obtained, and returns thematic data to system;
Step 6: system, according to the thematic data obtained and the thematic map pattern of presetting, generates statistics thematic map, and shows in each administrative division in screen ranges;
Step 7: when user continues convergent-divergent map, system repeated execution of steps 1-6, realizes thematic map and changes based on the change of engineer's scale rank.
The invention has the beneficial effects as follows: the engineer's scale rank that contemplated by the invention user's convergent-divergent map, and be applied in the inquiry of administrative division rank, and then by administrative division symbol lookup thematic data, overcome the problem that traditional thematic map implementation causes thematic map and geographical map to disconnect, achieve thematic map based on the change of engineer's scale rank, thematic data can be shown on Online Map dynamically in real time.
Accompanying drawing explanation
Fig. 1 the present invention is based on the process flow diagram that the change of engineer's scale rank obtains thematic map;
Fig. 2 is the thematic map of engineer's scale rank of the present invention when rank is drawn by administrative areas at the county level.
Embodiment
In order to the clearer acquisition methods introducing the thematic map based on the change of engineer's scale rank that the present invention proposes, below in conjunction with accompanying drawing, embodiment is described in detail:
Corresponding diagram 1, the thematic map acquisition methods based on the change of engineer's scale rank that the present invention proposes, comprises the steps:
Step 1: thematic map data are issued into the service of section thematic maps by third party's map software, and ten engineer's scale ranks are set, 10,20,30,40,50,60,70,80,90,1,000 ranks of corresponding diagram 2 scale adjustment bar display; The interface that system is provided by third party's map software obtains thematic maps, the geographical base map of corresponding diagram 2; When user is with mouse convergent-divergent map according to demand, system obtains current required engineer's scale rank by the interface that third party's map software provides;
Step 2: namely system judges city-level, at county level, township level or at village level according to the administrative division rank that obtained engineer's scale rank judges under this engineer's scale rank, obtain screen ranges coordinate simultaneously, screen coordinate is changed into geographic coordinate by the interface provided by third party's map software, then sends administrative division rank and geographic coordinate range requesting query administrative division code to map data base;
Step 3: map data base judges this administrative division of administrative division rank in geographic coordinate range according to the administrative division rank obtained and geographic coordinate range, inquire about from the map datum attribute list of correspondence and obtain administrative division code, by administrative division code retrieval system;
Step 4: the administrative division code of acquisition is sent to thematic data base by system, the thematic data that requesting query is corresponding;
Step 5: thematic data base inquires about thematic data in a database according to the administrative division code obtained, and returns thematic data to system;
Step 6: system, according to the thematic data obtained and the thematic map pattern of presetting, generates statistics thematic map, and shows in each administrative division, the pie chart on corresponding diagram 2 geographical base map and the statistics thematic map of pop-up box in screen ranges;
Step 7: when user continues convergent-divergent map, system repeated execution of steps 1-6, realizes thematic map and changes based on the change of engineer's scale rank.
Wherein, administrative division rank corresponding to engineer's scale rank 10,20,30 3 ranks is city-levels, administrative division rank corresponding to engineer's scale rank 40,50,60 3 ranks is at county level, administrative division rank corresponding to engineer's scale rank 70,80 two ranks is township levels, and administrative division rank corresponding to engineer's scale rank 90,100 two ranks is at village level.Map is zoomed to 10 grades by such as user, then system sends the request of city-level administrative division code within the scope of query screen to map data base.
As Fig. 2, corresponding when engineer's scale rank is 40 is that administrative areas at the county level draw, and the thematic map content that map shows is thematic data at county level.
Contemplated by the invention the engineer's scale rank of user's convergent-divergent map, and be applied in the inquiry of administrative division rank, and then by administrative division symbol lookup thematic data, overcome the problem that in traditional thematic map implementation, thematic map and geographical base map disconnect, achieve thematic map based on the change of engineer's scale rank, thematic data can be shown on Online Map dynamically in real time.