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

fix tests with GDAL 3.7.2 #395

Merged
merged 3 commits into from
Oct 1, 2023
Merged

fix tests with GDAL 3.7.2 #395

merged 3 commits into from
Oct 1, 2023

Conversation

visr
Copy link
Collaborator

@visr visr commented Sep 22, 2023

This fixes issues with GDAL 3.7.2. Nothing major, see individual commit messages for details. This will only pass after JuliaGeo/GDAL.jl#161 is merged.

Fixes these test warnings:
```
WARNING: Method definition (::Type{Main.TestEnum})(Integer) in module Main at Enums.jl:210 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition namemap(Type{Main.TestEnum}) in module Main at Enums.jl:214 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition typemin(Type{Main.TestEnum}) in module Main at Enums.jl:215 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition typemax(Type{Main.TestEnum}) in module Main at Enums.jl:216 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition _enum_hash(Main.TestEnum, UInt64) in module Main at Enums.jl:222 overwritten on the same line (check for duplicate calls to `include`).
WARNING: Method definition instances(Type{Main.TestEnum}) in module Main at Enums.jl:225 overwritten on the same line (check for duplicate calls to `include`).
```
GDAL 3.7.2 says it's not supported with a spatial index:

```
GDALError (CE_Failure, code 1):
        ICreateFeature: NULL geometry not supported with spatial index

  Stacktrace:
    [1] maybe_throw
      @ ArchGDAL C:\Users\visser_mn\.julia\dev\GDAL\src\error.jl:42 [inlined]
    [2] aftercare
      @ ArchGDAL C:\Users\visser_mn\.julia\dev\GDAL\src\error.jl:59 [inlined]
    [3] ogr_l_createfeature
      @ ArchGDAL C:\Users\visser_mn\.julia\dev\GDAL\src\libgdal.jl:28286 [inlined]
```
Ref #158, this is probably due to GEOS 3.12
@visr visr closed this Sep 28, 2023
@visr visr reopened this Sep 28, 2023
@visr
Copy link
Collaborator Author

visr commented Sep 28, 2023

This actually works both before and after JuliaGeo/GDAL.jl#161. Should be good to go.

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!

@yeesian yeesian merged commit 5d2a6b1 into master Oct 1, 2023
23 checks passed
@yeesian yeesian deleted the fixtests branch October 1, 2023 20:11
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.

2 participants