geopandas Questions
3
Solved
I have a piece of code that was working fine until last week, but now it's failing with the following error:
AttributeError: module 'fiona' has no attribute 'path'
I’ve ensured that all the necessa...
Confiture asked 4/9, 2024 at 14:6
3
Solved
My data set consists of a LineString and I want to filter out the individual line segments of this LineString. More precisely, every single street segment.
Until now I have extracted the individua...
3
I have a geopandas dataframe containing a list of shapely POINT geometries. There is another column with a list of ID's that specifies which unique polygon each point belongs to. Simplified input c...
Oldham asked 23/2, 2020 at 2:27
2
Solved
How do I set a consistent colorscheme for three axes in the same figure?
The following should be a wholly reproducible example to run the code and get the same figure I have posted below.
Get the...
Matadi asked 20/6, 2019 at 16:43
4
Solved
I have a function that outputs a grid of points as x and y numpy arrays for interpolation, but before I interpolate, I want to use Geopandas to perform an intersection with my research boundary (ot...
17
This error raised while installing geopandas. I've looking for its solution on the web, but none of them really explain what happened and how to solve it..
This is the full error:
Collecting geop...
2
I am trying to add a column to a geodataframe in Geopandas (0.4.0) with a single values (point) from a geoseries to be used in further calculations.
However, after simply creating a new column an...
Myrlemyrlene asked 1/6, 2019 at 17:45
2
I'm identifying if a point locates within a polygon. I have a dataframe contains the points and another dataframe contains the polygons, so I want to spatial join them like:
gpd.sjoin(df_points, df...
2
Solved
I am trying to change the CRS of a raster tif file. When I assign new CRS using the following code:
with rio.open(solar_path, mode='r+') as raster:
raster.crs = rio.crs.CRS({'init': 'epsg:27700'}...
2
Solved
I am trying to use geopandas to plot some info over a map. The first thing that I do is to upload a shape file of New York City:
nyc_boroughBoundaries = geopandas.read_file ("nybb_19b2")
This is...
3
Solved
There are a lot of questions here about matching points in polygons efficiently (examples: Here and Here). The primary variables of interest in these are high number of points N, and number of poly...
2
Solved
I have found very easy and useful to load world map from geopandas datasets, as probably many others, for example:
import geopandas as gpd
world = gpd.read_file(gpd.datasets.get_path('naturalearth_...
Posterior asked 24/6, 2023 at 22:36
2
Solved
I have a csv of about 100 million logs. Where one of the column is address and I am trying to get latitude and longitude of the address. I want to try something like mentioned in the Solution , But...
Raffin asked 19/5, 2017 at 5:18
3
I created a map using geopandas, but I am unable to add a "North Arrow" on the map.
After creating the map, I have tried to add the "north arrow" using matplotlib.image module and tried different ...
3
Solved
I am trying to run the below script from plotly: https://plotly.com/python/county-choropleth/
I'm receiving the error code right out the gate: TypeError: 'MultiPolygon' object is not iterable
I've ...
Mcgowen asked 21/4, 2023 at 15:0
4
Solved
I made a geopandas dataframe and I want to use geopandas_dataframe.explore() to create an interactive map. Here is my code. First I create the geopandas dataframe, I check the dtypes and I try to m...
2
Solved
I recently started using Geopandas in python for some of my spatial work and am very pleased with it - I'm currently trying to read in PostGIS features and don't quite understand how to parameteriz...
4
Solved
I'm trying to save Geopandas data frame into a shapefile that is written to a zipped folder directly.
As any shapefile user knows, a shapefile is not a single file but rather a collection of files ...
1
I need to use geopandas sjoin on a project. I have successfully created GeoDataFrame objects and used class methods readfile, crs and to_crs. However when it comes to using sjoin I am getting an er...
2
Solved
I have a GeoDataFrame (let's call it Destinations) that was made from a point shapefile using GeoPandas. For every feature (correct me if the terminology is wrong) in Destinations, I need to find t...
3
I'm trying to install geopandas on my M1 mac and I'm running into errors
I tried to pip install all the dependencies individually but where I'm tripping up is in the install of pyproj.
I installed ...
Cadge asked 16/2, 2022 at 7:11
3
I have two sets of shapefiles with polygons. One set of shapefile is just the US counties I'm interested in and this varies across firms and years. The other set of shapefile is the business area o...
Ravenna asked 22/11, 2016 at 19:34
8
I am using anaconda for geopandas.
However, everytime I try to use epsg:4326:, it gives an error.
CRSError: Invalid projection: epsg:4326: (Internal Proj Error: proj_create: SQLite error on SELECT ...
2
I have seen this question asked but have not really been able to find a full response. I have a simple shapely polygon, called polygon. I would like to extract this polygon as a binary mask (ideall...
6
Solved
I am trying to install the geopandas package with Anaconda Prompt, but after I use conda install geopandas an unexpected thing happened:
Collecting package metadata (current_repodata.json): done
So...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.