Reuse of large clip polygons #491
Replies: 5 comments 2 replies
-
Hi again Frank. |
Beta Was this translation helpful? Give feedback.
-
Hi Frank.
|
Beta Was this translation helpful? Give feedback.
-
I've just done some performance tests and this new Edit: And of course, there'd be a lot of benefit in pre-"unioning" this reuseable data, if there's significant overlap. |
Beta Was this translation helpful? Give feedback.
-
However, we still have cases where |
Beta Was this translation helpful? Give feedback.
-
Yes, I will include these changes.
I'm certainly very interested in examples and finding out why. |
Beta Was this translation helpful? Give feedback.
-
Hi Angus,
I really appreciate your dedication to this library. It does a very good job in many areas. Especially for small and medium clip tasks it is unbeatable.
However, there is a use case where there are very large clip polygons which needs to be applied to very many small and medium polygons. It turns out that adding the clipping polygons takes a disproportionate amount of time compared to the actual clipping task.
Ideally, I would like to be able to reuse the Clipper object with the large clipping polygons added. In Geos, for example, there is PreparedGeometry for such use cases.
It doesn't have to be that complicated. It would be helpful if you could create a copy of a
Clipper
object in the assumption that it is faster than the construction over the polygons themselves. Alternatively, the ability to remove objects to be clipped in whatever form might help.What's your take on this feature? Do you see any other way to optimize the use-case described above?
Beta Was this translation helpful? Give feedback.
All reactions