[gdal-dev] Contours from the python interface
Frank Warmerdam
warmerdam at pobox.com
Tue Mar 30 08:33:05 EDT 2010
Martin Raspaud wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I rebound on the previous contour thread to ask if it is possible to burn
> contours/borders into raster programatically with python ?
Martin,
Yes. The gdal_fillnodata.py utility is just a python script,and you can examine
it to see how to call the fillnodata algorithm. The gdal_rasterize utility
is a program, but the algorithm is also exposed in python (with some loss of
flexibility) and it can be seen in use in the test script at:
http://svn.osgeo.org/gdal/trunk/autotest/alg/rasterize.py
Good luck,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list