[gdal-dev] Two questions about gdal_contour

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Thu Dec 13 05:37:56 PST 2018


Hi,

I noticed this question in gis.stackexchange https://gis.stackexchange.com/questions/305641/gdal-doesnt-create-contours-for-the-whole-raster?noredirect=1#comment493737_305641 and now I wonder


1)      If gdalinfo reports NoData Value=3.4028234663852886e+38, why gdal_contour does not accept the value as -snodata but user needs to know to use "inf"?

2)      If user asks gdal_contour to create intervals of 1 m from 20 to 3.4028234663852886e+38, wouldn't it be better to ask "Are you sure?" or error out before starting a process that will for sure fail? I guess that in most cases users do not really want more than 1000 contour levels.

-Jukka Rahkonen-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181213/53774caf/attachment.html>


More information about the gdal-dev mailing list