[OSGeo-Discuss] Best software for making TMS tiles

Peter webwiz at pl.net
Thu Apr 7 22:30:05 PDT 2011


Ok to answer my own question: mapserver and mapnik both will work if you are willing to spend acres of time learning and fiddling with thier respective rulesets. I tried the quantamnik plugin and the resemblence between the qgis view and the mapnik view was horific. Not really much more use than getting you started with mapnik xml. Theres no two way portability path. Once youve hand edited the xml theres no going back, its a one way trip. These packages are designed for "full time" mapmakers.

However one easy option for single or limited zoom level use-cases i finally found here:

http://gis.stackexchange.com/questions/3718/save-as-image-in-qgis-output-options

viz:

There is also a way to get a high-resolution image with world file: With QGIS from command line you have the option to create PNGs in any size including world files.

Available options are:

[--snapshot filename] emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height] height of snapshot to emit
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax] set initial map extent

You have to prepare your project first and then create a snapshot.

eg.  C:\Users\MyUser\QGis_Projects>qgis --snapshot italy.png --width 1500 --height 1000 --project italy.qgs

After that gdal2tiles/maptiler and you are away laughing.

HTH someone.

Peter



Peter wrote:
> I havent been able to figure out how to turn a QGIS map into tiles. The
> reason i want to do this is because our hardware isnt capable fo running
> a wms (low ram, hdd), but with a bit of hodge and podge we can host the
> TMS tiles using S3.
>
> The only options ive been able to find so far are:
>
> qgis, mapserver export to mapfile
> qgis, quantamnik, mapnik.
>
> Both involve setting up variations of WMS which seems overkill to me.
> With mapserver how would i tell it to just do the render and forget the
> whole wms thing. With mapnik, that should work but the version in Debian
> Lenny is really old, and im not sure if it will work at all.
>
> The thing is Qgis has a lot of raster rendering tools, like save as
> image, which saves the screen area and includes a world file but doesnt
> allow you to set the resolution, print composer which does allow you to
> set the resolution, but doesnt save a world file and includes borders
> and stuff, and doesnt save a world file.
>
> I feel the function im looking for is there but hiding? Save map as
> geotiff... Then i can use gdal2tiles to make the pyramid. Actually it
> might be a rather large geotiff, maybe a direct to tiles approach is
> better.
>
>
> Peter
>
>
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/discuss
>




More information about the Discuss mailing list