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

PostGIS trac at osgeo.org
Wed Jul 1 04:17:17 PDT 2009


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

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 The above seems to work for me too now so much better. However -- what am
 I doing wrong here?

 This works -- I can have an outer ring that is a compound curve and an
 inner ring that is a regular closed line:

 SELECT ST_GeomFromEWKT('CURVEPOLYGON(COMPOUNDCURVE(CIRCULARSTRING(0 0,2 0,
 2 1, 2 3, 4 3),(4 3, 4 5, 1 4, 0 0)), (1.7 1, 1.4 0.4, 0.70 0.40, 0.37
 0.97, 0.70 1.54, 1.34 1.53, 1.7 1))');

 But when I attempt a curved polygon with a compound curve outer ring and a
 circular inner ring, can't get it to work.
  Here is my simple ring -- seems valid produces a nice cirle as far as I
 can tell
 SELECt ST_CurveToLine('CIRCULARSTRING(1.7 1, 1.4 0.4, 1.7 1)');

 So replacing my above with my ring:
 SELECT ST_GeomFromEWKT('CURVEPOLYGON(COMPOUNDCURVE(CIRCULARSTRING(0 0,2 0,
 2 1, 2 3, 4 3),(4 3, 4 5, 1 4, 0 0)), CIRCULARSTRING(1.7 1, 1.4 0.4, 1.7
 1) )');

 I get this error:
 ERROR:  geometry requires more points
 HINT:  "...CIRCULARSTRING(1.7 1, 1.4 0.4, 1.7 1)" <-- parse error at
 position 126 within geometry
 Or do we not support yet curved polygon with compoundcurve and circular
 rings?

 Mark L did you say you wanted this to be patched in 1.3 as well?  I can't
 speak for 1.3.7, but for 1.3.6 -- it does not support creating a compound
 curve in a curved poly .  Gives "parse error invalid geometry" and since
 1.3 is in bug fix mode, I don't think we should bother patching it since
 doesn't look like the functionality even made it partly in there.

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


More information about the postgis-devel mailing list