s SRS, –s_srs=SRS The spatial reference system used for the source input data Resampling method (average,near,bilinear,cubic,cubicspline,lanczos,antialias) – default ‘average’ Tile cutting profile (mercator,geodetic,raster) -default ‘mercator’ (Google Maps compatible) h, –help show this help message and exit –version show program’s version number and exit The syntax and list of possible parameters can be retrieved by opening up a command shell and calling: With these two in place, you can get on with calling the script. (If you don’t have the GDAL library itself installed, you can add this from the OSGEO4W installer as well). I don’t know much about python, so I won’t even attempt to explain this further, other than to say that the easiest fix is to install the requisite libraries from the OSGEO4W package, highlighted as follows: The reason is that, in addition to the GDAL library itself, you also need to install the python bindings for GDAL – allowing you to call into the GDAL functions from a python script. If you attempt to run the GDAL2Tiles.py script straight out of a newly compiled GDAL build, for example, you’ll most likely get the “No module named gdal” errors, as follows: Setting up GDAL2TilesĪlthough GDAL2Tiles.py comes bundled with GDAL library, it has dependencies on other libraries. To correct those issues, you’re going to have to ditch the pretty MapTiler front-end and get dirty with the command-line instead, manually running the GDAL2Tiles.py script that sits at the heart of MapTiler.
0 Comments
Leave a Reply. |