Hi,<div><br></div><div>Use the  COPY command to load CSV to a table.<br><br></div><div>The rest depends if you want to display/use the geometry, or you're only interested in the coordinates:</div><div>• Add a geometry column</div>
<div>• st_makePoint to build a point from coordinates</div><div>• A trigger to create the WGS84 point from coordinates with st_transform: st_transform(st_setSRID(st_makePoint(<span style="font-family:arial,sans-serif;font-size:13px">coordinateX, </span><span style="font-family:arial,sans-serif;font-size:13px">coordinateY), 31300), 4326)</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Nicolas</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 13 November 2012 13:54, Jo <span dir="ltr"><<a href="mailto:winfixit@gmail.com" target="_blank">winfixit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I've been reading docs, but I'm afraid I can't figure it out on my own.<br>
<br>
I have a csv-file:<br>
POI_ID;POI_name;coordinateX;coordinateY<br>
<br>
<br>
Where X and Y are in Lambert72.<br>
<br>
<br>
How can I get these in a table that includes 2 columns with those same<br>
coordinates in WGS84? Should I have a column with a geometry type and<br>
a point in it? Can I create a trigger function which updates the WGS84<br>
as the Lambert72 are inserted?<br>
<span class="HOEnZb"><font color="#888888"><br>
Jo<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>
</font></span></blockquote></div><br></div>