Re: [gdal-dev] GDALPolygonize using float buffers

2011-05-18 Thread Frank Warmerdam
On 11-05-18 06:44 AM, Jorge Arévalo wrote: I'm using the AlmostEqual2sComplement function from http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm to float comparison. Do you think it's a good approach? Jorge, The approach seems good though somewhat computationally expens

Re: [gdal-dev] GDALPolygonize using float buffers

2011-05-18 Thread Jorge Arévalo
Hello, On Fri, May 13, 2011 at 4:00 PM, Frank Warmerdam wrote: > On 11-05-13 06:51 AM, Jorge Arévalo wrote: >> >> Hello, >> >> Is there any reason to limit the GDALPolygonize function to read data >> in int32 buffers, instead of using 32b float or even 64b double ones? >> As I stated in ticket #

Re: [gdal-dev] GDALPolygonize using float buffers

2011-05-13 Thread Frank Warmerdam
On 11-05-13 06:51 AM, Jorge Arévalo wrote: Hello, Is there any reason to limit the GDALPolygonize function to read data in int32 buffers, instead of using 32b float or even 64b double ones? As I stated in ticket #4005 (http://trac.osgeo.org/gdal/ticket/4005), I want to code an alternative versio

[gdal-dev] GDALPolygonize using float buffers

2011-05-13 Thread Jorge Arévalo
Hello, Is there any reason to limit the GDALPolygonize function to read data in int32 buffers, instead of using 32b float or even 64b double ones? As I stated in ticket #4005 (http://trac.osgeo.org/gdal/ticket/4005), I want to code an alternative version using these kind of buffers. But I don't kn