#3097 closed enhancement (fixed)
ST_Split using MULTILINESTRING blade
Reported by: | mwtoews | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.2.7 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
Attempting to split a POLYGON with a MULTILINESTRING in PostGIS 2.1 yields an error:
SELECT ST_AsText(ST_Split(poly, blade)) FROM ( SELECT 'POLYGON((20 30, 100 180, 160 20, 20 30),(70 70, 92 105, 110 50, 70 70))'::geometry poly, 'MULTILINESTRING((150 90, 90 70, 60 20),(50 140, 90 70))'::geometry blade ) f; ERROR: Splitting a Polygon by a MultiLineString is unsupported
This enhancement is to allow ST_Split to allow a MULTILINESTRING as a blade.
See UsersWikiSplitPolygonWithLineString for a ST_SplitPolygon
which can complete the above example as expected.
Change History (11)
comment:1 by , 10 years ago
Milestone: | PostGIS 2.2.0 → PostGIS Future |
---|
comment:2 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 9 years ago
Milestone: | PostGIS Future → PostGIS 2.2.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:4 by , 7 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Hello,
I'm working on Postgis "2.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1" and when I execute the following request :
SELECT ST_AsText(ST_Split(poly, blade)) FROM ( SELECT 'POLYGON((20 30, 100 180, 160 20, 20 30),(70 70, 92 105, 110 50, 70 70))'::geometry poly, 'MULTILINESTRING((150 90, 90 70, 60 20),(50 140, 90 70))'::geometry blade ) f;
I get the error : "Splitting a Polygon by a MultiLineString is unsupported"
comment:5 by , 7 years ago
Confirmed on trunk as well. The referenced patch covered a number of cases, but not the case in this actual ticket.
comment:6 by , 7 years ago
Milestone: | PostGIS 2.2.0 → PostGIS 2.2.7 |
---|
comment:8 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:9 by , 7 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
pramsey sorry to be such a nag.
Don't forget the NEWS item and Enhanced: note in docs. I reopened ticket for that cause I'm so petty.
Implemented with r13433, thanks Regione Toscana!