geopandas Polygon / MultiPolygon display error
See original GitHub issuePolygons in GeoDataFrames and GeoJSON don’t seem to be rendering. If they are MultiPolygon they seem to work as expected.
url = "http://eric.clst.org/assets/wiki/uploads/Stuff/gz_2010_us_040_00_500k.json"
country_gdf = geopandas.read_file(url)
Map(Layer(country_gdf))
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Error converting geometry column from string type - GeoPandas
I get this error when attempting to apply Polygon from shapely. import geopandas as gpd from shapely.geometry import Polygon df_geo['geometry'][ ...
Read more >Error while looping on polygon geopandas column, within ...
I have a dataframe with Polygons and would like ...
Read more >Geometric Manipulations — GeoPandas 0.12.2+0.gefcb367 ...
Note that documentation for all set-theoretic tools for creating new shapes using ... We can collapse these circles into a single MultiPolygon geometry...
Read more >Geometric operations — Spatial Data Programming with Python
We will see, in a moment that aggregation of a "Polygon" layer may create "MultiPolygon" geometries. For example, as a result of dissolving...
Read more >How to Dissolve Polygons Using Geopandas: GIS in Python
When you dissolve polygons, you remove the interior boundaries of a set of polygons with the same attribute value and create one new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
good catch 👀 ! I’d go ahead and support those type combinations, we’ve seen it doesn’t require a lot of changes.
OK, it seems that the gdf contains merged geometry types (Polygons and MultiPolygons). We supported only one type per source in VL because of how CARTO datasets work.
However, For GeoJSON it’s possible to support mixed Polygon+MultiPolygon, and also Line+Multiline and Point+Multipoint (Multipoint is not supported in VL GeoJSON btw https://github.com/CartoDB/carto-vl/issues/137).
What do you think @VictorVelarde @elenatorro?