[gdal-dev] Precision of classification in gdal_sieve.py

Even Rouault even.rouault at spatialys.com
Sun Feb 12 11:48:02 PST 2017


On vendredi 10 février 2017 08:55:32 CET Rahkonen Jukka (MML) wrote:
> Hi,
> 
> See this gis.stackexchange question about gdal_sieve
> http://gis.stackexchange.com/questions/227709/why-is-all-0-after-using-gdal
> -sieve-on-a-raster-layer. By the documentation
> http://www.gdal.org/gdal_sieve.html it is not clear with which precision
> the pixels are classified to have the same value. Is it by integers or does
> sieve handle also floating point numbers?

The current implementation reads the dataset as integer data. So floating point values 
are rounded to integers.

Even


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170212/a2ac7992/attachment.html>


More information about the gdal-dev mailing list