plotnine icon indicating copy to clipboard operation
plotnine copied to clipboard

geom_map: it seems that changing the coordinate system has no effect

Open aborruso opened this issue 11 months ago • 2 comments
trafficstars

Hi, I'm using creating this map

geodf = gp.read_file("https://gist.githubusercontent.com/aborruso/62a708faa4c050776ece5fb4a33b4593/raw/7a99636eac7a3d9844f6c54b2cacbc9ae6023e4a/oc_costo_regioni.geojson")

# Reproject to EPSG:32633
geodf = geo_df.to_crs(epsg=3857)

(
    ggplot(geodf)
    + geom_map(aes(fill="costo_per_km2"), color="black", size=0.1)
)

In output I have a flattened shape, as if they were always geographical coordinates.

image

Using EPSG:3857, I should have a more elongated shape, like the one below.

image

aborruso avatar Dec 07 '24 11:12 aborruso

This is a known limitation and I hope to work on it in 2025.

has2k1 avatar Dec 07 '24 19:12 has2k1

Thank you very much

aborruso avatar Dec 07 '24 19:12 aborruso