All Questions
80
questions
2
votes
2
answers
64
views
Buffer without overlaps in Python
I have a set of points with respective lat/long coordinates and each point has a given value associated with it (basically a field measurement). I would like to draw buffers of a given radius around ...
0
votes
0
answers
98
views
How to infer the cordinate system dynamically from a wkt point, for create buffers?
What about if you have a multiple point of the world? How can infer the cordinate system dynamically from a place in Python, for example Mexico, Brazil, Chile, Canada, etc.?
The goal is to create a ...
1
vote
1
answer
42
views
How to buffer a selected point in PyQGIS
I have a few random points that I generated within a polygon. I randomly selected one of the points and would like to buffer that point. In the case below, buffering will be applied to all points and ...
0
votes
0
answers
57
views
Area of intersection between two polygons: TopologyException: Input geom 0 is invalid
I am trying to compute the area of the intersection of two polygons as follows:
inter = geomap_ilot.sjoin(df_final_quartiers_arrond)
def f(frame):
"""A function to calculate ...
2
votes
1
answer
141
views
Calculating percentage of landuse type within buffer using Python [closed]
I have two polygon shapefiles: buffers and landuse types. I want to calculate the percentage of each landuse type within the respective buffer. The problem is that the landuse type polygons are bigger ...
3
votes
1
answer
158
views
Creating a buffer that tapers in thickness in GeoPandas
I'm currently working on a project involving creating an isochrone map of historical water travel. At the moment, I have a geodataframe containing a starting point on the river, a multipoint of the ...
1
vote
0
answers
68
views
Adding overlapping routes when there is no overlapping route using buffer and union
I am trying to do something to do with routes, Let's say I have 3 routes rt1 and rt2 are overlapping routes that share some length but r3 does not overlap with either of them. How would I just add the ...
0
votes
3
answers
737
views
Buffer and separate two polygons from upper and lower buffer line using shapely or geopandas
I want to create a buffer (20km) from a line, and then separate them into two polygons with the line is boundary between two polygons (picture demo below. The desired output would be two polygons such ...
4
votes
1
answer
153
views
Avoid losing overlapping areas when buffering line with Python
LineString is the path of the transport on the field with attached equipment. Is it possible to use GeoPandas or third-party Python libraries to find overlapping areas when buffering a path line to a ...
6
votes
3
answers
573
views
Creating buffers in meters for locations around the world using Python
I have a location dataset (points long & lat) for events that happened around the World. I want to create 5km rings around these locations using Geopandas.buffer function. Following in a previous ...
0
votes
1
answer
221
views
Difference between df.geometry.buffer and df.geometry.scale in plain english
I am still struggling to grasp the difference between df.geometry.buffer and df.geometry.scale.
They can both be used to increase the size of a polygon but how are they different?
While in df.geometry....
2
votes
1
answer
276
views
Geopandas one sided buffer
cs_buffer = cs.copy()
cs_buffer = cs_buffer.to_crs("epsg:25832")
cs_buffer.geometry = cs_buffer.geometry.buffer(40, single_sided=True)
cs_buffer = cs_buffer.to_crs("epsg:4326")
My ...
0
votes
0
answers
41
views
How to build ArcGIS line buffer based on raster depth value
I want to create a script in Python for ArcGIS that generates a buffer around a line feature, but I want the width to vary depending on the underlying raster layer. Specifically I want to create a ...
0
votes
1
answer
565
views
How to add buffer in to a geo location
I want to draw 200m buffer circle around two geo locations. I tried with below code
import geopandas as gpd
import pandas as pd
locations = pd.DataFrame([
{'id': '1',
'longitude': 50.604972,
...
1
vote
1
answer
251
views
Calculating the joint area of two circles centered by two coordinates with 1 kilometer radius
The coordinates are (116.437017,39.91525) and (116.437591,39.91548) for example in Gaode Map (https://lbs.amap.com/tools/picker).
I want to draw two circles using Point(lon, lat).buffer() in shapely ...