Failed to read HDR files after loading vsgXchange and GDAL #1136
-
Hello to the VSG Community, I cannot successfully read HDR files after loading vsgXchange and GDAL. I believe my configuration of vsgXchange and GDAL is correct because vsgXchange_GDAL was successfully defined in my vsgXchange/Version.h, and I have successsfully read DDS files. But I always fail when trying to read HDR files. The code for reading HDR files is as follows(I am pretty sure that my envfilepath is correct):
Thanks for your time! |
Beta Was this translation helpful? Give feedback.
Answered by
robertosfield
Mar 30, 2024
Replies: 1 comment 3 replies
-
Could you provide an example file that illustrates this problem. Could you
also post you Version.h so we check all the ReaderWriters that are
available and may be attempting to read the file.
…On Sun, 24 Mar 2024, 13:33 Shanyzz, ***@***.***> wrote:
Hello to the VSG Community,
I cannot successfully read HDR files after loading vsgXchange and GDAL. I
believe my configuration of vsgXchange and GDAL is correct because
vsgXchange_GDAL was successfully defined in my vsgXchange/Version.h, and I
have successsfully read DDS files. But I always fail when trying to read
HDR files.
The code for reading HDR files is as follows(I am pretty sure that my
envfilepath is correct):
#include <vsg/all.h> #include <vsgXchange/all.h> ... auto options =
vsg::Options::create(); options->add(vsgXchange::all::create()); vsg::Path
envfilepath = "../newport.hdr"; auto hdrfile = vsg::read(envfilepath,
options); if (!hdrfile) std::cout << "Faled to load " << std::endl;
Thanks for your time!
—
Reply to this email directly, view it on GitHub
<#1136>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKEGUBPMC3KTJLTPMQALSLYZ3I4LAVCNFSM6AAAAABFFWTUEGVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGQYTKMBVGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have downloaded a .exr and .hdr files for the same image from the provided link and the .exr loads fine once I installed libopenexr-dev and then rebuild vsgXchange/vsgExamples, but the .hdr file doesn't load. GDAL looks like it says it supports .hdr when queried about the extensions it supports as reported by vsgconv: