Questions tagged [geopandas]
an open source project to make working with geospatial data in Python easier.
810
questions
5
votes
2answers
4k views
How to merge polygons using GeoDataFrame?
I would like to merge polygons (parcels) which are inside the white road (which is a hole) -- see the picture.
The way I'm doing this is certainly a bad way because later, in my script, I have this ...
1
vote
1answer
595 views
Extract area of polygons inside larger polygon and sum their values to a new column
I have two landcover classifications (as shapefiles) created using eCognition. "Level0 (FID)" consist of larger polygons and "Level1 (FID, ClassName, Area_Pxl)" of smaller polygons within these. I ...
2
votes
3answers
11k views
Only read specific attribute columns of a shapefile with Geopandas / Fiona
Having geopandas installed in my Python environment, I can read a shapefile into a geodataframe with
In:
import geopandas as gpd
myShapefile = gpd.read_file(path_to_my_shapefile)
print(myShapefile)
...
2
votes
1answer
4k views
Geopandas/folium map not displaying?
I'm trying to use a combination of geopandas, pandas and folium to create a polygon map that I can embed incorporate into a web page.
For some reason, it's not displaying and wonder if anyone can ...
8
votes
4answers
14k views
Handling KML/CSV with geopandas - DriverError: unsupported driver: u'CSV'
I'm trying to import a dataset of UK postcode districts UK postcode districts from Google Fusion tables into geopandas with the aim of splicing it to a dataset of house prices.
The problem is that ...
5
votes
1answer
4k views
How do I convert Eastings and Northings projection to WSG84 in geopandas?
I'm very new to projections and struggling to convert a map dataset from OSGB36 (Eastings and Northings) to WGS84 (lat/longs).
I've used geopandas to import a shapefile. Now I want to export it as ...
0
votes
1answer
2k views
geopandas error when writing to_file() “ValueError: 'long' is not in list”
I'm having a problem getting the "to_file()" function to work with geopandas
import geopandas as gpd
f = gpd.read_file('fin.shp')
f.to_file('fout.shp')
Error Output:
---------------------------...
2
votes
2answers
3k views
How do I load mapinfo mid/mif into geopandas?
I suspect this is a trivial question to answer but how do I load mapinfo mid/mif files into geopandas?
While it's trivial to load and manipulate .shp files, I can't work out what code to use:
Here's ...
3
votes
2answers
2k views
Folium GeoJSON Overlay Not Appearing
I am in the midst of a task which involves the clustering of assessment neighborhoods into larger neighborhoods (data link). The goal is build these neighborhoods in a manner consistent with major ...
8
votes
1answer
4k views
Sharing a Folium Interactive Map w/ Embedded Markers
I have been experimenting with a few Python packages that have great potential for my dissertation research. Since I use pandas for pretty much everything, geopandas was a natural choice for working ...