cartopy
cartopy copied to clipboard
Ocean feature with scale 50m produces invalid results with EuroPP projection
The ocean feature with a scale of "50m" produces an invalid result when using the EuroPP projection.
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
# Create a figure with the EuroPP projection
fig = plt.figure(figsize=(10, 8))
ax = plt.axes(projection=ccrs.EuroPP())
# Add ocean feature at 50m resolution
ax.add_feature(cfeature.OCEAN.with_scale('50m'))
# Optionally add coastlines for context
ax.coastlines(resolution='50m')
plt.show()
The results are correct using the default scale with "110m".
This issue was first reported in https://github.com/holoviz/geoviews/issues/812 and the example was created by @hoxbro.
Confirmed this is still broken on main.
I want to document some issues with scale 10m. The land and the ocean feature are broken using the EuroPP projection.
| Ocean | Land |
|---|---|
Code for ocean 10m example
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
# Create a figure with the EuroPP projection
fig = plt.figure(figsize=(10, 8))
ax = plt.axes(projection=ccrs.EuroPP())
# Add ocean feature at 10m resolution
ax.add_feature(cfeature.OCEAN.with_scale('10m'))
# Optionally add coastlines for context
ax.coastlines(resolution='10m')
plt.show()
Code for land10m example
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
# Create a figure with the EuroPP projection
fig = plt.figure(figsize=(10, 8))
ax = plt.axes(projection=ccrs.EuroPP())
# Add land feature at 10m resolution
ax.add_feature(cfeature.LAND.with_scale('10m'))
# Optionally add coastlines for context
ax.coastlines(resolution='10m')
plt.show()