cartopy icon indicating copy to clipboard operation
cartopy copied to clipboard

Ocean feature with scale 50m produces invalid results with EuroPP projection

Open mosc9575 opened this issue 2 months ago • 2 comments

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()
Image

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.

mosc9575 avatar Oct 23 '25 12:10 mosc9575

Confirmed this is still broken on main.

rcomer avatar Oct 29 '25 11:10 rcomer

I want to document some issues with scale 10m. The land and the ocean feature are broken using the EuroPP projection.

Ocean Land
Image Image
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()

mosc9575 avatar Nov 10 '25 11:11 mosc9575