Hello,<br><br>I'm new with this but try to read and understand as much as i can but I need some basics informations.<br><br>I have few questions regarding last few e-mails about SRID 4326 and 900913<br><br>I also add an information to a spatial_ref_sys table about SRID 900913<br>

<br><u><b>question 1:</b></u><br>
<br>When I use maps.google API interface to get lat and lon coordinates in which SRID i get them?<br><br>this is my example:<br><span style="font-family: courier new,monospace;">GEvent.addListener(map, 'click',</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">   function(overlay, point)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   {</span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">      alert("lat = " + point.y + " lon = " + point.x);</span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;">


<span style="font-family: courier new,monospace;">   }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> );</span><br><br><u><b>question 2:</b></u><br><br>I always used SRID 4326 for storing data from maps.google (right now i need an answer for question number 1)<br>

But how can i count distance between two points i my database?<br><br>I read that i need to convert my projection to a meters projection so i started to looking for some info and i found that google projection is 900913 and it is in meters so ok.<br>

but...<br><br>I create some example in my database<br><br><span style="font-family: courier new,monospace;">select AsText(ST_Transform(GeomFromText('POINT(<b>90 0</b>)',4326),900913));</span><br><br>(point 90 0 is on equator)<br>

and i get:<br><br><span style="font-family: courier new,monospace;">POINT(<b>10018754.1713946</b> -7.08115455161362e-010)</span><br><br><span style="font-family: arial,helvetica,sans-serif;">so we know that equator has 40075km and 360 degrees so after I multiply </span><span style="font-family: courier new,monospace;"><b style="font-family: arial,helvetica,sans-serif;"><span style="font-family: courier new,monospace;">10018754.1713946</span></b><span style="font-family: arial,helvetica,sans-serif;">m</span><span style="font-family: arial,helvetica,sans-serif;"> by </span><b style="font-family: courier new,monospace;">4</b><span style="font-family: arial,helvetica,sans-serif;"> I get <b style="font-family: courier new,monospace;">40075016.68</b>m so it is correct. <br>

<br></span></span><span style="font-family: courier new,monospace;">select AsText(ST_Transform(GeomFromText('POINT(<b>0 45</b>)',4326),900913));</span><br>
<span style="font-family: courier new,monospace;"><br></span>i get<br><br><span style="font-family: courier new,monospace;">POINT(0 5621521.48619207)<br><br>we know that meridians have about </span><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><b>20 003</b>km (only 180 degrees) so if we multiply </font><span style="font-family: courier new,monospace;"><b>5621521.48619207</b>m by <b>4</b> we get </span><b>22486058.94</b>m hmmmmm so it is too much. Why?<br>
<br><br><u><b>question 3:</b></u><br><br>What is the best solution to keep in PostgreSQL with PostGIS database data from <a href="http://maps.google.com">maps.google.com</a> and what is the best solution to display them.<br>
<br><u><b>question 4:</b></u><br><br>last one, how we can measure distance between two points from our database if we keep points in 4326 SRID?<br><br><br>I know that it is a lot but for good start I need (and i think also others) these information.<br>
<br>Thanks a lot for detailed answering.<br><br>Simon<br><br><br>