[postgis-devel] ST_Intersection(raster, geom).val returning integer while expecting float

Bborie Park dustymugs at gmail.com
Sun Dec 4 10:31:46 PST 2011


On Sun, Dec 4, 2011 at 8:45 AM, Tom van Tilburg
<tom.van.tilburg at gmail.com> wrote:
> Hi list,
>
> I just noticed that the function ST_Intersection(raster, geom).val always
> returns me an integer. I couldn't find from the docs whether this is
> intentional but it seems not very useful since most of my rasters contain
> floats.
>
> Does anyone know whether this is intentionally?
>
> Regards,
>  Tom
>

Tom,

Only GDAL 1.9 (currently -trunk) supports floating point values.
1.8.x and below does not support floating point values.

So, you'll need to get a checkout of the GDAL trunk to get floating
point values to work.

-bborie



More information about the postgis-devel mailing list