<br><br><div class="gmail_quote">On 13 August 2010 14:41, Limin Zeng <span dir="ltr"><<a href="mailto:Limin.Zeng@mailbox.tu-dresden.de">Limin.Zeng@mailbox.tu-dresden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">






<div bgcolor="#ffffff">
<div> </div>
<div><br></div>
<div><font size="2" face="Arial">Hey all,</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Thanks for your attention.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I faced a trouble when develop my geo-application 
based on OSM in PostGIS. I can storge osm file into postgis, and render them as 
well. Now I need add new data in my system, and save into local postgis 
database. For instance, I add an new point of interest by clicking the map, so I 
can get the lat/long. My problem is how can I generate the column:way in 
planet_osm_point table. Because the column:way is a data type in geometry, I 
don't know how to create this value with its lat/long. </font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Any suggestions will be welcomed!</font></div>
<div> <br></div></div></blockquote></div><br>I am not quite sure what you are trying to do. However, I would suggest that you do the following to add a point in lat, lon in your database (assuming you are using 4326)<br>
ST_SetSRID(ST_MakePoint(longitude, latitude), 4326)<br><br>This will create a point with the chosen coordinate in WGS84 mode.<br><br>Emilie Laffray<br>