user29283775
user29283775

Reputation: 11

How to use Natural Earth point-of-view in Cartopy

Cartopy boundaries reflect Natural Earth definition of de facto boundaries. Version 5 of Natural Earth adds support for alternate points of view in admin-0 related themes with fclass_* properties (like fclass_iso).

I see no reference to this feature in Cartopy documentation.

I tried to define a new instance of cartopy.feature.NaturalEarthFeature using a kind keyword as I thought was being defined by Natural Earth:

myBorders = cfeature.NaturalEarthFeature(category='cultural', name='admin_0_countries', scale='10m', facecolor='none', kind='it')
ax.add_feature(myBorders, linestyle=':')  # National boundaries

But that was a dumb experiment...

Of course, I could replace the ne_10m_admin_0_countries file with the one supporting a more appropriate point of view, but I was looking for a self-contained solution

Upvotes: 1

Views: 20

Answers (0)

Related Questions