Opened 7 years ago

Last modified 5 years ago

#3719 closed defect

Error: Invalid number of points in LinearRing — at Initial Version

Reported by: tiiipponen Owned by: pramsey
Priority: medium Milestone: PostGIS 3.0.0
Component: postgis Version: 2.3.x
Keywords: Cc:

Description

Why this sql query returns error: select ST_Intersects(ST_GeomFromText('CURVEPOLYGON(

(25495445.625 6671632.625, 25495445.625 6671711.375, 25495555.375 6671711.375, 25495555.375 6671632.625, 25495445.625 6671632.625), COMPOUNDCURVE(

CIRCULARSTRING(25495368.0441 6671726.9312,25495368.3959388 6671726.93601515,25495368.7478 6671726.9333), (25495368.7478 6671726.9333,25495368.0441 6671726.9312)))'),ST_MakeEnvelope(25495443.625, 6671631.625, 25495556.375, 6671712.375))

ERROR: First argument geometry could not be converted to GEOS: IllegalArgumentException: Invalid number of points in LinearRing found 3 - must be 0 or ≥ 4 SQL state: XX000 Context: SQL function "st_intersects" statement 1

If I put hole geometry to boundary geometry it doesn't give error:

select ST_Intersects(ST_GeomFromText('CURVEPOLYGON(

COMPOUNDCURVE(

CIRCULARSTRING(25495368.0441 6671726.9312,25495368.3959388 6671726.93601515,25495368.7478 6671726.9333), (25495368.7478 6671726.9333,25495368.0441 6671726.9312)))'),ST_MakeEnvelope(25495443.625, 6671631.625, 25495556.375, 6671712.375))

st_intersects boolean

f

Change History (0)

Note: See TracTickets for help on using tickets.