turf_dart icon indicating copy to clipboard operation
turf_dart copied to clipboard

Implement difference, union, intersects, inverseDifference, xor, etc. by using poly_bool_dart and turfJS as a blueprint

Open lukas-h opened this issue 1 year ago • 5 comments

old conversation: https://github.com/dartclub/turf_dart/issues/1#issuecomment-1934686005

lukas-h avatar Feb 08 '24 18:02 lukas-h

other libs as a blueprint:

  • https://github.com/mohammedX6/poly_bool_dart
  • https://turfjs.org/docs/#difference (different npm packages from turf)

lukas-h avatar Feb 08 '24 18:02 lukas-h

I have implemented the difference method "ugly":

https://github.com/opendata-nuernberg/soil_unsealing_potential/tree/main/polygon_analyzer/lib/turf

lukas-h avatar Mar 01 '24 11:03 lukas-h

#170 works on this issue

lukas-h avatar Mar 01 '24 11:03 lukas-h

Hello,

Is there any chance that #170 will be merged soon? I've managed to use polybool for the same purpose, but to be honest converting between two libraries is quite annoying and also, polybool doesn't support directly multipolygons, so I need to union them first, what is also could be a resource-consuming operation and by some reason doesn't always work well.

simplylizz avatar May 05 '24 20:05 simplylizz

@simplylizz the functionality is mostly ready except for some testing. See #170. that branch could already be used.

if you want to have a more in depth discussion with @jsiedentop @aardrop and me, and where we also share the progress, please checkout our discord https://discord.gg/CybDg4Pe

lukas-h avatar May 06 '24 09:05 lukas-h