[postgis-tickets] [PostGIS] #2564: Implement the inverse of the ST_AsLatLonText function

PostGIS trac at osgeo.org
Mon Jan 6 16:56:49 PST 2014


#2564: Implement the inverse of the ST_AsLatLonText function
-------------------------+--------------------------------------------------
 Reporter:  andrewxhill  |       Owner:  pramsey      
     Type:  enhancement  |      Status:  new          
 Priority:  low          |   Milestone:  PostGIS 2.2.0
Component:  postgis      |     Version:  2.1.x        
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by dbaston):

 * cc: dbaston (added)


Comment:

 This is something I've thought would be useful too, and I'd be happy to
 put together a patch for consideration.

 I see a few directions this could take:

 1) Input text must match some very rigid format (no risk of
 misinterpretation) or returns error.  Somewhat reduces the utility of
 function, which is when you have coordinates that you don't feel like
 parsing yourself.

 2) Input text must match looser format (some risk of misinterpretation of
 strange input) returns error if anything really weird.  By loose I mean
 accepting up to 3 valid numbers divided by non-numbers and assuming they
 represent D, M, S.

 3) Input text must match user-supplied format string.
 ST_AsLatLonText($$31°55'12.000"N$$, $$DD°MM'SS.SSS"X$$) for example.

 Any thoughts?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2564#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list