turf_dart icon indicating copy to clipboard operation
turf_dart copied to clipboard

Union polygons

Open adnanefouam opened this issue 5 years ago • 4 comments

hello, thanks for bringing turf to dart ! is there will be Union function that Takes two or more polygons and returns a combined polygon ?

adnanefouam avatar Sep 28 '20 15:09 adnanefouam

This library is work in progress. Feel free to make a pull request, since it is not yet implemented.

lukas-h avatar Sep 29 '20 19:09 lukas-h

I have ported a libary that capable of doing all polygon Boolean operations on polygons (union, intersection, difference, xor) ( More info here

mohammedX6 avatar Apr 16 '22 01:04 mohammedX6

Hi @mohammedX6, this is really great! 😄 Do you want to create a pull request to make this part of turf_dart?

lukas-h avatar Apr 16 '22 15:04 lukas-h

I don't think i have time to make pull requests but you can you use the libary dierftly without need of dart turf

mohammedX6 avatar Apr 16 '22 16:04 mohammedX6

closed because this is mostly implemented with the boolean* functions

lukas-h avatar Jan 30 '24 16:01 lukas-h

what I wrote was not entirely correct. I did some test implementations of the difference function that is using @mohammedX6's poly_bool_dart lib. I don't like that we have to convert between our turf's Polygon and poly_bool's Polygon classes.

@mohammedX6 do you think we can use your library as a blueprint to implement the functionality as part of turf_dart without a dependency to your library?

I created a new issue for that: https://github.com/dartclub/turf_dart/issues/166

CC @jsiedentop

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