Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

geopandas Polygon / MultiPolygon display error

See original GitHub issue

Polygons in GeoDataFrames and GeoJSON don’t seem to be rendering. If they are MultiPolygon they seem to work as expected.

Screen Shot 2019-06-25 at 3 30 40 PM
url = ""
country_gdf = geopandas.read_file(url)


Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

elenatorrocommented, Jul 1, 2019

good catch 👀 ! I’d go ahead and support those type combinations, we’ve seen it doesn’t require a lot of changes.

Jesus89commented, Jul 1, 2019

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

What do you think @VictorVelarde @elenatorro?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found