-
Notifications
You must be signed in to change notification settings - Fork 26
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
Opening of ENVI stack with long line in header fails #111
Comments
Did you try this in Python with or without Because it may just that we throw an error where Python doesn't (but probably should). |
I just tested it with UseExceptions() in python and it can be opened. Is there a way to test the underlying GDAL installation? |
Ok, interesting.
I wanted to link to the GDAL.jl readme for this, but it is outdated now as well: JuliaGeo/GDAL.jl#86 But if you do this through the Artifacts, it should not have any linking issues. |
I tested the underlying GDAL installation by run(`$(GDAL_jll.gdalinfo_path_path) $path`) before this works, you need to set your LD_LIBRARY_PATH to the lib folder of your PROJ_jll artifacts_dir. |
This only increased the maximum line length from 256 to 1024. How long is your header line? |
I just tested it and it seems as if opening the stack breaks as soon as the header line is longer than 10000 characters. |
Ha ok. Did you check if the 1024 has since been updated in GDAL? |
I was wrong, the issue OSGeo/gdal#506 is the same error, but for a different dataset. |
Ok, but I guesss it is fair to say that the error is expected here then, right? Should we close this issue? I don't think there is much we can do here, if this is what GDAL does. |
I am not sure, whether this is an ArchGDAL or an GDAL issue, but opening here as I encountered it while using ArchGDAL.
Opening an ENVI stack with a very long line in the header file, fails with
I can open the same file with the python GDAL bindings.
There was an issue in GDAL for this
OSGeo/gdal#506 but this should be fixed by now.
If I manually insert line breaks between the bandnames the file can also be opened in ArchGDAL, but it would be nice, I won't have to do this.
The text was updated successfully, but these errors were encountered: