2008/5/27 MaRcELo PeReiRa <<a href="mailto:marcelops.stuff@gmail.com">marcelops.stuff@gmail.com</a>>:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>It's my first post in this list, and here is my first question:<br><br>Which is the correct way to store in a table some geografic coordinates???<br><br>I have a point: <br>- S 22º 04' 2,5''<br>



- W 46º 50' 34,9''<br><br>How can I store it??? Should I convert it??<br><br>Thanks in advance,<br>Marcelo / Brasil<br clear="all"><font color="#888888"><br>-- <br>People are very open-minded about new things - as long as they're exactly like the old ones.
</font><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">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></blockquote></div><br>Try something along the lines of:<br>
<br>
CREATE TABLE points (id SERIAL);<br>
SELECT addGeometryColumn('points', 'the_geom', 4326, 'POINT', 2);<br>
INSERT INTO points (the_geom) VALUES (setSRID(geomFromText('POINT(' ||
(46 + 50/60.0 + 34.9/360.0) || ' ' || -(22 + 4/60.0 + 2.5/360.0) ||
')'), 4326));<br>
SELECT id, asText(the_geom) FROM points;<br>
<br>
<br>
-- <br>
Mark Leslie<br>
Geospatial Software Architect<br>
LISAsoft<br>
<a href="http://www.lisasoft.com/LISAsoft/SupportedProducts.html">http://www.lisasoft.com/LISAsoft/SupportedProducts.html</a><br><br>