-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use general GeoInterface polygons as PolyRegions #10
Comments
Ah I see you already use PolygonOps - that's the same algorithm which GeometryBasics uses. I think we got the code from there! |
Another cool thing to do might be to implement the GeoInterface Feature interface for GeoRegions, so that Rasters.jl can easily consume them. |
Could you link to the documentation on this? I'm very close to publishing |
https://juliageo.org/GeoInterface.jl/dev/guides/developer/#Required-for-Feature(Collection)s and you could just return a NamedTuple with all relevant attributes as the result of This would also give a standard interface to get "a polygon" from a georegion, where rectregions could construct the polygon on the fly and return it in |
GeoRegions will construct the polygon automatically when the GeoRegion information is retrieved. But are you asking if I can integrate and extend |
Will PR if I end up doing this! |
This would only require GeoInterface support, and would allow people to use predefined polygons a lot more easily, plus add support for holes in regions!
If you need a nice point in polygon test, Rasters.jl and GeometryOps.jl have some good implementations.
The text was updated successfully, but these errors were encountered: