RE: [OSGeo-Discuss] Re: parsing coordinates

2009-04-22 Thread Keith Moss
I've not used it myself, so I'm not sure how viable it is, but there is this 
PECL extension http://pecl.php.net/package/python that apparently lets you use 
Python from within PHP if you can't find a better native solution.
 
cheers
 
__
Keith Moss
Satellite Remote Sensing Services
Information Access Division
Landgate
65 Brockway Road, FLOREAT WA 6014
PO Box 741 Wembley WA 6913
Ph. (08) 9387 0332 | Fx. (08) 9383 7142
keith.m...@landgate.wa.gov.au
www.landgate.wa.gov.au



From: discuss-boun...@lists.osgeo.org on behalf of pere roca ristol
Sent: Wed 22/04/2009 15:46
To: discuss@lists.osgeo.org
Subject: [OSGeo-Discuss] Re: parsing coordinates



  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 


Send Discuss mailing list submissions to
   discuss@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-requ...@lists.osgeo.org

You can reach the person managing the list at
   discuss-ow...@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 
Subject: [OSGeo-Discuss] Re: parsing coordinates
To: disc...@mail.osgeo.org
Message-ID: 
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 
Subject: Re: [OSGeo-Discuss] Re: parsing coordinates
To: OSGeo Discussions 
Cc: disc...@mail.osgeo.org
Message-ID: <49ed832d.7060...@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 <http://mateusz.loskot.net/> 
Charter Member of OSGeo, http://osgeo.org <http://osgeo.org/> 


--

Message: 3
Date: Tue, 21 Apr 2009 09:26:21 +0100
From: Mateusz Loskot 
Subject: Re: [OSGeo-Discuss] Re: parsing coordinates
To: OSGeo Discussions 
Cc: disc...@mail.osgeo.org
Message-ID: <49ed832d.7060...@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&quo

Re: [OSGeo-Discuss] Re: parsing coordinates

2009-04-21 Thread Mateusz Loskot

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
___
Discuss mailing list
Discuss@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/discuss