CN108536732A - Support the on-line automatic slice method of servicing of tile map and system of MapGIS67 map engineerings - Google Patents

Support the on-line automatic slice method of servicing of tile map and system of MapGIS67 map engineerings Download PDF

Info

Publication number
CN108536732A
CN108536732A CN201810166751.9A CN201810166751A CN108536732A CN 108536732 A CN108536732 A CN 108536732A CN 201810166751 A CN201810166751 A CN 201810166751A CN 108536732 A CN108536732 A CN 108536732A
Authority
CN
China
Prior art keywords
map
tile
file
mapgis67
client
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
CN201810166751.9A
Other languages
Chinese (zh)
Other versions
CN108536732B (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.)
China University of Geosciences
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 CN201810166751.9A priority Critical patent/CN108536732B/en
Publication of CN108536732A publication Critical patent/CN108536732A/en
Application granted granted Critical
Publication of CN108536732B publication Critical patent/CN108536732B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Instructional Devices (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The on-line automatic slice method of servicing of the tile map of MapGIS67 map engineerings and system are supported the invention discloses a kind of, first in client selection MapGIS67 map engineerings catalogue, directory map file, fontlib and system library directory, tile slicing parameter is set, then server end is passed it to, the tile that server end calls MapGIS10 to provide is sliced interface, it realizes the auto slice of map vector, and it is finally supplied to client call in the form of HTTP service.The most apparent difference of the present invention is to realize is automatically uploaded to server in client by MapGIS67 map vector datas and fontlib associated with it and system library, realize tile auto slice, tile images file is stored in server end in the form of a file, it solves the problems, such as that current MapGIS67 map vectors need manually to be sliced and generates tile data, the present invention can save a large amount of human cost.

Description

Support MapGIS67 map engineerings the on-line automatic slice method of servicing of tile map and System
Technical field
The present invention relates to network geographic information system technology, especially a kind of tile for supporting MapGIS67 map engineerings Scheme on-line automatic slice method of servicing and system.
Background technology
It is that reality is needed in network geographic information system that map vector, which is processed into tile map, and provides tile map service One of existing critical function and the cloud GIS of the industries such as geology, Di Kuang, territory need the major issue solved in building.Ground The industries such as matter, Di Kuang, territory have done a large amount of data collection task, wherein a large amount of map vector data is to use What MapGIS67 was acquired and stored, map engineering is .MPJ files, and MapGIS67 does not provide tile map slice tool, Extremely difficult based on MapGIS67 making tiles, MapGIS10 provides tile slice tool, but needs manual hand manipulation, And the tile data generated is deposited in the database, can not directly issue into Map Service of Network for client call.
Invention content
The technical problem to be solved in the present invention is for the defects in the prior art, with providing a kind of support MapGIS67 The on-line automatic slice method of servicing of tile map and system of figure engineering support MapGIS67 map datums, fontlib and system The online upload in library, based on MapGIS10 provide tile be sliced interface, realize MapGIS67 map engineerings auto slice with Service publication.
According to the present invention wherein on the one hand the present invention is its technical problem of solution, and used technical solution is construction A kind of on-line automatic slice method of servicing of tile map for supporting MapGIS67 map engineerings, client is by MapGIS67 vectors Map datum and it is automatically uploaded to server, server with the associated fontlib of MapGIS67 map vector datas and system library The MapGIS67 map vector datas that are sent according to client and with the associated font of MapGIS67 map vector datas Library and system library, call MapGIS10 provide tile slice interface realize tile auto slice, and will slice after the completion of tile Image file is stored in server end in the form of a file, is supplied to client call in the form of HTTP service, and client can be with Tile images file after the completion of being sliced using map frame invoking server end.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, include the following steps:
S1, client obtain the path of MapGIS67 map project files, MapGIS67 maps project file association Map layer file where catalogue, the catalogue where fontlib used in the MapGIS67 maps project file and Catalogue where system library used in the MapGIS67 maps project file;
S2, client obtain the title tilename preserved after tile dicing strategy, dynamic projection information, tile slice, The beginning rank beginlevel and end rank endlevel of tile slice and tile file directory organizational politics dirFormat;
The data that S3, client obtain step S2 are configured to json format strings as HTTP request parameter, send To server end;
After S4, the server end data that client is sent in receiving step S3, lower newly-built one is saved contents in data The data received, are then saved in newly-built file by a file identical with tile slice preservation title;
S5, server end create the first sub-folder in the newly-built file of step S4, and client will be in step S1 It obtains data and is sent to server end, the MapGIS67 map works that server end obtains the client received in step sl It is catalogue where the path of journey file, the associated map layer file of the MapGIS67 maps project file, described Catalogue and the MapGIS67 maps project file where fontlib used in MapGIS67 map project files are made Catalogue where system library is respectively stored into each catalogue of the first sub-folder;
S6, server end call the offer directory context of MapGIS10 that interface is arranged, and MapGIS10 is accessed MapGIS67 The font library directory and system library directory used when version map datum is respectively set to corresponding catalogue in the first sub-folder;
The dynamic projection information that S7, server end are preserved according to step S4 judges whether to need to carry out dynamic projection, if It is that then server end calls the map document operate interface that MapGIS10 is provided, from corresponding catalogue in the first sub-folder The map project file of MapGIS67 versions is opened, the map document operate interface for calling MapGIS10 to provide enables dynamic and throws Shadow, and map engineering dynamic projection is arranged according to the dynamic projection purpose spatial reference frames spatial in dynamic projection information Purpose spatial reference frames, the map document operate interface for calling MapGIS10 to provide preserve map project file, then jump to Step S8;If it is not, the S8 that then gos to step;
S8, server end create the second sub-folder in the newly-built file of step S4, then call MapGIS10 The tile data library of offer operates class, a tile data library file is created under the second sub-folder catalogue, then open needs The map project file of slice obtains map object, opens the tile data library file created, and tile is called to be sliced interface, Map slice in map project file is saved in tile data library file;
S9, server end create third sub-folder, watt that opening steps S8 is preserved in the file that step S4 is created Sheet data library file, cycle reads each row of every a line in each tile map rank, by tile images data according to step Under the tile file directory organizational politics dirFormat storages to third sub-folder catalogue of rapid S2 settings;
S10, the tile figure layer class provided in client call map development library, create a tile figure layer object, in structure It is URL address formats, the address of construction and the third file by corresponding address architecture when making tile map request address Address correspond to;Map cases class is created, tile figure layer object is added in map cases, realizes the remote of tile map service Journey is called.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, the step S1 specifically comprises the following steps:
S11, pass through the MapGIS67 of the entitled .MPJ of browsing file dialog box select file suffix in client browser Map project file obtains the path of map project file;
S12, it dialog box is browsed by file in client browser selects in S11 associated by map project file File where map layer file obtains the catalogue where the associated map layer file of map project file;
S13, it dialog box is browsed by file in client browser selects in S11 used in map project file Font library file presss from both sides, and folder name is known as clib, obtains the catalogue where fontlib;
S14, it dialog box is browsed by file in client browser selects in S11 used in map project file System library archive, folder name are known as slib, obtain the catalogue where system library.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, the tile dicing strategy that client provides in step S2 includes longitude and latitude dicing strategy and Web Mercator's dicing strategies, and The tile dicing strategy includes parameters described below:The ground that the engineer's scale scale of each tile rank, tile map use when being sliced Figure coordinate origin (originx, originy), tile images format imgformat, tile images pixel size imgsize, Resolution ratio resolution, big figure pixel size groupsize, Transparent color backclr, JPEG picture compression ratio The whether transparent gifTransparentFlag of jpgCompactRate, GIF, whether high quality generates picture qulitymode.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, the purpose space when dynamic projection information includes whether to need dynamic projection dynProject and select dynamic projection Reference system spatial.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, tile file directory organizational politics dirFormat includes:By " rank line number row number picture formats " catalogue form Storage and by the storage of " rank row number line number picture formats " catalogue form.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, step S4, S5 is specially:
Servers' data saves contents the data files being set as under the root %CachePath% of server end website It presss from both sides, after the supplemental characteristic that received server-side is submitted to step S3, saves contents lower newly-built one in data cut with tile first Piece preserves the identical file of title, the fullpath of this document folder be %CachePath% %TileName%, then will The parameter received is saved under %CachePath% %TileName% catalogues, the entitled config.json of file of preservation;
Server end %CachePath% the file of an entitled mapdata is created under %TileName% catalogues Folder, the map datum for storing client upload;Client will obtain data transmission using HTTP transmission modes in step S1 To server end, after server receives data, in server end:Map project file storage catalogue is % CachePath% %TileName% mapdata map, map layer storage catalogue be %CachePath% % TileName% mapdata data, fontlib storage catalogue be %CachePath% %TileName% mapdata Clib, system library storage catalogue be %CachePath% %TileName% mapdata slib.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, the step S6 is specially:
Interface is arranged in the directory context that server end calls MapGIS10 to provide, and setting accesses MapGIS67 version map numbers According to when the font library directory that uses and system library directory be respectively %CachePath% %TileName% mapdata clib With %CachePath% %TileName% mapdata slib.
Preferably, in the on-line automatic slice method of servicing of tile map of the support MapGIS67 map engineerings of the present invention In, the development library in step S10 is Openlayers development libraries, ArcGIS clients development library, the exploitation of SuperMap clients Library, day map development library, MapGIS clients development library or Leaflet development libraries.
According to another aspect of the present invention, the present invention is to solve its technical problem, additionally provides a kind of support MapGIS67 The on-line automatic slice service system of tile map of map engineering comprising with lower module:
Client path acquisition module, the path, described for obtaining MapGIS67 map project files in client Catalogue, the MapGIS67 maps project file where the associated map layer file of MapGIS67 map project files are made Catalogue where system library used in catalogue and the MapGIS67 maps project file where fontlib;
Client configures acquisition module, for obtaining tile dicing strategy, dynamic projection information, tile slice in client The beginning rank beginlevel and end rank endlevel and tile text of the title tilename, tile slice that preserve afterwards Part form of catalogue strategy dirFormat;
Client data sending module, the data for obtaining client configuration acquisition module in client are as HTTP Required parameter is configured to json format strings, is sent to server end;
Server configures preserving module, in server end, client to be sent out in receiving client data sending module After the data sent, saves contents lower newly-built one in data and preserve the identical file of title with tile slice, it then will reception To data be saved in newly-built file;
Server path preserving module, in newly-built file of the server end in server configuration preserving module Newly-built first sub-folder, client will obtain data and be sent to server end, service in step Client path acquisition module The path for the MapGIS67 map project files that device end obtains the client received in Client path acquisition module, institute State catalogue where the associated map layer file of MapGIS67 map project files, MapGIS67 maps project file institute Catalogue point where system library used in catalogue and the MapGIS67 maps project file where the fontlib used It does not store into each catalogue of the first sub-folder;
Interface is arranged in server interface setup module, the directory context for calling MapGIS10 to provide in server end, The font library directory that uses and system library directory are respectively set to the when MapGIS10 is accessed MapGIS67 version map datums Corresponding catalogue in one sub-folder;
Server dynamic projection module, for configuring the dynamic projection that preserving module preserves according to server in server end Information judges whether to need to carry out dynamic projection, if so, the map document operation that server end calls MapGIS10 to provide connects Mouthful, the map project file of MapGIS67 versions is opened from corresponding catalogue in the first sub-folder, and MapGIS10 is called to carry The map document operate interface of confession enables dynamic projection, and is joined according to the purpose space of the dynamic projection in dynamic projection information According to the purpose spatial reference frames for being spatial setting map engineering dynamic projections, the map document behaviour for calling MapGIS10 to provide Make interface, preserve map project file, then calls tile data processing module;If it is not, then calling tile data processing module;
Tile data processing module, for being created in the newly-built file that server configures preserving module in server end The second sub-folder is built, then calls the tile data library that MapGIS10 is provided to operate class, is created under the second sub-folder catalogue A tile data library file is built, then opens the map project file for needing to be sliced, map object is obtained, opens watt created Sheet data library file calls tile to be sliced interface, and the map slice in map project file is saved in tile data library file In;
Organizational politics' processing module, for being created in the newly-built file that server configures preserving module in server end Third sub-folder is built, the tile data library file that tile data processing module preserves is opened, cycle reads each tile map Each row of every a line in rank, by tile images data according to the tile file directory of client configuration acquisition module setting Under organizational politics dirFormat storages to third sub-folder catalogue;
Client data calling module, the tile figure layer class for being provided in client call map development library create one Corresponding address architecture is URL address formats when constructing tile map request address by a tile figure layer object, construction Address is corresponding with the address of third file;Map cases class is created, tile figure layer object is added in map cases, Realize the far call of tile map service.
The present invention can realize MapGIS67 map vector datas and fontlib associated with it and system library it is automatic on Server is passed to, then calls the tile slice interface that MapGIS10 is provided to realize tile auto slice, by tile images file It is stored in server end in the form of a file, is supplied to client call, client that can use in the form of HTTP service The tile images at the map frames invoking server such as Openlayers, Leaflet end are shown solve current MapGIS67 Map vector needs manually to be sliced the problem of generating tile data, need to large batch of MapGIS67 map vectors into When row tile is sliced, advantage of the invention becomes apparent.
Description of the drawings
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a reality of the on-line automatic slice method of servicing of the tile map of the support MapGIS67 map engineerings of the present invention Apply the flow chart of example.
Specific implementation mode
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detail The specific implementation mode of the present invention.
As shown in Figure 1, Fig. 1 be a kind of tile map for supporting 67 map engineerings of MapGIS provided by the invention online from Dynamic slice and method of servicing flow chart, the described method comprises the following steps:
Step 1) passes through the MapGIS of the entitled .MPJ of browsing file dialog box select file suffix in client browser 67 map project files, obtain the path of map project file.
Step 2) browses dialog box by file in client browser and map project file in step 1 is selected to be closed File where the map layer file of connection obtains the catalogue where the associated map layer file of map project file, should What is mainly stored in catalogue is the vector point, line, surface file of MapGIS 67, and file suffixes name is respectively .WT .WL .WP.
Step 3) browses dialog box by file in client browser and map project file in step 1 is selected to be made Font library file presss from both sides, and folder name is known as clib, obtains the catalogue where fontlib.
Step 4) browses dialog box by file in client browser and map project file in step 1 is selected to be made System library archive, folder name are known as slib, obtain the catalogue where system library.
Step 5) setting tile dicing strategy (there are two types of common, when longitude and latitude dicing strategy, second is that Web Mercators Dicing strategy), dicing strategy includes mainly following parameter:The engineer's scale scale of each tile rank, tile map make when being sliced The pixel size of map reference origin (originx, originy), tile images format imgformat, tile images Imgsize, resolution ratio (DPI) resolution, big figure pixel size groupsize, Transparent color backclr, JPEG picture pressure Whether contracting is more transparent gifTransparentFlag than jpgCompactRate, GIF, whether high quality generates picture (resists when drafting Sawtooth) qulitymode.
Step 6) chooses whether to need dynamic projection dynProject, if so, going to step 7;If not, going to step 8.
Step 7) selects the purpose spatial reference frames spatial of dynamic projection.
The title tilename that step 8) setting tile preserves after being sliced.
Step 9) is arranged the beginning rank beginlevel that tile is sliced and terminates rank endlevel.
Step 10) is arranged tile file directory organizational politics dirFormat, it is common there are two types of, first, by " Ji Bie rows Number row number picture formats " catalogue form storage;Second is that by the storage of " rank row number line number picture formats " catalogue form.
The tile dicing strategy parameter that step 5 is arranged, step 6 are provided that no dynamic projection, step 7 select by step 11) The tile slice of the dynamic projection purpose spatial reference frames, step 8 setting selected preserves title, the tile that step 9 is arranged is sliced The tile form of catalogue strategy that beginning and end rank, step 10 are arranged is configured to json layout characters as HTTP request parameter String (example such as { scale:“1$591658710.9#2$295829355.45”,originx:“-20037508.342787”, originy:“20037508.342787”,imgformat:”png”,imgsize:”256”,resolution:”96”, groups ize:" 4096 ", backclr=" 9 ", jpgCompactRate:”90”,gifTransparentFlag:”1”, qulitymode:”1”,dynProject:”false”,spatial:”EPSG:3857”,tilename:”tilemap”, beginlevel:”1”,endlevel:”2”,dirFormat:" LRC "), it is sent to server end.
Step 12) servers' data saves contents the data files being set as under the root of server end website, if The catalogue is %CachePath%.After the supplemental characteristic that received server-side is submitted to step 11, save contents first in data A file identical with tile slice preservation title is created down, if the fullpath of this document folder is % CachePath% %TileName%, then by the parameter received be saved in %CachePath% %TileName% mesh Under record, the entitled config.json of file of preservation.
Step 13) server end %CachePath% create under %TileName% catalogues one it is entitled The file of mapdata, the map datum for storing client upload.Using HTTP transmission modes, the ground that step 1 is selected File, step in the font library directory that file, step 3 in the map layer catalogue that figure project file, step 2 select select File in the system library directories of 4 selections is uploaded onto the server end successively.Map project file storage catalogue is % CachePath% %TileName% mapdata map, map layer storage catalogue be %CachePath% % TileName% mapdata data, fontlib storage catalogue be %CachePath% %TileName% mapdata Clib, system library storage catalogue be %CachePath% %TileName% mapdata slib.
Step 14) server end calls MapGIS 10 to provide directory context setting interface, and setting accesses MapGIS 67 editions The font library directory and system library directory used when this map datum is respectively %CachePath% %TileName% Mapdata clib and %CachePath% %TileName% mapdata slib.
Step 15) judges whether map document needs dynamic projection according to dynProject parameters, if so, going to step 16, if not, going to step 17.
Step 16) server end calls the map document operate interface that MapGIS 10 is provided, and opens 67 versions of MapGIS Map engineering, the map document operate interface for calling MapGIS10 to provide enables dynamic projection, and according to spatial parameters The purpose spatial reference frames of map engineering dynamic projection are set, and the map document operate interface for calling MapGIS 10 to provide preserves Map project file goes to step S17.
Step 17) server end %CachePath% an entitled tiledb is created under %TileName% catalogues File, then call MapGIS 10 provide tile data library operate class, %CachePath% % The tile data library file of an entitled tilename is created under TileName% tiledb catalogues, file extent is entitled .TDF;The map project file for needing to be sliced is opened again, map object is obtained, opens the tile data library file created, is adjusted With the tile slice interface CacheTile () provided in MapGIS 10, the config.json files preserved in step 12 are used In tile slicing parameter, by map project file map slice be saved in tile data library file.
Step 18) server end %CachePath% create entitled img's under %TileName% catalogues File calls the Open interfaces of tile operation class in MapGIS 10, the tile data library file that opening steps 17 generate to adjust The GetImg interfaces of class are operated with tile in MapGIS10, cycle reads each of every a line in each tile map rank Row, by tile images data according to the catalogue form that step 10 is arranged carry out storage to %CachePath% % TileName% under img catalogues.By taking the 1st grade of the 0th row tile images of the 2nd row as an example, if the form of catalogue plan that step 10 is arranged Slightly " rank line number row number picture formats ", picture format png, then the store path of the tile images is % CachePath% %TileName% img 12 0.png.
The tile figure layer class that step 19) is provided in client call Openlayers development libraries creates a tile figure layer Object is configured to similar http when constructing tile map request address://127.0.0.1/mapservice/data/ The URL address formats of tilemap/img/1/2/0.png.The map cases class in Openlayers is created, by tile figure layer pair As being added in map cases, the far call of tile map service is realized.Terminate.
The most apparent difference of the present invention be can to realize client by 67 map vector datas of MapGIS and and its Associated fontlib and system library are automatically uploaded to server, and the tile slice interface that MapGIS 10 is provided then is called to realize Tile images file is stored in server end, visitor is supplied in the form of HTTP service by tile auto slice in the form of a file Family end is called, and client can use Openlayers, the tile images at the map frames invoking server such as Leaflet end to carry out Display solves the problems, such as that current MapGIS67 map vectors need manually to be sliced and generates tile data, needing to big When 67 map vectors of MapGIS of batch carry out tile slice, advantage of the invention becomes apparent, and can save a large amount of manpower Cost.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of supporting the on-line automatic slice method of servicing of the tile map of MapGIS67 map engineerings, which is characterized in that client End by MapGIS67 map vector datas and with the associated fontlib of MapGIS67 map vector datas and system library it is automatic on Pass to server, MapGIS67 map vector datas that server is sent according to client and with MapGIS67 vectors The associated fontlib of diagram data and system library call the tile slice interface that MapGIS10 is provided to realize tile auto slice, and Tile images file after the completion of slice is stored in server end in the form of a file, client is supplied in the form of HTTP service It calls, client can use the tile images file after the completion of the slice of map frame invoking server end.
2. the tile map on-line automatic slice method of servicing according to claim 1 for supporting MapGIS67 map engineerings, It is characterized by comprising the following steps:
S1, client obtain the path of MapGIS67 map project files, the MapGIS67 maps project file associatedly Catalogue where fontlib used in catalogue, the MapGIS67 maps project file where figure figure layer file and described Catalogue where system library used in MapGIS67 map project files;
S2, client obtain title tilename, the tile preserved after tile dicing strategy, dynamic projection information, tile slice The beginning rank beginlevel and end rank endlevel and tile file directory organizational politics dirFormat of slice;
The data that S3, client obtain step S2 are configured to json format strings as HTTP request parameter, are sent to clothes Business device end;
After S4, the server end data that client is sent in receiving step S3, data save contents lower newly-built one with Tile slice preserves the identical file of title, is then saved in the data received in newly-built file;
S5, server end create the first sub-folder in the newly-built file of step S4, and client will obtain in step S1 Data are sent to server end, the MapGIS67 maps engineering text that server end obtains the client received in step sl Catalogue, the MapGIS67 where the path of part, the associated map layer file of the MapGIS67 maps project file System library used in catalogue and the MapGIS67 maps project file where fontlib used in figure project file The catalogue at place is respectively stored into each catalogue of the first sub-folder;
Interface is arranged in the directory context that S6, server end call MapGIS10 to provide, and MapGIS10 is accessed MapGIS67 versions The font library directory and system library directory used when map datum is respectively set to corresponding catalogue in the first sub-folder;
The dynamic projection information that S7, server end are preserved according to step S4 judges whether to need to carry out dynamic projection, if so, Server end calls the map document operate interface that MapGIS10 is provided, from being opened in corresponding catalogue in the first sub-folder The map project file of MapGIS67 versions, the map document operate interface for calling MapGIS10 to provide enable dynamic projection, and The purpose that map engineering dynamic projection is arranged according to the dynamic projection purpose spatial reference frames spatial in dynamic projection information is empty Between reference system, call MapGIS10 provide map document operate interface, preserve map project file, then go to step S8;If it is not, the S8 that then gos to step;
S8, server end create the second sub-folder in the newly-built file of step S4, then MapGIS10 are called to provide Tile data library operate class, a tile data library file is created under the second sub-folder catalogue, then opens and needs to be sliced Map project file, obtain map object, open the tile data library file created, call tile to be sliced interface, by ground Map slice in figure project file is saved in tile data library file;
S9, server end create third sub-folder, the tile number that opening steps S8 is preserved in the file that step S4 is created According to library file, cycle reads each row of every a line in each tile map rank, by tile images data according to step S2 Under the tile file directory organizational politics dirFormat storages to third sub-folder catalogue of setting;
S10, the tile figure layer class provided in client call map development library, create a tile figure layer object, in construction watt It is URL address formats, the ground of the address of construction and the third file by corresponding address architecture when piece such map requests address Location corresponds to;Map cases class is created, tile figure layer object is added in map cases, realizes the long-range tune of tile map service With.
3. the tile map on-line automatic slice method of servicing according to claim 2 for supporting MapGIS67 map engineerings, It is characterized in that, the step S1 specifically comprises the following steps:
S11, pass through the MapGIS67 maps of the entitled .MPJ of browsing file dialog box select file suffix in client browser Project file obtains the path of map project file;
S12, pass through the map associated by map project file in file browsing dialog box selection S11 in client browser File where figure layer file obtains the catalogue where the associated map layer file of map project file;
S13, pass through font used in map project file in file browsing dialog box selection S11 in client browser Library archive, folder name are known as clib, obtain the catalogue where fontlib;
S14, pass through system used in map project file in file browsing dialog box selection S11 in client browser Library archive, folder name are known as slib, obtain the catalogue where system library.
4. the tile map on-line automatic slice method of servicing according to claim 2 for supporting MapGIS67 map engineerings, It is characterized in that, the tile dicing strategy that client provides in step S2 includes that longitude and latitude dicing strategy and Web Mercators cut Piece strategy, and the tile dicing strategy includes parameters described below:Engineer's scale scale, the tile map slice of each tile rank When the map reference origin (originx, originy) that uses, tile images format imgformat, the pixel of tile images it is big Small imgsize, resolution ratio resolution, big figure pixel size groupsize, Transparent color backclr, JPEG picture compression ratio The whether transparent gifTransparentFlag of jpgCompactRate, GIF, whether high quality generates picture qulitymode.
5. the tile map on-line automatic slice method of servicing according to claim 2 for supporting MapGIS67 map engineerings, It is characterized in that, when the dynamic projection information includes whether to need dynamic projection dynProject and select dynamic projection Purpose spatial reference frames spatial.
6. the tile map on-line automatic slice method of servicing according to claim 2 for supporting MapGIS67 map engineerings, It is characterized in that, tile file directory organizational politics dirFormat includes:By " rank line number row number picture formats " Catalogue form stores and by the storage of " rank row number line number picture formats " catalogue form.
7. the tile map on-line automatic slice method of servicing according to claim 2 for supporting MapGIS67 map engineerings, It is characterized in that, step S4, S5 is specially:
Servers' data saves contents the data files being set as under the root %CachePath% of server end website, After the supplemental characteristic that received server-side is submitted to step S3, saves contents lower newly-built one in data protected with tile slice first Deposit the identical file of title, the fullpath of this document folder be %CachePath% %TileName%, then will receive To parameter be saved under %CachePath% %TileName% catalogues, the entitled config.json of file of preservation;
Server end %CachePath% the file of an entitled mapdata is created under %TileName% catalogues, Map datum for storing client upload;Client will obtain data transmission to clothes using HTTP transmission modes in step S1 Business device end, after server receives data, in server end:Map project file storage catalogue be %CachePath% % TileName% mapdata map, map layer storage catalogue be %CachePath% %TileName% mapdata Data, fontlib storage catalogue be %CachePath% %TileName% mapdata clib, system library storage catalogue For %CachePath% %TileName% mapdata slib.
8. the tile map on-line automatic slice method of servicing according to claim 7 for supporting MapGIS67 map engineerings, It is characterized in that, the step S6 is specially:
Interface is arranged in the directory context that server end calls MapGIS10 to provide, when setting accesses MapGIS67 version map datums The font library directory and system library directory used is respectively %CachePath% %TileName% mapdata clib and % CachePath% %TileName% mapdata slib.
9. the tile map on-line automatic slice method of servicing according to claim 2 for supporting MapGIS67 map engineerings, It is characterized in that, the development library in step S10 is Openlayers development libraries, ArcGIS clients development library, SuperMap visitors Family end development library, day map development library, MapGIS clients development library or Leaflet development libraries.
10. a kind of supporting the on-line automatic slice service system of the tile map of MapGIS67 map engineerings, which is characterized in that including With lower module:
Client path acquisition module, the path, described for obtaining MapGIS67 map project files in client Catalogue, the MapGIS67 maps project file where the associated map layer file of MapGIS67 map project files are made Catalogue where system library used in catalogue and the MapGIS67 maps project file where fontlib;
Client configures acquisition module, for being protected after client obtains tile dicing strategy, dynamic projection information, tile slice The beginning rank beginlevel and end rank endlevel and tile file mesh of the title tilename, tile slice that deposit Record organizational politics dirFormat;
Client data sending module, the data for obtaining client configuration acquisition module in client are as HTTP request Parameter is configured to json format strings, is sent to server end;
Server configures preserving module, for the client transmission in receiving client data sending module in server end It after data, saves contents lower newly-built one file identical with tile slice preservation title in data, then will receive Data are saved in newly-built file;
Server path preserving module, for being created in the newly-built file that server configures preserving module in server end First sub-folder, client will obtain data and be sent to server end, server end in step Client path acquisition module It is the path for the MapGIS67 map project files that the client received is obtained in Client path acquisition module, described Catalogue, the MapGIS67 maps project file where the associated map layer file of MapGIS67 map project files are made Catalogue difference where system library used in catalogue and the MapGIS67 maps project file where fontlib It stores into each catalogue of the first sub-folder;
Interface is arranged in server interface setup module, the directory context for calling MapGIS10 to provide in server end, will MapGIS10 accesses the font library directory used when MapGIS67 version map datums and system library directory is respectively set to first Corresponding catalogue in sub-folder;
Server dynamic projection module is believed for configuring the dynamic projection that preserving module preserves according to server in server end Breath judges whether to need to carry out dynamic projection, if so, the map document operation that server end calls MapGIS10 to provide connects Mouthful, the map project file of MapGIS67 versions is opened from corresponding catalogue in the first sub-folder, and MapGIS 10 is called to carry The map document operate interface of confession enables dynamic projection, and is joined according to the purpose space of the dynamic projection in dynamic projection information According to the purpose spatial reference frames for being spatial setting map engineering dynamic projections, the map document behaviour for calling MapGIS10 to provide Make interface, preserve map project file, then calls tile data processing module;If it is not, then calling tile data processing module;
Tile data processing module, for creating the in the newly-built file that server configures preserving module in server end Then two sub-folders call the tile data library that MapGIS10 is provided to operate class, one are created under the second sub-folder catalogue A tile data library file, then the map project file for needing to be sliced is opened, map object is obtained, the tile number created is opened According to library file, tile is called to be sliced interface, the map slice in map project file is saved in tile data library file;
Organizational politics' processing module, for creating the in the newly-built file that server configures preserving module in server end Three sub-folders, open the tile data library file that tile data processing module preserves, and cycle reads each tile map rank In every a line each row, by tile images data according to client configuration acquisition module setting tile file directory tissue Under tactful dirFormat storages to third sub-folder catalogue;
Client data calling module, the tile figure layer class for being provided in client call map development library create one watt Corresponding address architecture is URL address formats, the address of construction when constructing tile map request address by piece figure layer object It is corresponding with the address of third file;Map cases class is created, tile figure layer object is added in map cases, is realized The far call of tile map service.
CN201810166751.9A 2018-02-28 2018-02-28 Tile map online automatic slicing service method and system supporting MapGIS67 map engineering Expired - Fee Related CN108536732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810166751.9A CN108536732B (en) 2018-02-28 2018-02-28 Tile map online automatic slicing service method and system supporting MapGIS67 map engineering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810166751.9A CN108536732B (en) 2018-02-28 2018-02-28 Tile map online automatic slicing service method and system supporting MapGIS67 map engineering

Publications (2)

Publication Number Publication Date
CN108536732A true CN108536732A (en) 2018-09-14
CN108536732B CN108536732B (en) 2021-08-27

Family

ID=63486049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810166751.9A Expired - Fee Related CN108536732B (en) 2018-02-28 2018-02-28 Tile map online automatic slicing service method and system supporting MapGIS67 map engineering

Country Status (1)

Country Link
CN (1) CN108536732B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636868A (en) * 2018-11-28 2019-04-16 中国地质大学(武汉) The online construction method of High-precision image map and equipment based on WebGIS and deep learning
CN110275931A (en) * 2019-06-17 2019-09-24 北京讯腾智慧科技股份有限公司 A kind of pipe network geographic information service method for automatically releasing and system
CN110853042A (en) * 2019-11-14 2020-02-28 空间信息产业发展股份有限公司 Automatic secret-involved vector graph segmentation system and method based on image recognition
CN111723170A (en) * 2020-05-07 2020-09-29 武汉臻图网络科技有限公司 CesiumJS-based mobile terminal offline three-dimensional GIS application implementation method and system
CN111913951A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Map vector data slicing method for superposing power grid data
CN111914041A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Power grid map vector data providing method
CN111967052A (en) * 2020-09-21 2020-11-20 北京市测绘设计研究院 Method and system for realizing topographic map distribution
CN112148703A (en) * 2020-09-29 2020-12-29 华能新能源股份有限公司 High-resolution wind resource map data layered slicing system and method
CN112231426A (en) * 2020-10-13 2021-01-15 重庆紫光华山智安科技有限公司 Vector tile point data based updating method, system, medium and terminal
CN112767254A (en) * 2021-02-07 2021-05-07 杭州今奥信息科技股份有限公司 Image compression method with high compression ratio
CN113470142A (en) * 2021-06-23 2021-10-01 广西电网有限责任公司 Intelligent generation and display method for low-voltage point location and line path vector diagram in distribution network
CN113626547A (en) * 2021-07-29 2021-11-09 北京中交兴路信息科技有限公司 Freight industry map vector slicing method and device, storage medium and terminal
CN114972671A (en) * 2022-07-06 2022-08-30 中煤(西安)地下空间科技发展有限公司 Vector tile rendering method realized based on hypergraph desktop fusion open source software
WO2022184185A3 (en) * 2022-03-07 2023-01-05 中咨数据有限公司 Rapid image calibration and real-time rendering method and system, medium, and mobile end

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740878A (en) * 2015-12-11 2016-07-06 中国地质调查局发展研究中心 Symbol recognition method and device of geographic information system
US9454847B2 (en) * 2009-02-24 2016-09-27 Google Inc. System and method of indicating transition between street level images
CN106951325A (en) * 2017-03-10 2017-07-14 中国地质大学(武汉) Space computational fields calculate intensity cube construction method
US20180046648A1 (en) * 2013-10-17 2018-02-15 Nant Holdings Ip, Llc Wide area augmented reality location-based services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9454847B2 (en) * 2009-02-24 2016-09-27 Google Inc. System and method of indicating transition between street level images
US20180046648A1 (en) * 2013-10-17 2018-02-15 Nant Holdings Ip, Llc Wide area augmented reality location-based services
CN105740878A (en) * 2015-12-11 2016-07-06 中国地质调查局发展研究中心 Symbol recognition method and device of geographic information system
CN106951325A (en) * 2017-03-10 2017-07-14 中国地质大学(武汉) Space computational fields calculate intensity cube construction method

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636868B (en) * 2018-11-28 2022-12-30 中国地质大学(武汉) High-precision image map online construction method and device based on WebGIS and deep learning
CN109636868A (en) * 2018-11-28 2019-04-16 中国地质大学(武汉) The online construction method of High-precision image map and equipment based on WebGIS and deep learning
CN111914041B (en) * 2019-05-10 2024-03-19 中国电力科学研究院有限公司 Power grid map vector data providing method
CN111913951A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Map vector data slicing method for superposing power grid data
CN111914041A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Power grid map vector data providing method
CN111913951B (en) * 2019-05-10 2024-03-15 中国电力科学研究院有限公司 Map vector data slicing method for superimposed power grid data
CN110275931A (en) * 2019-06-17 2019-09-24 北京讯腾智慧科技股份有限公司 A kind of pipe network geographic information service method for automatically releasing and system
CN110853042A (en) * 2019-11-14 2020-02-28 空间信息产业发展股份有限公司 Automatic secret-involved vector graph segmentation system and method based on image recognition
CN110853042B (en) * 2019-11-14 2023-01-10 空间信息产业发展股份有限公司 Automatic secret-involved vector graph segmentation system and method based on image recognition
CN111723170A (en) * 2020-05-07 2020-09-29 武汉臻图网络科技有限公司 CesiumJS-based mobile terminal offline three-dimensional GIS application implementation method and system
CN111723170B (en) * 2020-05-07 2023-09-19 武汉臻图网络科技有限公司 Mobile terminal offline three-dimensional GIS application realization method and system based on CesiumJS
CN111967052A (en) * 2020-09-21 2020-11-20 北京市测绘设计研究院 Method and system for realizing topographic map distribution
CN112148703A (en) * 2020-09-29 2020-12-29 华能新能源股份有限公司 High-resolution wind resource map data layered slicing system and method
CN112231426A (en) * 2020-10-13 2021-01-15 重庆紫光华山智安科技有限公司 Vector tile point data based updating method, system, medium and terminal
CN112767254A (en) * 2021-02-07 2021-05-07 杭州今奥信息科技股份有限公司 Image compression method with high compression ratio
CN113470142A (en) * 2021-06-23 2021-10-01 广西电网有限责任公司 Intelligent generation and display method for low-voltage point location and line path vector diagram in distribution network
CN113470142B (en) * 2021-06-23 2022-06-10 广西电网有限责任公司 Intelligent generation and display method for low-voltage point location and line path vector diagram in distribution network
CN113626547A (en) * 2021-07-29 2021-11-09 北京中交兴路信息科技有限公司 Freight industry map vector slicing method and device, storage medium and terminal
WO2022184185A3 (en) * 2022-03-07 2023-01-05 中咨数据有限公司 Rapid image calibration and real-time rendering method and system, medium, and mobile end
CN114972671A (en) * 2022-07-06 2022-08-30 中煤(西安)地下空间科技发展有限公司 Vector tile rendering method realized based on hypergraph desktop fusion open source software
CN114972671B (en) * 2022-07-06 2024-04-30 中煤(西安)地下空间科技发展有限公司 Vector tile rendering method based on hypergraph desktop fusion open source software

Also Published As

Publication number Publication date
CN108536732B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN108536732A (en) Support the on-line automatic slice method of servicing of tile map and system of MapGIS67 map engineerings
US8732266B2 (en) Managing online composite image content
US20200285659A1 (en) Portable Globe Creation for a Geographical Information System
CN110263116B (en) Tile map publishing method and device supporting dynamic projection conversion
WO2001065413A1 (en) Staged image delivery system
CN101364979B (en) Downloaded material parsing and processing system and method
US20170108347A1 (en) Generating virtual map tiles according to an ad hoc specification
JP3560758B2 (en) Data management method and data management device using the same
US20060248192A1 (en) Method for pulling images from the internet for viewing on a remote digital display
CN101512483A (en) Dynamically generating customized user interfaces
CN109033238B (en) Data production, organization, storage and access method of electronic map set system
WO2009120440A1 (en) Dynamic image composition
US8132097B2 (en) Computer-implemented system for creating a publication and method thereof
KR20170073693A (en) Extracting similar group elements
CN106375454A (en) Method and system for uploading file by scanning graphic identifier
Zhang et al. GML-based interoperable geographical databases
DE10296963T5 (en) Method and system for creating / updating a website
US11874859B2 (en) Method of and system for defining a service for serving map images
KR100797518B1 (en) System and method for reading forest image and fabricating digital forest map
CN116361494A (en) Real-time generation method for satellite remote sensing image tiles
CN115408406A (en) High-density ship position dynamic rendering system based on map service
CN114676671A (en) Document online editing method and device and computer readable storage medium
JP2002163197A (en) Supply method for image conversion tool
JP2010033544A (en) Dtp data modification device and method thereof
CN114692017A (en) Copybook picture online content retrieval method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210827

CF01 Termination of patent right due to non-payment of annual fee