[postgis-tickets] [PostGIS] #2179: ST_MakeValid support for NaN values.

PostGIS trac at osgeo.org
Thu Jan 17 05:01:46 PST 2013


#2179: ST_MakeValid support for NaN values.
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.3
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 It's not easy to obtain a polygon with NaN ordinate values so here is one:
 {{{
 01060000000100000001030000000100000007000000010000000000F87F9CDFD01E32095341010000000000F87F193B6F0A30095341010000000000F87FA10FBF4C1D095341010000000000F87F38E258111C095341010000000000F87F5196BAFF17095341010000000000F87F4F0550911B095341010000000000F87F9CDFD01E32095341
 }}}

 The above geometry was found in a shapefile, and can be imported
 successfully by both shp2pgsql and ogr2ogr.

 ST_MakeValid not only fails at turning it into a valid, but also throws an
 exception.

 Possible better things to do:

  1. Pretend all NaN values are an arbitrary value (0.0) ?
  2. Drop all Coordinates with any NaN ordinate value (including Z and M?)
  3. Return null
  4. Return the input untouched

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2179>
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