<div dir="ltr">There is a 6 year old request in PostGIS for distinguishing such values: <a href="https://trac.osgeo.org/postgis/ticket/2353">https://trac.osgeo.org/postgis/ticket/2353</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 5, 2019 at 7:39 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On lundi 5 août 2019 15:47:35 CEST Nikolaos Ves wrote:<br>
> Hi list,<br>
> <br>
> Currently, GDALPolygonize [0] reads the data to an int32 buffer before<br>
> processing them.<br>
> <br>
> If I invoke the function with UInt32 data, will the data be<br>
> casted/truncated to Int32 and polygonized improperly or can I use it as it<br>
> is?<br>
<br>
Values between 2147483648 and 4294967295 will be read as 2147483647.<br>
<br>
To avoid truncatino, you could use the GDALFPolygonize() interface that will <br>
work with Float32, but you'll then have roundings (several integer values will <br>
be read as the same Float32 value. As there are 23 bit for the mantissa, <br>
values under 2^23 == 8388608 will be exactly represented as Float32. Values <br>
above will suffer from this rounding effect)<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div>Darafei Praliaskouski</div><div>Support me: <a href="http://patreon.com/komzpa" target="_blank">http://patreon.com/komzpa</a></div></div></div></div>