Hi Laurent<div><br></div><div>When I run this<br><div><br></div><div><div>SELECT st_srid( st_transform(rast, 4326))  FROM table;</div></div><div><br></div><div>this returns 4326</div><div><br></div><div>So if your creating a table, you'd do:</div>
<div><br></div><div>Create table newtable as select rast, st_transform(rast,4326) as new_rast from <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">bd_ortho</span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"> </span></div>
<div><br></div><div>then if you run</div><div><br></div><div>select st_srid(rast), st_srid(new_rast) from newtable </div><div><br></div><div>this should return :</div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">2154, 4326</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><font color="#222222" face="arial, sans-serif">Rebecca</font></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Feb 21, 2013 at 10:36 AM, laurent <span dir="ltr"><<a href="mailto:lcelati@latitude-geosystems.com" target="_blank">lcelati@latitude-geosystems.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
--------------------------------------<br>
SELECT postgis_full_version()<br>
<br>
"POSTGIS="2.0.0 r9605" GEOS="3.3.3-CAPI-1.7.4" PROJ="Rel. 4.8.0, 6 March<br>
2012" GDAL="GDAL 1.9.0, released 2011/12/29" LIBXML="2.7.8"<br>
LIBJSON="UNKNOWN" RASTER"<br>
---------------------------------------<br>
<br>
Yes, yesterday i tried to do a reprojection thanks to st_transform & to do a<br>
ST_SetSRID in order to update metadata but eventually I do not think I<br>
succeeded.<br>
<br>
Could you tell me the SQL query please? I thought that following queries are<br>
valid :<br>
<br>
SELECT rast As bd_ortho, ST_Transform(rast,4326) As bd_ortho_wgs84<br>
<br>
But i have today an error message saying :<br>
<br>
ERREUR:  la colonne « rast » n'existe pas<br>
LINE 1: SELECT rast As bd_ortho, ST_Transform(rast,4326) As bd_ortho...<br>
<br>
Once I'm sure I reprojected this layer, I will try to update the metadata<br>
<br>
<br>
Thank you to throw light for me.<br>
<br>
Regards.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://postgis.17.n6.nabble.com/ST-SetSRID-tp5002645p5002650.html" target="_blank">http://postgis.17.n6.nabble.com/ST-SetSRID-tp5002645p5002650.html</a><br>
Sent from the PostGIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div></div>