<br>  dear all,<br>  I develop in PHP and have almost no idea about Python and Perl, but thank you anyway for the information.<br><br>  best regards,<br>  Pere <br><br><div class="gmail_quote">2009/4/21  <span dir="ltr">&lt;<a href="mailto:discuss-request@lists.osgeo.org">discuss-request@lists.osgeo.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send Discuss mailing list submissions to<br>
        <a href="mailto:discuss@lists.osgeo.org">discuss@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.osgeo.org/mailman/listinfo/discuss" target="_blank">http://lists.osgeo.org/mailman/listinfo/discuss</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:discuss-request@lists.osgeo.org">discuss-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:discuss-owner@lists.osgeo.org">discuss-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Discuss digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: parsing coordinates (Tim Michelsen)<br>
   2. Re: Re: parsing coordinates (Mateusz Loskot)<br>
   3. Re: Re: parsing coordinates (Mateusz Loskot)<br>
   4. Re: parsing coordinates (Arnulf Christl)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 20 Apr 2009 23:09:42 +0200<br>
From: Tim Michelsen &lt;<a href="mailto:timmichelsen@gmx-topmail.de">timmichelsen@gmx-topmail.de</a>&gt;<br>
Subject: [OSGeo-Discuss] Re: parsing coordinates<br>
To: <a href="mailto:discuss@mail.osgeo.org">discuss@mail.osgeo.org</a><br>
Message-ID: &lt;gsioam$7u0$<a href="mailto:2@ger.gmane.org">2@ger.gmane.org</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
&gt;     * 40:26:46N,79:56:55W<br>
&gt;     * 40:26:46.302N 79:56:55.903W<br>
&gt;     * 40°26&#39;21&quot;N 79°58&#39;36&quot;W<br>
&gt;     * 40d 26&#39; 21&quot; N 79d 58&#39; 36&quot; W<br>
&gt;     * 40.446195N 79.948862W<br>
&gt;     * 40.446195, -79.948862<br>
&gt;     * 40° 26.7717, -79° 56.93172<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m aware that parsing and interpreting free-text coordinate<br>
&gt; descriptions is quite complex, maybe someone knows a script (or a remote<br>
&gt; service) that does a similar job?<br>
I did some of this for python.<br>
What langauge will you use?<br>
<br>
Please report if you find some useful libraries.<br>
<br>
Kind regards,<br>
Timmie<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 21 Apr 2009 09:26:21 +0100<br>
From: Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>&gt;<br>
Subject: Re: [OSGeo-Discuss] Re: parsing coordinates<br>
To: OSGeo Discussions &lt;<a href="mailto:discuss@lists.osgeo.org">discuss@lists.osgeo.org</a>&gt;<br>
Cc: <a href="mailto:discuss@mail.osgeo.org">discuss@mail.osgeo.org</a><br>
Message-ID: &lt;<a href="mailto:49ED832D.7060704@loskot.net">49ED832D.7060704@loskot.net</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Tim Michelsen wrote:<br>
&gt;     * 40:26:46N,79:56:55W<br>
&gt;     * 40:26:46.302N 79:56:55.903W<br>
&gt;     * 40°26&#39;21&quot;N 79°58&#39;36&quot;W<br>
&gt;     * 40d 26&#39; 21&quot; N 79d 58&#39; 36&quot; W<br>
&gt;     * 40.446195N 79.948862W<br>
&gt;     * 40.446195, -79.948862<br>
&gt;     * 40° 26.7717, -79° 56.93172<br>
&gt;<br>
&gt; I&#39;m aware that parsing and interpreting free-text coordinate<br>
&gt; descriptions is quite complex, maybe someone knows a script (or a<br>
&gt; remote service) that does a similar job?<br>
<br>
Long time ago I made a script solving similar problems:<br>
<br>
<a href="http://mateusz.loskot.net/software/gis/pydecimaldegrees/" target="_blank">http://mateusz.loskot.net/software/gis/pydecimaldegrees/</a><br>
<br>
It is very easy to extend it to support all the format<br>
variations you&#39;ve listed above.<br>
<br>
Best regards,<br>
--<br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
Charter Member of OSGeo, <a href="http://osgeo.org" target="_blank">http://osgeo.org</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 21 Apr 2009 09:26:21 +0100<br>
From: Mateusz Loskot &lt;<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>&gt;<br>
Subject: Re: [OSGeo-Discuss] Re: parsing coordinates<br>
To: OSGeo Discussions &lt;<a href="mailto:discuss@lists.osgeo.org">discuss@lists.osgeo.org</a>&gt;<br>
Cc: <a href="mailto:discuss@mail.osgeo.org">discuss@mail.osgeo.org</a><br>
Message-ID: &lt;<a href="mailto:49ED832D.7060704@loskot.net">49ED832D.7060704@loskot.net</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Tim Michelsen wrote:<br>
&gt;     * 40:26:46N,79:56:55W<br>
&gt;     * 40:26:46.302N 79:56:55.903W<br>
&gt;     * 40°26&#39;21&quot;N 79°58&#39;36&quot;W<br>
&gt;     * 40d 26&#39; 21&quot; N 79d 58&#39; 36&quot; W<br>
&gt;     * 40.446195N 79.948862W<br>
&gt;     * 40.446195, -79.948862<br>
&gt;     * 40° 26.7717, -79° 56.93172<br>
&gt;<br>
&gt; I&#39;m aware that parsing and interpreting free-text coordinate<br>
&gt; descriptions is quite complex, maybe someone knows a script (or a<br>
&gt; remote service) that does a similar job?<br>
<br>
Long time ago I made a script solving similar problems:<br>
<br>
<a href="http://mateusz.loskot.net/software/gis/pydecimaldegrees/" target="_blank">http://mateusz.loskot.net/software/gis/pydecimaldegrees/</a><br>
<br>
It is very easy to extend it to support all the format<br>
variations you&#39;ve listed above.<br>
<br>
Best regards,<br>
--<br>
Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
Charter Member of OSGeo, <a href="http://osgeo.org" target="_blank">http://osgeo.org</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 21 Apr 2009 16:39:43 +0200<br>
From: Arnulf Christl &lt;<a href="mailto:arnulf.christl@wheregroup.com">arnulf.christl@wheregroup.com</a>&gt;<br>
Subject: Re: [OSGeo-Discuss] parsing coordinates<br>
To: OSGeo Discussions &lt;<a href="mailto:discuss@lists.osgeo.org">discuss@lists.osgeo.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:49EDDAAF.9030507@wheregroup.com">49EDDAAF.9030507@wheregroup.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
pere roca ristol schrieb:<br>
&gt; hi all,<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m developing a webapplication that let&#39;s user upload their point data and<br>
&gt; play with it.<br>
&gt;<br>
&gt; It currently works with lat/long in a CSV with this format (eg: *0.44, -79.9<br>
&gt; *) but we find users with some of these also valid and acceptable ways to<br>
&gt; write geographic coordinates:<br>
&gt;<br>
&gt;    - 40:26:46N,79:56:55W<br>
&gt;    - 40:26:46.302N 79:56:55.903W<br>
&gt;    - 40°26&#39;21&quot;N 79°58&#39;36&quot;W<br>
&gt;    - 40d 26&#39; 21&quot; N 79d 58&#39; 36&quot; W<br>
&gt;    - 40.446195N 79.948862W<br>
&gt;    - 40.446195, -79.948862<br>
&gt;    - 40° 26.7717, -79° 56.93172<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m aware that parsing and interpreting free-text coordinate descriptions is<br>
&gt; quite complex, maybe someone knows a script (or a remote service) that does<br>
&gt; a similar job?<br>
&gt;<br>
&gt;<br>
&gt; It would be very helpful.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
&gt; Pere<br>
<br>
Potentially adding to your woes you should take into account that people<br>
mix up axis order. It is a well established traditional fight between<br>
developers, geodesists and the rest of the world. This page [1] sums up<br>
the main issue. If you find a script that dares to deal with this, feel<br>
free to add it as a link to that page.<br>
<br>
Best regards,<br>
Arnulf.<br>
<br>
[1] <a href="http://wiki.osgeo.org/wiki/Axis_Order_Confusion" target="_blank">http://wiki.osgeo.org/wiki/Axis_Order_Confusion</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAknt2q8ACgkQhcSN09gHfZwNzwCgk1S2Cg/iHJIAljjqgnSHhDpB<br>
QD4AniAQ9tvYuJ/KH4uoy/vRhzyTS3pM<br>
=tK5z<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.osgeo.org">Discuss@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/discuss" target="_blank">http://lists.osgeo.org/mailman/listinfo/discuss</a><br>
<br>
<br>
End of Discuss Digest, Vol 28, Issue 21<br>
***************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Pere Roca Ristol<br>Biņleg i especialista GIS<br>Museo Nacional de Ciencias Naturales (CSIC)<br>Visita l&#39;EDIT mapViewer! <br><a href="http://edit.csic.es/edit_geo/prototype/edit.html">http://edit.csic.es/edit_geo/prototype/edit.html</a><br>