Skip to content

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

@mosc9575

Description

@mosc9575

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 holoviz/geoviews#812 and the example was created by @hoxbro.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions