Comments (7)
This error stems from us not supporting multiindex GeoDataFrames and dissolving generating a multiindex GeoDataFrame
Converting the following
aoi = idn[idn.ADM2_EN == "Subang"].dissolve(by="ADM2_EN")
to
aoi = idn[idn.ADM2_EN == "Subang"]
works.
from geowrangler.
Alternatively, you can pass as_index
as False and this doesn't generate a MultiIndex GeoDataFrame
aoi = idn[idn.ADM2_EN == "Subang"].dissolve(by="ADM2_EN", as_index=False)
from geowrangler.
@butchtm @alronlam Should we support multiindex geodataframes or should we throw an assertion error telling users that we dont support it?
from geowrangler.
For now, we could do a quick fix to throw an assertion error so users are aware we don't support multi-index for now.
Then file an enhancement request to support multi-indexes separately later. cc @tm-kah-alforja
from geowrangler.
Ahh I see. Agree with @butchtm I think we can just throw an assertion error for now so it's clear what the error is and how to fix it. I'm not really sure either if multi-index support is something that's necessary.
from geowrangler.
Alright, i can take this on.
from geowrangler.
Reopening this. Still reproducible error when I tried today. See this updated gist.
from geowrangler.
Related Issues (20)
- Allow ookla download to accept a date range request and aggregate stats for all the downloaded stats
- Area zonal stats: using imputed_mean results to nulls even if fillna=True HOT 2
- Markdown rendering bug in raster_zonal_stats
- Geofbarik documentation bug
- Bug in GeometryValidation for gdf with None area_of_use
- generate_ookla_features: imputed_mean produces object type values instead of numerical HOT 4
- Warn users when the boundary given in gridgeneration does not contain entire AOI
- area_zonal_stats computation error HOT 4
- Automate publishing of pypi package
- dhs global index computation: include feature recode
- Link to tutorial.dhs.html is not working HOT 3
- Raster Zonal Stats: Nodata values (-99999) for rasters cause negative sums HOT 3
- Spatial join of polygons with highest intersection
- Grid Tile Clustering HOT 3
- COG Generation HOT 3
- Crop raster window and save to file HOT 3
- Installing conda environment conflicts with the geowrangler repo folder
- Vector to Raster Mask
- Raster to DF
- Raster Sampling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geowrangler.