[gdal-dev] gdal contour as transparent png/tif or svg/eps/pdf

Even Rouault even.rouault at mines-paris.org
Thu Jun 26 13:21:33 PDT 2014


Le samedi 21 juin 2014 18:10:38, Robert Grah a écrit :
> Hey there,
> 
> im trying to get a contour out of an GeoTiff file as transparent PNG or
> TIFF or even better as PDF/SVG or EPS file in my C++ program. I found
> gdal_contour but was not able to get PDF driver running.
> How can I install more drivers to GDAL?
> 
> So my approach so far is like following:
> 
> gdal_contour -i 50 mygeotiff.tif contour
> gdal_rasterize -burn 0 -l contour contour mygeotiff.tif
> 
> But with this I am not able to get a transparent contour.
> Is there a different approach beside the command line utils to get contours
> in vectorformat or transparent png/tif out of the geoTiff? It would be
> also great to add some anti-aliasing ;)...

Robert,

I'm able to generate a transparent PDF with a command line like :

gdal_contour -i 50 in.tif out.pdf -f pdf

You presumably need at least GDAL 1.10.

Even

> 
> Cheers,
> Rob
> 
> 
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list