-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simplify #3
Conversation
Will you consider at some point using some form of exact predicates (aka ExactPredicates.jl) for some of this? I'd be a bit unsure about using e.g. |
Sure! I haven't used the package myself but it looks good, although maybe not fast as it requires duplication of all objects as tuples. Many algorithms here will not allocate. In this PR I am just hacking in someone elses code from Turf.jl (which copied turf.js) with a focus on getting the high level algorithms working on any GeoInterface.jl compatible objects in a clean, generic way. The lower level predicates can really be swapped out at any point, feel free to jump in and hook them up if you want to. I've actually move the predicataes out to another PR for now too. |
@DanielVandH now that I look at it, I cant see what predicates from ExactPredicates.jl would replace |
Maybe since this is something that'll be considered properly down the line, I'll put some of my thoughts about this in an issue and respond there. |
@skygering @asinghvi17 as I mentioned in #8, I've written up simplify(RadialDistance(; tol=0.1), obj)
simplify(DouglasPeucker(; tol=0.01), obj)
simplify(VisvalingamWhyatt(; number=7), obj) And the default uses simplify(obj; tol=0.1) What do you think about this as a general pattern? Also, |
These are from Turf.jl but very heavily refactored.
I realised I had already half converted turf to the latest geointerface 🤣