WOW i didn't know that<br><br>Thanks a lot :P<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 18:16, Jean David TECHER <span dir="ltr"><<a href="mailto:david.techer@davidgis.fr">david.techer@davidgis.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The two options are right but becarefull with the second!<br>
<br>
You will have to do something like<br>
<br>
ALTER TABLE ADD COLUMN ...<br>
<br>
Because of  the remarks taken from PostgreSQL doc<br>
<br>
"Adding a column with a non-null default or changing the type of an existing column will require the entire table to be rewritten. This may take a significant amount of time for a large table; and it will temporarily require double the disk space."<br>

<br>
So check that's you have enough space if your table is very big<br>
<br>
Please see <a href="http://www.postgresql.org/docs/8.X/static/sql-altertable.html" target="_blank">http://www.postgresql.org/docs/8.X/static/sql-altertable.html</a><br>
<br>
where X=0,1,2,3<br>
<br>
--david;<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
<br>
Quoting Nicolas Ribot <<a href="mailto:nicky666@gmail.com" target="_blank">nicky666@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

How can I transform the coordinate system of a table ?<br>
I know the SRID is 4326.<br>
<br>
Thanks a lot<br>
<br>
</blockquote>
<br>
Basically, by using st_transform(geometry, srid) on your table.<br>
It may be a little more complicated if you have SRID constraints on  your table.<br>
<br>
2 options among several:<br>
<br>
1°) Drop the constraint, update your data by transforming them, readd<br>
the constraint with updated SRID value<br>
<br>
2°) Add a new geometric column to your table and insert into it<br>
transformed geometries from the first column.<br>
<br>
HTH<br>
Nicolas<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br>
<br>
</blockquote>
<br>
<br>
<br></div></div>
===================<br><font color="#888888">
Jean David TECHER<br>
<a href="http://www.davidgis.fr" target="_blank">www.davidgis.fr</a><br>
06 60 46 85 05<br>
04 99 77 16 87<br>
===================</font><div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br>