-
TurfJS uses a variety of other packages for some GIS math and basic methods, do we want to mirror those as separate projects of merge them as part of this project? For instance TurfJS's buffer method requires d3_Geo for the geoAzimuthalEquidistant method. I am looking to start contributing on some of these methods I need for a project but need direction on how the community wants to handle these. Let me know what we think and I'll get coding. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Hi @aardrop, thanks for asking and thanks for the willingness to contribute. We already had this case for a few things. https://pub.dev/packages/turf you can look at the dependencies here. A few soft "rules" for the usage / implementation of these things:
In this particular case with turf's |
Beta Was this translation helpful? Give feedback.
-
@lukas-h Thanks! So I'm about 80% done with a draft of making a dart version of polygon-clipping package that turf js depends on. I see that there is a sweepline-intersection package already. There's a sweepline in polygon-clipping. I started making the package because it's required by the methods I need from turf and I couldn't find it elsewhere. I can't tell if someone has been working on it internally. So to clarify? should I include this polygon-clipping as a method within the turf package? Any advice on this? I am hoping to work towards adding difference, buffer, and union with my contributions moving forward. |
Beta Was this translation helpful? Give feedback.
-
@aardrop this comes at the right time!! As we are now also looking to implement the polygon clipping functionality. Let's include the polygon-clipping into the turf package and if it makes sense to extract it as a separate package, let's do it afterwards. If we already have a solid sweepline-intersection implementation, feel free to use that! CC @jsiedentop |
Beta Was this translation helpful? Give feedback.
-
I just pushed a draft; I can't test much to this point, but I will be working on debugging and writing tests this weekend. I added comments to the draft about the general approach, and to the best of my ability, I stuck close to the JS package as possible where it made sense but deviated in instances where stricter classes made things much similar. I added some questions to the draft about the approach and exposing of methods, so if you all have any initial feedback before I focus on testing/debugging functionality, I'd love it. |
Beta Was this translation helpful? Give feedback.
Hi @aardrop, thanks for asking and thanks for the willingness to contribute. We already had this case for a few things.
https://pub.dev/packages/turf you can look at the dependencies here.
A few soft "rules" for the usage / implementation of these things: