Closed gfyrtuwcv closed 2 months ago
It looks like GDAL is failing to read the image. I can't reproduce the problem here.
What is the output of osgearth_version --caps
?
This is the output of osgearth_version --caps
[osgearth info] Hello, world. [osgearth info] [Registry] Note: GDAL_DATA environment variable is not set Error reading file C:/WINDOWS/fonts\CascadiaCode.ttf: file not handled [osgearth info] [Capabilities] osgEarth Version: 3.5.0 build 154 [osgearth info] [Capabilities] GDAL Version: 3.8.5 [osgearth info] [Capabilities] OSG Version: 3.6.5 [osgearth info] [Capabilities] OSG GL3 Features: yes [osgearth info] [Capabilities] OSG FFP Available: no [osgearth info] [Capabilities] CPU Cores: 8 [osgearth info] [Capabilities] GL_VENDOR: NVIDIA Corporation [osgearth info] [Capabilities] GL_RENDERER: Quadro K2200/PCIe/SSE2 [osgearth info] [Capabilities] GL_VERSION: 3.3.0 NVIDIA 516.94 [osgearth info] [Capabilities] GL CORE Profile: yes [osgearth info] Goodbye.
Since I installed gdal using vcpkg, I unpacked vcpkg/downloads/ osgeo-gdal-v3.8.5.tar.gz, set GDAL_DATA to the data file inside, and run osgearth again, but the gdal layer still failed to load
GDAL_DATA
should point at the folder vcpkg_installed/x64-windows/share/gdal
or something similar. It's a folder that includes a ton of data files including "epsg.wkt". But...I doubt that's the problem.
I modified GDAL_DATA, and then I found the problem, when I built osgearth with release, the GDALImageLayer layer was successfully displayed! But when I switch back to build osgearth in Debug mode, the white earth still appears. I configured GDAL_LIBRARY_DEBUG and GDAL_LIBRARY_RELEASE with cmakegui, but it didn't work.
OK thanks. I have edited the title to reflect the issue. @plevy can try to reproduce please?
I believe this is fixed now in b6262bf5. Let us know :)
Yes, I rebuilt it and it worked out!Thank you, gwaldron.
I built with the latest version of osgearth, and when I use GDALImageLayer or read simple.earth, the earth is represented as white
I use the code
The result is something like this![image](https://github.com/gwaldron/osgearth/assets/107821427/ee1d95a5-a10b-41a9-9843-36e5dff54d63)
But loading other layers like ArcGISServerImageLayer or WMSImageLayer is no problem,How do I solve this problem?
The following is part DEBUG_INFO: