-
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
feat: optimise cutline handling by only using the cutline if required #258
Conversation
return None | ||
|
||
# Not asked to optimize the cutline | ||
if not optimize: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left this disabled for now, as it needs more testing and just by ignoring the cutline for most tiles should significantly speed up the process
This logic can be removed once OSGeo/gdal#6905 is released. |
|
||
# osgeo is embbed in the Docker image | ||
from osgeo import gdal # pylint: disable=import-error | ||
from osgeo import Geometry, Layer, ogr # pylint: disable=import-error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could import everything from osgeo
in the same line
No description provided.