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

Update ECW Dynamic driver to build with ECW SDK version 6.0 or higher #11593

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

psharma-gdal
Copy link

Update ECW Dynamic driver to build with ECW SDK version 6.0 or higher

Update ECW Dynamic driver to work with ECW SDK version 6.0 or higher
@psharma-gdal psharma-gdal changed the title Update ECW Dynamic driver for ECW SDK version 6.0 or higher Update ECW Dynamic driver to build with ECW SDK version 6.0 or higher Jan 7, 2025
@@ -2262,7 +2262,7 @@ CPLErr ECWDataset::IRasterIO(GDALRWFlag eRWFlag, int nXOff, int nYOff,
{
// This is tricky, because it expects the rest of the image
// with this buffer width to be read. The preferred way to
// achieve this behavior would be to call AdviseRead before
// achieve this behaviour would be to call AdviseRead before
// call IRasterIO. The logic could be improved to detect
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe that we have chosen to use American English.

pszOpt = CPLGetConfigOption("ECW_RESILIENT_DECODING", nullptr);
if (pszOpt)
NCSecwSetConfig(NCSCFG_RESILIENT_DECODING,
(BOOLEAN)CPLTestBool(pszOpt));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is everything still good if 60<ECWSDK_VERSION>=40?

Copy link
Author

Choose a reason for hiding this comment

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

Yes. And the new code changes are going to support ECWSDK_VERSION>=60 as well.

@rouault
Copy link
Member

rouault commented Jan 7, 2025

Update ECW Dynamic driver to build with ECW SDK version 6.0 or higher

@psharma-gdal Can you provide a URL where to download this SDK ?

@psharma-gdal
Copy link
Author

Update ECW Dynamic driver to build with ECW SDK version 6.0 or higher

@psharma-gdal Can you provide a URL where to download this SDK ?

@rouault - ECW SDK version 6.0 or higher isn't publicly available. The ECW SDK version 6.1 should be available in couple of months. We will let you know once its available.

@rouault rouault marked this pull request as draft January 8, 2025 17:22
@rouault
Copy link
Member

rouault commented Jan 8, 2025

@psharma-gdal I've notice odd formatting in your PR. Can you setup pre-commit as documented in https://gdal.org/en/stable/development/dev_practices.html#commit-hooks and force run it onto your files
Did you also try to run "pytest autotest/gdrivers/ecw.py" ?

Formatting changes for ecw dynamic driver files using pre-commit hook
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