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;








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: https://puu.sh/DaVkp/0848ce181a.png



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))









share|improve this question



















  • 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

















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: https://puu.sh/DaVkp/0848ce181a.png



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))









share|improve this question



















  • 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













0












0








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: https://puu.sh/DaVkp/0848ce181a.png



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))









share|improve this question
















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: https://puu.sh/DaVkp/0848ce181a.png



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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










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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Crop image to path created in TikZ? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Crop an inserted image?TikZ pictures does not appear in posterImage behind and beyond crop marks?Tikz picture as large as possible on A4 PageTransparency vs image compression dilemmaHow to crop background from image automatically?Image does not cropTikzexternal capturing crop marks when externalizing pgfplots?How to include image path that contains a dollar signCrop image with left size given

រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

Ромео және Джульетта Мазмұны Қысқаша сипаттамасы Кейіпкерлері Кино Дереккөздер Бағыттау мәзірі