[postgis-devel] [WKT Raster] Regular blocking in gdal2wktraster.py

Mateusz Loskot Mateusz.Loskot at cadcorp.com
Fri Mar 27 09:03:46 PDT 2009


Pierre Racine
> >Pierre, we have re-discussed things with Martin and we've decided to
> >implement -k with tile size specification:
> >
> >gdal2wktraster -k 256 256
> >
> >So, I'm working on that :-)
> 
> :-)

OK, basic version is ready.
Because of limitation of Python's optparse which does not
support optional option parameters [1], I had to add
new option:

gdal2wktraster.py -r rgb-2x2.tif -t single -k -m 10x10

gdal2wktraster.py -r rgb-2x2.tif -t single -k -m 10X10

Some tests block size vs image size are needed next.

[1] http://docs.python.org/library/optparse.html

--
Mateusz Loskot
Senior Programmer, Cadcorp
http://www.cadcorp.com






More information about the postgis-devel mailing list