All Questions
41
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 ...
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 ...
0
votes
1
answer
57
views
Why the buffer geometry column in the GeoDataFrame is in point form although it's actually in polygon form?
I wanted to create a 1.5km buffer for each geocoded point. Here's the screenshot of the geocoded points dataframe.
So I overwrote the geometry column using the code below:
shopping_centres['geom'] = ...
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 ...
4
votes
1
answer
239
views
Custom Shapely Cap style
I am currently using shapely and geopandas to parse through a shapefile containing lines to build a rail network.
I am using shapely to create a buffer to identify sections of track that cannot be ...
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 ...
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
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,
...
3
votes
1
answer
129
views
Artifacts in buffer
After performing some basic vector operations on an OSM street-network I have artifacts in a number of locations.
import numpy as np
import pandas as pd
import geopandas as gpd
from osgeo import gdal, ...
4
votes
2
answers
1k
views
Buffer with no overlap
I have a GeoDataFrame of a (tiny) street network and want to buffer with no overlap.
Thus far I have:
#- get the stuff
rd = gpd.read_file('./data/roads-cput_proj.geojson')
rd.set_crs(epsg=32734, ...