ST_Polygonize/Shapely cannot polygonize when overlapping with shared node/point The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Help with PostGIS polygon geometry - non-closed ringsInstall Shapely with GEOS on herokuError and kernel dies with shapely/geos inside Jupyter notebookWhy won't my points (that I created by intersection) intersect with the geometry they've been created from?Drawing ellipse with shapely?Closest point to road intersections with GeoPandas and ShapelyShapely python spatial join - point with lineWhy does a LINESTRING change in length after union with a shorter but completely-overlapping LINESTRING?Shapely with IronPython 2.7Invalid Shapefile of Shapely polygons written with Fiona
Sub-subscripts in strings cause different spacings than subscripts
Why did Peik Lin say, "I'm not an animal"?
Voltage transmission
What other Star Trek series did the main TNG cast show up in?
TDS update packages don't remove unneeded items
How to handle characters who are more educated than the author?
Does Parliament hold absolute power in the UK?
Make it rain characters
Does Parliament need to approve the new Brexit delay to 31 October 2019?
Why can't devices on different VLANs, but on the same subnet, communicate?
For what reasons would an animal species NOT cross a *horizontal* land bridge?
Windows 10: How to Lock (not sleep) laptop on lid close?
how can a perfect fourth interval be considered either consonant or dissonant?
Is an up-to-date browser secure on an out-of-date OS?
Didn't get enough time to take a Coding Test - what to do now?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
Store Dynamic-accessible hidden metadata in a cell
Simulating Exploding Dice
What can I do if neighbor is blocking my solar panels intentionally?
Can withdrawing asylum be illegal?
Why doesn't a hydraulic lever violate conservation of energy?
What happens to a Warlock's expended Spell Slots when they gain a Level?
ST_Polygonize/Shapely cannot polygonize when overlapping with shared node/point
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Help with PostGIS polygon geometry - non-closed ringsInstall Shapely with GEOS on herokuError and kernel dies with shapely/geos inside Jupyter notebookWhy won't my points (that I created by intersection) intersect with the geometry they've been created from?Drawing ellipse with shapely?Closest point to road intersections with GeoPandas and ShapelyShapely python spatial join - point with lineWhy does a LINESTRING change in length after union with a shorter but completely-overlapping LINESTRING?Shapely with IronPython 2.7Invalid Shapefile of Shapely polygons written with Fiona
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to use both polygonize_full (Shapely, python) and ST_Polygonize (postgis) to get all polygons from a set of line strings.
There is one case where it fails: when there is an "overlapping polygon" with a shared "node".
Pictured here:
The result set is empty, but shapely provides a 'dangles' that provides the entire "failed" linestring,
Has anyone encountered this? Is there a way to gracefully solve this? I couldn't find anything in the docs.
I would expect these two be two separate polygons that overlap each other, despite their shared node.
Here's the WKT I'm using for example.
MULTILINESTRING((-122.43682090001732 37.767652910517015,-122.4366733785215 37.767652910517015),(-122.4366733785215 37.767652910517015,-122.4366733785215 37.76759990327466),(-122.4366733785215 37.76759990327466,-122.43682090001732 37.76759990327466),(-122.43682090001732 37.76759990327466,-122.43682090001732 37.767652910517015),(-122.43682090001732 37.767652910517015,-122.43675920920998 37.767717579352684),(-122.43675920920998 37.767717579352684,-122.43675920920998 37.767626406895836),(-122.43675920920998 37.767626406895836,-122.43682090001732 37.767652910517015))
postgis shapely polygonize geos
add a comment |
I'm trying to use both polygonize_full (Shapely, python) and ST_Polygonize (postgis) to get all polygons from a set of line strings.
There is one case where it fails: when there is an "overlapping polygon" with a shared "node".
Pictured here:
The result set is empty, but shapely provides a 'dangles' that provides the entire "failed" linestring,
Has anyone encountered this? Is there a way to gracefully solve this? I couldn't find anything in the docs.
I would expect these two be two separate polygons that overlap each other, despite their shared node.
Here's the WKT I'm using for example.
MULTILINESTRING((-122.43682090001732 37.767652910517015,-122.4366733785215 37.767652910517015),(-122.4366733785215 37.767652910517015,-122.4366733785215 37.76759990327466),(-122.4366733785215 37.76759990327466,-122.43682090001732 37.76759990327466),(-122.43682090001732 37.76759990327466,-122.43682090001732 37.767652910517015),(-122.43682090001732 37.767652910517015,-122.43675920920998 37.767717579352684),(-122.43675920920998 37.767717579352684,-122.43675920920998 37.767626406895836),(-122.43675920920998 37.767626406895836,-122.43682090001732 37.767652910517015))
postgis shapely polygonize geos
1
Please use the SE UI to embed pictures. Links to third-party sites are more likely to fail, and less likely to be followed.
– Vince
Apr 6 at 23:43
add a comment |
I'm trying to use both polygonize_full (Shapely, python) and ST_Polygonize (postgis) to get all polygons from a set of line strings.
There is one case where it fails: when there is an "overlapping polygon" with a shared "node".
Pictured here:
The result set is empty, but shapely provides a 'dangles' that provides the entire "failed" linestring,
Has anyone encountered this? Is there a way to gracefully solve this? I couldn't find anything in the docs.
I would expect these two be two separate polygons that overlap each other, despite their shared node.
Here's the WKT I'm using for example.
MULTILINESTRING((-122.43682090001732 37.767652910517015,-122.4366733785215 37.767652910517015),(-122.4366733785215 37.767652910517015,-122.4366733785215 37.76759990327466),(-122.4366733785215 37.76759990327466,-122.43682090001732 37.76759990327466),(-122.43682090001732 37.76759990327466,-122.43682090001732 37.767652910517015),(-122.43682090001732 37.767652910517015,-122.43675920920998 37.767717579352684),(-122.43675920920998 37.767717579352684,-122.43675920920998 37.767626406895836),(-122.43675920920998 37.767626406895836,-122.43682090001732 37.767652910517015))
postgis shapely polygonize geos
I'm trying to use both polygonize_full (Shapely, python) and ST_Polygonize (postgis) to get all polygons from a set of line strings.
There is one case where it fails: when there is an "overlapping polygon" with a shared "node".
Pictured here:
The result set is empty, but shapely provides a 'dangles' that provides the entire "failed" linestring,
Has anyone encountered this? Is there a way to gracefully solve this? I couldn't find anything in the docs.
I would expect these two be two separate polygons that overlap each other, despite their shared node.
Here's the WKT I'm using for example.
MULTILINESTRING((-122.43682090001732 37.767652910517015,-122.4366733785215 37.767652910517015),(-122.4366733785215 37.767652910517015,-122.4366733785215 37.76759990327466),(-122.4366733785215 37.76759990327466,-122.43682090001732 37.76759990327466),(-122.43682090001732 37.76759990327466,-122.43682090001732 37.767652910517015),(-122.43682090001732 37.767652910517015,-122.43675920920998 37.767717579352684),(-122.43675920920998 37.767717579352684,-122.43675920920998 37.767626406895836),(-122.43675920920998 37.767626406895836,-122.43682090001732 37.767652910517015))
postgis shapely polygonize geos
postgis shapely polygonize geos
edited Apr 7 at 4:16
Kevin Redman
asked Apr 6 at 23:22
Kevin RedmanKevin Redman
134
134
1
Please use the SE UI to embed pictures. Links to third-party sites are more likely to fail, and less likely to be followed.
– Vince
Apr 6 at 23:43
add a comment |
1
Please use the SE UI to embed pictures. Links to third-party sites are more likely to fail, and less likely to be followed.
– Vince
Apr 6 at 23:43
1
1
Please use the SE UI to embed pictures. Links to third-party sites are more likely to fail, and less likely to be followed.
– Vince
Apr 6 at 23:43
Please use the SE UI to embed pictures. Links to third-party sites are more likely to fail, and less likely to be followed.
– Vince
Apr 6 at 23:43
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317998%2fst-polygonize-shapely-cannot-polygonize-when-overlapping-with-shared-node-point%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317998%2fst-polygonize-shapely-cannot-polygonize-when-overlapping-with-shared-node-point%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Please use the SE UI to embed pictures. Links to third-party sites are more likely to fail, and less likely to be followed.
– Vince
Apr 6 at 23:43