[postgis-devel] Changing raster srid
Mateusz Loskot
mateusz at loskot.net
Mon Dec 20 13:38:20 PST 2010
Etienne B. Racine wrote:
>
> I've tried to update the raster srid the same way I did with polygons, but
> it doesn't work.
>
> -- this is ok :
> SELECT rid, rast FROM my_raster LIMIT 1 ;
>
> -- that's not :
> SELECT UpdateGeometrySrid('my_raster', 'rast', 32186) ;
> SELECT SetSrid(rast, 32186) FROM my_raster ;
>
> Any suggestion ?
>
Etienne,
What does the "it doesn't work" exactly mean?
The SetSRID is definitely implementing for raster and writes new SRID to
raster header (the canonical WKB stream):
http://trac.osgeo.org/postgis/browser/trunk/raster/rt_pg/rt_pg.c#L700
UpdateGeometrySrid is geometry-only function, does not work for rasters.
Best regards,
Mateusz
-----
--
Mateusz Loskot
http://mateusz.loskot.net
--
View this message in context: http://old.nabble.com/Changing-raster-srid-tp30499595p30501824.html
Sent from the PostGIS - Dev mailing list archive at Nabble.com.
More information about the postgis-devel
mailing list