ST_OffsetCurve fails on very specific inputs
|Reported by:||simonseyock||Owned by:||pramsey|
The following command fails:
SELECT ST_OffsetCurve(ST_GeomFromText('LINESTRING(362194.505 5649993.044,362197.451 5649994.125,362194.624 5650001.876,362189.684 5650000.114,362192.542 5649992.324,362194.505 5649993.044)', 25832), -0.045, 'join=mitre');
with the error:
I am using:
I also tested it with:
Note that the first and last coordinates of the linestring are the same. If the first or last coordinate or both are changed the error does not occur. Also if another distance than -0.045 is used the error does not occur.
This error might be somewhat related to #2496, the fix however is not applicable as the bug does appear with newer versiosn of GEOS.