Skip to content
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

Enable preperation of geometry #286

Merged
merged 2 commits into from
Apr 2, 2022
Merged

Enable preperation of geometry #286

merged 2 commits into from
Apr 2, 2022

Conversation

evetion
Copy link
Collaborator

@evetion evetion commented Mar 31, 2022

Preparing geometry is useful when you repeat spatial operations on a geometry, as required, calculated, information needed for said operation is cached. See https://blog.cleverelephant.ca/2008/10/postgis-performance-prepared-geometry.html

The open question is if/where we check for the remaining GDAL ogrhaspreparedgeometrysupport method in all these calls. Maybe a warning on init? I'm not sure what happens when a non-Yggdrasil GDAL doesn't have prepgeom support.

@evetion evetion requested review from yeesian and rafaqz March 31, 2022 20:22
yeesian
yeesian previously approved these changes Apr 1, 2022
Copy link
Owner

@yeesian yeesian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM apart from unit test coverage for some of the methods

src/ogr/geometry.jl Show resolved Hide resolved
src/ogr/geometry.jl Show resolved Hide resolved
Copy link
Collaborator

@rafaqz rafaqz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. What "prepare" means is a bit vague - but as GDAL uses it I guess that's fine.

@evetion evetion merged commit 9a19974 into master Apr 2, 2022
@evetion evetion deleted the feat/prep-geom branch April 2, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants