[postgis-devel] [PostGIS] #212: compound curve in a curve polygon is flaky

PostGIS trac at osgeo.org
Wed Oct 8 00:52:26 PDT 2008


#212: compound curve in a curve polygon is flaky
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  mleslie      
      Type:  defect   |      Status:  closed       
  Priority:  medium   |   Milestone:  postgis 1.4.0
 Component:  postgis  |     Version:  1.4          
Resolution:  fixed    |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by mleslie):

 I agree that ST_NumPoints is a pain, but it's the 'standard' one so it
 would be nice to comply even if it's not used.

 It's not actually defined for curve, just linestring and circular string.
 And compound curve isn't intended to be treated like a collection object.
 For example, it doesn't have an ST_NumGeometries/ST_GeometryN, but instead
 has an ST_NumCurves/ST_CurveN.  Hmm, it looks like we haven't implemented
 that yet.

 Hmm... ST_NumPoints isn't defined for multilinestring or multicurve
 either, so it should actually be returning null for those.  We were
 traversing multilinestrings and geomcollections looking for the first
 linestring, so I followed suit and extended it for multicurve.

 So that begs the question, do we leave this now and have consistency,
 removed the collection handling and have strict compliance, or remove the
 multicurve handling and have as much compliance as we can without breaking
 things.  I'm not overly fussed about it.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/212#comment:14>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list