You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take the intersection of the polygon and line string shown in the following figure:
SELECT ST_AsText(ST_Intersection(geom.b, geom.a))AS intersection
FROM (SELECT ST_GeomFromText('POLYGON ((2 0, 0 2, 2 2, 2 0))') As a,
ST_GeomFromText('LINESTRING(0 0, 0.4 1.6, 1 0)') As b) As geom;
-- expected : {Point(0.4, 1.6)}
-- actual : {LINESTRING(0.4 1.6,0.4 1.6)}
And the returned Linestring is invalid:
SELECT ST_IsValid('LINESTRING(0.4 1.6,0.4 1.6)');
-- result : {f}
Version Info: GEOS="3.13.0-CAPI-1.19.0"
The text was updated successfully, but these errors were encountered:
dr-jts
changed the title
ST_Intersection return a invalid Linestring with Polygon and Linestring
ST_Intersection returns invalid Linestring with Polygon and Linestring
Dec 9, 2024
Take the intersection of the polygon and line string shown in the following figure:
And the returned Linestring is invalid:
Version Info:
GEOS="3.13.0-CAPI-1.19.0"
The text was updated successfully, but these errors were encountered: