ST_Polygonize/Shapely cannot polygonize when overlapping with shared node/pointInstall Shapely with GEOS on...
Modeling an IPv4 Address
Today is the Center
Font hinting is lost in Chrome-like browsers (for some languages )
Schoenfled Residua test shows proportionality hazard assumptions holds but Kaplan-Meier plots intersect
The use of multiple foreign keys on same column in SQL Server
LaTeX closing $ signs makes cursor jump
Minkowski space
"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
Mathematical cryptic clues
Do VLANs within a subnet need to have their own subnet for router on a stick?
How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?
Writing rule stating superpower from different root cause is bad writing
How could an uplifted falcon's brain work?
Test if tikzmark exists on same page
Why does Kotter return in Welcome Back Kotter?
How is it possible to have an ability score that is less than 3?
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
Can I ask the recruiters in my resume to put the reason why I am rejected?
Can divisibility rules for digits be generalized to sum of digits
TGV timetables / schedules?
Do I have a twin with permutated remainders?
Theorems that impeded progress
Why was the small council so happy for Tyrion to become the Master of Coin?
ST_Polygonize/Shapely cannot polygonize when overlapping with shared node/point
Install Shapely with GEOS on herokuPoint in Polygon using Rtree and ShapelyError and kernel dies with shapely/geos inside Jupyter notebookCheck if point is within radius of another point with ShapelyDrawing ellipse with shapely?Closest point to road intersections with GeoPandas and ShapelyShapely python spatial join - point with lineShapely with IronPython 2.7Invalid Shapefile of Shapely polygons written with FionaBroadcast Shapely Point on numpy array
.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: 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 eachother, 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: 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 eachother, 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: 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 eachother, 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: 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 eachother, 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 4 mins ago
wetland
3,89043677
3,89043677
asked 14 mins ago
Kevin RedmanKevin Redman
134
134
add a comment |
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