2,802 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
107
views
Bizzare "kernel has died" error in pandas df.to_excel() caused by geopandas
When pandas.read_excel(), df.to_excel(), geopandas.read_file() and gdf.to_file() are called in a certain order in different environments, pd.read_excel() sometimes causes "Kernel has died" ...
2
votes
1
answer
79
views
In GeoPandas, list of latitude and longitude points not being classified into a boundary area
I’m working with the Ceremonial County Boundaries of England shapefile available here:
https://www.data.gov.uk/dataset/0fb911e4-ca3a-4553-9136-c4fb069546f9/ceremonial-county-boundaries-of-england
The ...
0
votes
0
answers
48
views
Plotly Choropleth not showing with Geopandas
I've seen this issue come up in other pages but none of their solutions worked for me.
import plotly.express as px
import geopandas as gpd
import cartopy.crs as ccrs
regions = gpd.read_file("...
1
vote
0
answers
106
views
"GEOSException Error: Shell empty after removing invalid points" when trying to buffer with geopandas
First time posting so apologies if I miss important info. I keep getting this error but it only happens intermittently so I have had a hard time narrowing down the problem. I have an input of a ...
-1
votes
1
answer
236
views
How to merge many nearly parallel line segments into a single density-weighted segment (Python/Shapely)?
I have a dataset of line segments derived from many GPS traces, where users have followed the same roads but their paths aren’t identical (think of thousands of cars driving along a road, each with ...
2
votes
1
answer
248
views
How to read a geojson file when an attribute/column values are lists. WARNING:pyogrio._io:Skipping field paths: unsupported OGR type: 5
Here an example of the geojson written using: geopandas.to_file(path/to/example.geojson)
{
"type": "FeatureCollection",
"name": "example",
"crs": { &...
4
votes
2
answers
143
views
Does geopandas overestimate distances?
I was recently doing some statistics based on openstreetmaps. When I used overpass to export the German Autobahnen and geopandas to calculate their length, I found that the lengths do not match the ...
0
votes
2
answers
94
views
Calculating the closest intersection based upon latitude and longitude
I have a geojson file containing the latitude and longitude coordinates of all of the streets and avenues in New York City - they're all formatted as either LineString and MultiLineString as follows:
{...
2
votes
0
answers
55
views
GeoPandas: write to GPX track with timestamps
I have a GeoPandas data frame with ‘time’ (datetime with timezone) and ‘geometry’ (geometry) columns that I want to export out to a GPX track file with timestamps for each point. It seems that ....
2
votes
1
answer
119
views
How to display a legend when plotting a GeoDataFrame
I have a GeoDataFrame I want to plot. This works fine, however somehow I cannot easily plot its legend. I have tried a number of alternatives and checked solutions from googling and LLM, but I do not ...
1
vote
1
answer
61
views
A random line over Greenland when reprojecting to lon=30
I'm making a map on Pyhton and someone recommended that I reporject it to lon=30 for better visuals. But when I do that a random line over Greenland appears. I can't seem to get rid of it.
import ...
1
vote
0
answers
35
views
read geopandas dataframe with gpd.from_postgis passing parameters to sqlalchemy query [duplicate]
I'm trying to pass parameters to sql query to be read with from_postgis function in order to get a geopandas dataframe from a postgis database.
from sqlalchemy import create_engine
from sqlalchemy ...
0
votes
0
answers
51
views
Invalid offset for entity 11037970
I'm reading a polygon file using geopandas:
import osgeo
import geopandas as gpd
polygon_path = "F:\\data\\LPJP\\gwl2020_ch\\gwl_2020.shp"
polygon = gpd.read_file(polygon_path)
print(...
0
votes
1
answer
93
views
Geopanadas subplots:
I am using geopandas and want three subplots. But I could not get pass the subplot axis with geopandas. I am using the geopandas 1.0.1 version.
Here is my plotting code:
df=pd.read_csv('/home/ruby/...
0
votes
0
answers
100
views
How do I modify a Matplotlib colorbar so the labels are integers? [duplicate]
I have a GeoDataFrame that I'm plotting in Matplotlib as a choropleth map.
gdf.plot(ax = ax,
column = 'column to color by',
legend = True,
legend_kwds={"label": ...