Intersection function returns multiple coordinates The 2019 Stack Overflow Developer Survey...
Limit to 0 ambiguity
How to create dashed lines/arrows in Illustrator
How was Skylab's orbit inclination chosen?
Geography at the pixel level
How to make payment on the internet without leaving a money trail?
Is this food a bread or a loaf?
Falsification in Math vs Science
Why is my p-value correlated to difference between means in two sample tests?
In microwave frequencies, do you use a circulator when you need a (near) perfect diode?
How are circuits which use complex ICs normally simulated?
What do hard-Brexiteers want with respect to the Irish border?
What is the use of option -o in the useradd command?
Inversion Puzzle
Could a US political party gain complete control over the government by removing checks & balances?
Inflated grade on resume at previous job, might former employer tell new employer?
I see my dog run
Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?
Dual Citizen. Exited the US on Italian passport recently
Return to UK after being refused
If the Wish spell is used to duplicate the effect of Simulacrum, are existing duplicates destroyed?
Is three citations per paragraph excessive for undergraduate research paper?
Can the Protection from Evil and Good spell be used on the caster?
What is the meaning of Triage in Cybersec world?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Intersection function returns multiple coordinates
The 2019 Stack Overflow Developer Survey Results Are InHow to get the intersecting polygon of two polygons? (using JSTS intersection)Finding intersection density for weighted lines connecting points across the continental USAOracle Spatial Returns Different Intersection Results with SRID Definedpython 2 polygon intersectionHow can I add points to a LineString in shapely?Getting intersection of multiple polygons efficiently in PythonGeopandas Line Polygon IntersectionDealing with a hole (or inner ring) at the intersection of two MultiPolygon polygons in Python ShapelyFast intersection of a list of polygons with a bounding polygon using ShapelyFind intersection vertices of two polygons
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am trying to find intersection vertices of two polygons defined below
PG = Polygon([(0.0,0.0), (0.0,4.0), (2.0, 0.0)])
QG = shapely.affinity.rotate(PG, 10.0, origin="centroid")
print(PG.intersection(QG))
It returns a polygon which represents the intersection vertices but I get multiple vertices belonging to polygon PG and QG and not the exact intersection vertices something like this
POLYGON ((0 1.275007557649384, 0 3.233068398870882, 1.176669689726421 1.646660620547158, 1.901423900453083 0.1971521990938349, 0.7833182180345657 0, 0.2248182330207899 0, 0 1.275007557649384))
The graph looks something like this
How to get the exact intersection vertices ?
python coordinates intersection shapely
New contributor
add a comment |
I am trying to find intersection vertices of two polygons defined below
PG = Polygon([(0.0,0.0), (0.0,4.0), (2.0, 0.0)])
QG = shapely.affinity.rotate(PG, 10.0, origin="centroid")
print(PG.intersection(QG))
It returns a polygon which represents the intersection vertices but I get multiple vertices belonging to polygon PG and QG and not the exact intersection vertices something like this
POLYGON ((0 1.275007557649384, 0 3.233068398870882, 1.176669689726421 1.646660620547158, 1.901423900453083 0.1971521990938349, 0.7833182180345657 0, 0.2248182330207899 0, 0 1.275007557649384))
The graph looks something like this
How to get the exact intersection vertices ?
python coordinates intersection shapely
New contributor
add a comment |
I am trying to find intersection vertices of two polygons defined below
PG = Polygon([(0.0,0.0), (0.0,4.0), (2.0, 0.0)])
QG = shapely.affinity.rotate(PG, 10.0, origin="centroid")
print(PG.intersection(QG))
It returns a polygon which represents the intersection vertices but I get multiple vertices belonging to polygon PG and QG and not the exact intersection vertices something like this
POLYGON ((0 1.275007557649384, 0 3.233068398870882, 1.176669689726421 1.646660620547158, 1.901423900453083 0.1971521990938349, 0.7833182180345657 0, 0.2248182330207899 0, 0 1.275007557649384))
The graph looks something like this
How to get the exact intersection vertices ?
python coordinates intersection shapely
New contributor
I am trying to find intersection vertices of two polygons defined below
PG = Polygon([(0.0,0.0), (0.0,4.0), (2.0, 0.0)])
QG = shapely.affinity.rotate(PG, 10.0, origin="centroid")
print(PG.intersection(QG))
It returns a polygon which represents the intersection vertices but I get multiple vertices belonging to polygon PG and QG and not the exact intersection vertices something like this
POLYGON ((0 1.275007557649384, 0 3.233068398870882, 1.176669689726421 1.646660620547158, 1.901423900453083 0.1971521990938349, 0.7833182180345657 0, 0.2248182330207899 0, 0 1.275007557649384))
The graph looks something like this
How to get the exact intersection vertices ?
python coordinates intersection shapely
python coordinates intersection shapely
New contributor
New contributor
New contributor
asked 11 mins ago
Ashutosh MishraAshutosh Mishra
31
31
New contributor
New contributor
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
});
}
});
Ashutosh Mishra is a new contributor. Be nice, and check out our Code of Conduct.
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%2f318325%2fintersection-function-returns-multiple-coordinates%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
Ashutosh Mishra is a new contributor. Be nice, and check out our Code of Conduct.
Ashutosh Mishra is a new contributor. Be nice, and check out our Code of Conduct.
Ashutosh Mishra is a new contributor. Be nice, and check out our Code of Conduct.
Ashutosh Mishra is a new contributor. Be nice, and check out our Code of Conduct.
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%2f318325%2fintersection-function-returns-multiple-coordinates%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