Global Mapper v25.0

TMS export

hapakam
hapakam Global Mapper User
edited June 2013 in SDK
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>

Comments

  • global_mapper
    global_mapper Administrator
    edited June 2012
    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
  • hapakam
    hapakam Global Mapper User
    edited June 2012
    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.
  • global_mapper
    global_mapper Administrator
    edited June 2012
    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
  • johnsmith.cc
    johnsmith.cc Global Mapper User
    edited July 2012
    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?
  • global_mapper
    global_mapper Administrator
    edited July 2012
    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
  • johnsmith.cc
    johnsmith.cc Global Mapper User
    edited August 2012
    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.
  • Tom_Cruise
    Tom_Cruise Global Mapper User
    edited June 2013
    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