TMS export
Is it possible to export from GM a tilemap output of locally cached files?
Example of xml format:
<?xml version="1.0"?>
<tilemap tilemapservice="" version="1.0.0">
<title>
osm_mapnik
</title>
<abstract>
</abstract>
<srs>
EPSG:900913
</srs>
<vsrs>
</vsrs>
<boundingbox maxx="20037508.3427892510000000000000000" maxy="20037508.3427892510000000000000000" minx="-20037508.3427892510000000000000000" miny="-20037508.3427892510000000000000000">
</boundingbox>
<origin x="-20037508.3427892510000000000000000" y="-20037508.3427892510000000000000000">
</origin>
<tileformat extension="png" height="256" mime-type="image/png" width="256">
</tileformat>
<tilesets profile="global-mercator">
<tileset href="" order="0" units-per-pixel="156543.0339280410300000000000000">
</tileset>
</tilesets>
</tilemap>
Example of xml format:
<?xml version="1.0"?>
<tilemap tilemapservice="" version="1.0.0">
<title>
osm_mapnik
</title>
<abstract>
</abstract>
<srs>
EPSG:900913
</srs>
<vsrs>
</vsrs>
<boundingbox maxx="20037508.3427892510000000000000000" maxy="20037508.3427892510000000000000000" minx="-20037508.3427892510000000000000000" miny="-20037508.3427892510000000000000000">
</boundingbox>
<origin x="-20037508.3427892510000000000000000" y="-20037508.3427892510000000000000000">
</origin>
<tileformat extension="png" height="256" mime-type="image/png" width="256">
</tileformat>
<tilesets profile="global-mercator">
<tileset href="" order="0" units-per-pixel="156543.0339280410300000000000000">
</tileset>
</tilesets>
</tilemap>
Comments
-
You should be able to add a new tiled source on the File->Download Online Imagery/Data menu command and make the URL a local URL, like file:///c:/path_to_data/...
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
I'm not trying to add a new tiled source, I'm trying to generate a local tile source. I'm using the GM SDK and I have a bunch of charts loaded into layers. When I try to create a TMS tile set using GM_ExportWebFormat it produces an html file using openlayers. I was wondering if it was possible to export into the tms Tilemap format specified above.
-
You can simply delete the auto-generated HTML file once GM_ExportWebFormat completes (or pass in GM_WebExport_NoHtmlFile as part of the flags) and write your own if you need a different format. The auto-generated one is just for an example, you would typically modify it to get what you actually need.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
I think what @hapakam referred to was the XML-File, which is described here http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#TileMapService_Resource and is generated by gdal2tiles.py and maptiler under the name tilemapresource.xml. And actually, that would be exactly my question also.
I guess it should be fairly easy to create from within the application? -
I have updated the TMS export to generate an XML file rather than the OSM-style HTML file. I have placed a new SDK build with this change at http://www.globalmapper.com/GlobalMapperSDK_latest_beta.zip for you to try.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
global_mapper wrote: »I have updated the TMS export to generate an XML file rather than the OSM-style HTML file. I have placed a new SDK build with this change at http://www.globalmapper.com/GlobalMapperSDK_latest_beta.zip for you to try.
Wow, thank you for you quick reply and action. My Android-app is relying on TMS-formatted map-tiles (and the XML-file) for offline use. Now I can tell my customers to get global mapper to render their tiles for fieldwork. Thanks again. -
what is the name of your android app?
Is it available on the paly store?
if yes please tell me, what is its price?
____________
Tom_Cruise
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website