[OSGeo-Discuss] Re: parsing coordinates

pere roca ristol peroc79 at gmail.com
Wed Apr 22 00:46:47 PDT 2009


  dear all,
  I develop in PHP and have almost no idea about Python and Perl, but thank
you anyway for the information.

  best regards,
  Pere

2009/4/21 <discuss-request at lists.osgeo.org>

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



-- 
Pere Roca Ristol
Biòleg i especialista GIS
Museo Nacional de Ciencias Naturales (CSIC)
Visita l'EDIT mapViewer!
http://edit.csic.es/edit_geo/prototype/edit.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/discuss/attachments/20090422/c08c599f/attachment-0002.html>


More information about the Discuss mailing list