Opened 16 years ago
Last modified 16 years ago
#124 closed defect (fixed)
Missing CompoundCurve parser test when disjoint segments
Reported by: | colivier | Owned by: | colivier |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 1.4.0 |
Component: | postgis | Version: | 1.4 |
Keywords: | Cc: |
Description
What steps will reproduce the problem?
1) Should work (and do) COMPOUNDCURVE(CIRCULARSTRING(0 0,1 1,1 0),(1 0,30 5),CIRCULARSTRING(30 5,34 56,67 89))
2) Should not work (and do neither): SELECT asewkt(geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING(0 0, 1 1, 1 0), (1 0, 30 6),CIRCULARSTRING(30 5, 34 56, 67 89))'));
What is the expected output? What do you see instead? The second query should end with error as all segments in compoundcurve are not join (first point is the same than the latest from previous segment)
Change History (2)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Successfuly tested with following tests cases:
SELECT asewkt(geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING(0 0, 1 1, 1 0), (1 0, 30 6),CIRCULARSTRING(30 6, 34 56, 67 89))')); → OK
SELECT asewkt(geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING(0 0, 1 1, 1 0), (1 0, 30 6),CIRCULARSTRING(30 5, 34 56, 67 89))')); → KO
SELECT asewkt(geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING(0 0, 1 1, 1 0), (1 1, 30 6),CIRCULARSTRING(30 6, 34 56, 67 89))')); → KO
Backporting to 1.3 seems not a priority
Fix committed to trunk at r3821. Is this something that should be ported back to 1.3?