-
Notifications
You must be signed in to change notification settings - Fork 26
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
Why does createlinearring
create a wkbLineString
#314
Comments
I don't really understand. LINEARRING is a non-standard extension of WKT that several projects support. It basically is a closed LINESTRING. The |
Yeah seems like something like that. So the question is really in what cases does GDAL actually return Hard to make things type stable without knowing that. This is a pretty commmon path too - getting rings from a polygon - so it would be good to make it faster. |
It seems never, based on this comment: wkbLinearRing = 101, /**< non-standard, just for createGeometry() */ From https://github.com/OSGeo/gdal/blob/v3.5.1/ogr/ogr_core.h#L401 |
Ok great. We can lock in Edit: but I guess we still need to handle passing |
See: https://github.com/yeesian/ArchGDAL.jl/blob/master/test/test_geometry.jl#L292
I'm trying to fix type stability of geometry creation for performance (some large gains from small changes) but
createlinearring
is a strange wart to special-case.Why does it return a
wkbLineString
? as the comment says, it seems very odd.The text was updated successfully, but these errors were encountered: