Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Countries not showing up in world map example #24

Open
weiji14 opened this issue Mar 8, 2023 · 0 comments
Open

Countries not showing up in world map example #24

weiji14 opened this issue Mar 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@weiji14
Copy link
Member

weiji14 commented Mar 8, 2023

User reported at https://forum.generic-mapping-tools.org/t/not-able-to-draw-closed-polygons-using-pygmt/3663 that the geopandas.GeoDataFrame plot example in https://www.generic-mapping-tools.org/egu22pygmt/ecosystem.html isn't working.

fig.plot(data=world, pen="1p,black", close=True, color="+z", cmap=True, aspatial="Z=pop_est")

produces this error

plot [ERROR]: OGR parsing incomplete (is file missing OGR statements?) - abort

and a blank map
image

The change happened after #23 on Nov 2022 (see diff on gh-pages branch at 6b59921), and my guess is that this is related to the naturalearth_lowres update in geopandas/geopandas#2418 in Jun 2022 which updated the GeoDataFrame to have a mix of Polygon/MultiPolygon types, which isn't supported yet in PyGMT/GMT (see GenericMappingTools/pygmt#2405).

TODO: Update the notebook with some workaround so that the map is showing in the JupyterBook. E.g. following https://forum.generic-mapping-tools.org/t/not-able-to-draw-closed-polygons-using-pygmt/3663/3, or some other non-explode way.

@weiji14 weiji14 added the bug Something isn't working label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant