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

PostGIS trac at osgeo.org
Tue Jul 7 04:30:46 PDT 2009


#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 robe):

 Mark L,
 I'm still a bit confused by your statement.  My above curved polygon works
 now by the way so we should keep this closed.

 If the sql-mm specs say that for a mulilinestring or compound curve, it
 should return the count of points of the first element, then shouldn't
 this return 5 rather than null?

 SELECT ST_NumPoints(ST_GeomFromEWKT('COMPOUNDCURVE(CIRCULARSTRING(0 0,2 0,
 2 1, 2 3, 4 3),(4 3, 4 5, 1 4, 0 0))'));

 I personally don't care since I just assume ST_NPoints and ST_NumPoints
 behave like ST_NPoints since the whole ST_NumPoints being different from
 ST_NPoints is just a nuisance, counterintuitive to what people expect, and
 doesn't even behave consistently across spatial databases to be (in
 practice not portable). I don't care if we are extending the spec in this
 case.  So I apologize for arguing a point I care less about.

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


More information about the postgis-devel mailing list