[postgis-devel] Changing raster srid

Etienne B. Racine etiennebr at gmail.com
Tue Dec 21 06:21:00 PST 2010



Mateusz Loskot wrote:
> 
> Etienne,
> 
> What does the "it doesn't work" exactly mean?
> 

Etienne B. Racine wrote:
> 
> ... Yes, I'm sorry, that was pretty incomplete. So, the problem is that I
> get a geometry back from
> SELECT SetSrid(rast, 32186) FROM my_raster ;
> But, it doesn't alter the raster as
> SELECT srid(rast) from my_raster ;
> Returns the old srid (i.e. not 32186).
> 

Mateusz Loskot wrote:
> 
>>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.
> 

Etienne B. Racine wrote:
> 
> I wasn't sure of this one, now it's clear, thanks.
> 
> Etienne
> 

Mateusz Loskot wrote:
> 
> 
>>Best regards,
>>Mateusz
> 

-- 
View this message in context: http://old.nabble.com/Changing-raster-srid-tp30499595p30506455.html
Sent from the PostGIS - Dev mailing list archive at Nabble.com.




More information about the postgis-devel mailing list