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

Admin 1 States and Provinces 10m not being found by cfeature.NaturalEarth #919

Open
HathewayWill opened this issue Jun 20, 2024 · 0 comments

Comments

@HathewayWill
Copy link

This code used to work prior to 5.1.1

feature = cfeature.NaturalEarthFeature(
      category=category,
      scale=scale,
      facecolor=facecolor,
      edgecolor=edgecolor,
      linewidth=linewidth,
      name=name,
      zorder=zorder,
      alpha=alpha,
  )
  ax.add_feature(feature)


# List of features to add
features = [("physical", "10m", cfeature.COLORS["land"], "black", 0.50, "minor_islands"),
          ("physical", "10m", "none", "black", 0.50, "coastline"),
          ("physical", "10m", cfeature.COLORS["water"], None, None, "ocean_scale_rank", 2),
          ("physical", "10m", cfeature.COLORS["water"], cfeature.COLORS["water"], None, "lakes"),
          ("physical", "10m", "none", cfeature.COLORS["water"], None, "rivers_lake_centerlines"),
          ("cultural", "10m", "none", "grey", 1.00, "admin_1_states_provinces", None, 0.70),
          ("cultural", "10m", "none", "black", 1.00, "admin_0_countries"),
          ("cultural", "10m", "none", "black", 0.60, "admin_2_counties", None, 0.50),
          ("physical", "10m", "none", cfeature.COLORS["water"], None, "rivers_north_america", None, 0.75),
          ("physical", "10m", "none", cfeature.COLORS["water"], None, "rivers_australia", None, 0.75),
          ("physical", "10m", "none", cfeature.COLORS["water"], None, "rivers_europe", None, 0.75),
          ("physical", "10m", cfeature.COLORS["water"], cfeature.COLORS["water"], None, "lakes_north_america", None, 0.75),
          ("physical", "10m", cfeature.COLORS["water"], cfeature.COLORS["water"], None, "lakes_australia", None, 0.75),
          ("physical", "10m", cfeature.COLORS["water"], cfeature.COLORS["water"], None, "lakes_europe", None, 0.75)]


But now the 10m states and provinces cannot be found by cfeature.NaturalEarthFeature. I think there is a link or something missing. Because the website can direct download it but the cfeature cannot.

It can find the 50m states and provinces though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant