Lewis,

There is currently no support within Mapnik to handle no-data values. I'd recommend using gdal utilities (like gdal_translate or gdal_fillnodata.py) to handle no-data values before sending along to Mapnik.

Dane

On Jul 7, 2009, at 8:20 AM, Lewis, Ambrose J. wrote:

Hi All:
I’m very new to Mapnik, so please be patient with a dumb question!
I’m trying to use Mapnik to read a DTED file from my Python program. I modified the GDAL example found in “mapnik-utils-read- only\example_code\gdal” by simply changing this line:
            lyr.datasource = Gdal(file='blake2rgb.tif')
to point to my DTED file:
lyr.datasource = Gdal(file='n44.dt2')
The resulting PNG file appears to be a single band with only a very few values displayed. I think this is because DTED null value is “-32,767”. Is there a way to make this value something more manageable before calling “render_to_file”?
THANXS!!!
amb
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to