MakieOrg / GeoMakie.jl

Geographical plotting utilities for Makie.jl
https://geo.makie.org
MIT License
161 stars 23 forks source link

Nonlinear "clipping" by a polygon with a hole #232

Open asinghvi17 opened 1 month ago

asinghvi17 commented 1 month ago

This will be painful to mesh but here goes.

Here's an example. Ignore the ticks, but any geometry below 0 latitude should not be shown. This PR will ensure that. Consider the following:


fig = Figure(size=(1500, 1500))

settings = "+proj=leac +lat_1=45.0 +ellps=sphere "

ga = GeoAxis(
    fig[1, 1];
    dest=settings,
    title=settings,
)
lines!(ga, GeoMakie.coastlines())
ylims!(ga, 0, 90)
fig

download