[postgis-tickets] [PostGIS] #2395: Cannot read KML with non-closed LinearRing

PostGIS trac at osgeo.org
Sun Aug 11 14:25:59 PDT 2013


#2395: Cannot read KML with non-closed LinearRing
-------------------------+--------------------------------------------------
 Reporter:  strk         |       Owner:  pramsey      
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.2.0
Component:  postgis      |     Version:  2.0.x        
 Keywords:  kml          |  
-------------------------+--------------------------------------------------

Comment(by pramsey):

 I'd be prepared to see this fix in a 2.1 patch release.  Or maybe not, we
 throw up on invalid WKT:
 {{{
 postgis21=# select 'POLYGON((0 0, 1 0, 1 1, 0 1))'::geometry;
 ERROR:  geometry contains non-closed rings
 LINE 1: select 'POLYGON((0 0, 1 0, 1 1, 0 1))'::geometry;
 }}}
 Another GUC waiting to be born: SET postgis_autofix=yes

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