MakieOrg / GeoMakie.jl

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

Smooth densely sampled curves by replacing them with Bezier curves #158

Open asinghvi17 opened 1 year ago

asinghvi17 commented 1 year ago

Geodetic curves are normally quite simple, and each would take ~1000 points to represent as a good looking curve.

However, in order to decrease size as much as feasible, we can actually create a B-spline interpolation using DataInterpolations.jl, which hits every point in transformed space, and convert it into a Bezier curve using the algorithm in the attached PDF.

This is probably a pretty niche thing, and might not be too useful - but would be pretty cool to make low-size SVGs or PDFs, to include in web pages or papers.

B-spline to Bezier curve.pdf