Creating square buffers around point and merging them if they intersect using shapely?Creating square buffer...
ESPP--any reason not to go all in?
What would be the most expensive material to an intergalactic society?
Why restrict private health insurance?
(Codewars) Linked Lists-Sorted Insert
How do spaceships determine each other's mass in space?
Converting from "matrix" data into "coordinate" data
Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?
How to install round brake pads
-1 to the power of a irrational number
Was it really inappropriate to write a pull request for the company I interviewed with?
What is better: yes / no radio, or simple checkbox?
Logistic regression BIC: what's the right N?
Locked Away- What am I?
How do you make a gun that shoots melee weapons and/or swords?
Movie: boy escapes the real world and goes to a fantasy world with big furry trolls
Boss Telling direct supervisor I snitched
Is it appropriate to ask a former professor to order a book for me through an inter-library loan?
If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?
Yet another question on sums of the reciprocals of the primes
How can I portion out frozen cookie dough?
Help! My Character is too much for her story!
What does *dead* mean in *What do you mean, dead?*?
Should we avoid writing fiction about historical events without extensive research?
How do we create new idioms and use them in a novel?
Creating square buffers around point and merging them if they intersect using shapely?
Creating square buffer around point feature using ArcGIS for Desktop?point in polygon starting with csv and shp in pythonHow to create square buffers around points in QGIS with Python?Creating polygons for points with different radius in QGISmedA easy way to create buffer in QGIS?Missing 1.6% of expected area after buffering SpatialPoints from vector of widthsMerge contiguous lines unless they intersect with a pointCreate a Square Buffer around a Raster ( .vrt ) file in QGIS Python ConsoleCreate buffers around points and merge with SpatialPolygonsDataFrame to create a list of matched polygons and the area of intersectionHow to create buffers around points in ArcMap when there is a lack of OID
I am trying to create square buffers around given points, I am able to create circular buffers but not square ones.
from shapely.ops import transform
from shapely.geometry import Point
local_azimuthal_projection = "+proj=aeqd +R=6371000 +units=m +lat_0={} +lon_0={}".format(lat, lon)
wgs84_to_aeqd = partial(
pyproj.transform,
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
pyproj.Proj(local_azimuthal_projection),
)
aeqd_to_wgs84 = partial(
pyproj.transform,
pyproj.Proj(local_azimuthal_projection),
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
)
point_transformed = transform(wgs84_to_aeqd, Point(float(lon), float(lat)))
buffer = point_transformed.buffer(0.5*1000)
buffered_geom = transform(aeqd_to_wgs84, buffer).exterior.coords[:]
Also, if I have some buffers that overlap, how can I merge them?
python geometry coordinates buffer
add a comment |
I am trying to create square buffers around given points, I am able to create circular buffers but not square ones.
from shapely.ops import transform
from shapely.geometry import Point
local_azimuthal_projection = "+proj=aeqd +R=6371000 +units=m +lat_0={} +lon_0={}".format(lat, lon)
wgs84_to_aeqd = partial(
pyproj.transform,
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
pyproj.Proj(local_azimuthal_projection),
)
aeqd_to_wgs84 = partial(
pyproj.transform,
pyproj.Proj(local_azimuthal_projection),
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
)
point_transformed = transform(wgs84_to_aeqd, Point(float(lon), float(lat)))
buffer = point_transformed.buffer(0.5*1000)
buffered_geom = transform(aeqd_to_wgs84, buffer).exterior.coords[:]
Also, if I have some buffers that overlap, how can I merge them?
python geometry coordinates buffer
1
Please Edit the question to provide a picture of a "square buffer"
– Vince
1 hour ago
As per the Tour there should be only one question asked per question.
– PolyGeo♦
33 secs ago
add a comment |
I am trying to create square buffers around given points, I am able to create circular buffers but not square ones.
from shapely.ops import transform
from shapely.geometry import Point
local_azimuthal_projection = "+proj=aeqd +R=6371000 +units=m +lat_0={} +lon_0={}".format(lat, lon)
wgs84_to_aeqd = partial(
pyproj.transform,
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
pyproj.Proj(local_azimuthal_projection),
)
aeqd_to_wgs84 = partial(
pyproj.transform,
pyproj.Proj(local_azimuthal_projection),
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
)
point_transformed = transform(wgs84_to_aeqd, Point(float(lon), float(lat)))
buffer = point_transformed.buffer(0.5*1000)
buffered_geom = transform(aeqd_to_wgs84, buffer).exterior.coords[:]
Also, if I have some buffers that overlap, how can I merge them?
python geometry coordinates buffer
I am trying to create square buffers around given points, I am able to create circular buffers but not square ones.
from shapely.ops import transform
from shapely.geometry import Point
local_azimuthal_projection = "+proj=aeqd +R=6371000 +units=m +lat_0={} +lon_0={}".format(lat, lon)
wgs84_to_aeqd = partial(
pyproj.transform,
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
pyproj.Proj(local_azimuthal_projection),
)
aeqd_to_wgs84 = partial(
pyproj.transform,
pyproj.Proj(local_azimuthal_projection),
pyproj.Proj('+proj=longlat +datum=WGS84 +no_defs'),
)
point_transformed = transform(wgs84_to_aeqd, Point(float(lon), float(lat)))
buffer = point_transformed.buffer(0.5*1000)
buffered_geom = transform(aeqd_to_wgs84, buffer).exterior.coords[:]
Also, if I have some buffers that overlap, how can I merge them?
python geometry coordinates buffer
python geometry coordinates buffer
edited 1 min ago
PolyGeo♦
53.6k1781243
53.6k1781243
asked 1 hour ago
AtihskaAtihska
1146
1146
1
Please Edit the question to provide a picture of a "square buffer"
– Vince
1 hour ago
As per the Tour there should be only one question asked per question.
– PolyGeo♦
33 secs ago
add a comment |
1
Please Edit the question to provide a picture of a "square buffer"
– Vince
1 hour ago
As per the Tour there should be only one question asked per question.
– PolyGeo♦
33 secs ago
1
1
Please Edit the question to provide a picture of a "square buffer"
– Vince
1 hour ago
Please Edit the question to provide a picture of a "square buffer"
– Vince
1 hour ago
As per the Tour there should be only one question asked per question.
– PolyGeo♦
33 secs ago
As per the Tour there should be only one question asked per question.
– PolyGeo♦
33 secs ago
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%2f314949%2fcreating-square-buffers-around-point-and-merging-them-if-they-intersect-using-sh%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%2f314949%2fcreating-square-buffers-around-point-and-merging-them-if-they-intersect-using-sh%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 Edit the question to provide a picture of a "square buffer"
– Vince
1 hour ago
As per the Tour there should be only one question asked per question.
– PolyGeo♦
33 secs ago