[postgis-tickets] [PostGIS] #2372: KML with space around ordinate values considered invalid

PostGIS trac at osgeo.org
Sat Jun 29 02:08:30 PDT 2013


#2372: KML with space around ordinate values considered invalid
----------------------+-----------------------------------------------------
  Reporter:  strk     |       Owner:  strk         
      Type:  defect   |      Status:  reopened     
  Priority:  high     |   Milestone:  PostGIS 1.5.9
 Component:  postgis  |     Version:  1.5.X        
Resolution:           |    Keywords:  history, kml 
----------------------+-----------------------------------------------------

Comment(by colivier):

 No the spec is NOT respected anymore.

 As if you use the same char (space here) for tuple separator AND for
 coordinate separator
 you have no control on what you are parsing (meaning tuples and
 dimensions)



 Few samples:


 {{{
  SELECT 'Valid KML', ST_AsEWKT(ST_GeomFromKML('
                 <LineString>
                         <coordinates>-71.1663,42.2614
 -71.1667,42.2616</coordinates>
                 </LineString>'));

 SELECT 'Junk KML I', ST_AsEWKT(ST_GeomFromKML('
                 <LineString>
                         <coordinates>-71.1663,42.2614, 12 -71.1667,
 42.2616,14</coordinates>
                 </LineString>'));

 SELECT 'Junk KML II', ST_AsEWKT(ST_GeomFromKML('
                 <LineString>
                         <coordinates>-71.1663,42.2614, 12 42.2616,
 14</coordinates>
                 </LineString>'));
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2372#comment:14>
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