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 5 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.

Copy link
Author

Choose a reason for hiding this comment

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

I have reverted back the code change 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
@psharma-gdal
Copy link
Author

@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" ?

I am in process of getting the autotests running. However, are these autotests only in Python? Is there no way to run these as part of the C++ build?

@rouault
Copy link
Member

rouault commented Jan 23, 2025

However, are these autotests only in Python?

yes. Documentation related to Python autotests is at https://gdal.org/en/latest/development/testing.html

Adding the change to allow writing VERSION tag in JP2 files
@coveralls
Copy link
Collaborator

coveralls commented Feb 3, 2025

Coverage Status

coverage: 70.058% (-0.01%) from 70.071%
when pulling 9916fb8 on HexagonGeospatial:master
into 75925d1 on OSGeo:master.

Update the ECW Python based tests to support ECW >=6.0 as well
Formatting changes suggested by pre-commit hook
@psharma-gdal
Copy link
Author

However, are these autotests only in Python?

yes. Documentation related to Python autotests is at https://gdal.org/en/latest/development/testing.html

I have edited the ecw.py to run against ECW SDK >= 6.0 and they run ok.

Copy link

github-actions bot commented Mar 8, 2025

The GDAL project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 28 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular link
    to any issues which this pull request fixes

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in 2 weeks.

@github-actions github-actions bot added the stale label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants