[postgis-users] point to raster conversion

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Thu Dec 19 06:36:11 PST 2013


You did not paste your code...

ST_ExtracToRaster() should work on a geometry table. If you want it to work on point cloud table you have to add a set of methods to the ST_ExtractPixelValue4ma() function. Sorry that was not clear. you could start by converting your patches to geometries to test ST_ExtracToRaster() and then try to make the same query work on point patches.

Pierre

> -----Original Message-----
> From: postgis-users-bounces at lists.osgeo.org [mailto:postgis-users-
> bounces at lists.osgeo.org] On Behalf Of Rémi Cura
> Sent: Thursday, December 19, 2013 8:52 AM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] point to raster conversion
> 
> Hey,
> thanks for the answer.
> 
> I tried as you say,
> it is not working and slow (several seconds for 50*50 pixels).
> the function ST_ExtracToRaster just seems to do nothing.
> (after using the function, st_value on any pixel return NULL, st_summary
> also)
> 
> 
> I have 2 bands of '32BF'.
> I set the srid of both geom and raster to be the same.
> 
> 
> Is there any way to set multiple pixels at once (and not do
> st_set(st_set(..)))),
> or a band constructor taking multiple pixels (an array for example)?
> 
> 
> Cheers,
> 
> 
> Rémi-C
> 
> 
> Here is my test code :
> 



More information about the postgis-users mailing list