[gdal-dev] [GDAL 1.7] GDAL_Contour png file
bontepaarden at gmail.com
Mon Jun 7 07:49:18 EDT 2010
I'm trying to vectorize a png file to a shapefile.
This png file only contains lines with one color.
Using this command a nice shapefile is generated:
gdal_contour -a elev test.png contour.shp -i 10.0 -snodata 255
But the shapefile is the wrong size up.
Up and bottom are flipped.
How do I fix that?
The generated shapefile is huge: 97MB from a 205 kB png file (high
resolution: 6720 x 4984 Pixels)
The shapes created are all very small/short and should be chained together.
Can GDAL do that as well?
I tried gdal_polygonize.py already and that is looking better, but because
not all lines are correctly closed not all polygons are good.
I'm looking for something similar, but the output should be polylines
instead of polygons.
Thanks in advanced for any advice.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev