Error using GDAL to access HDF5 Bands - c++

I'm trying to open an HDF5 file, specific bands, but GDAL is giving an error message:
"'HDF5:C:\pathToFile\pathToFile/filename.h5://ImageData/B4' does not
exist in the file system and is not recognised as a supported data set
name"
I got the error message after the GDALOpenInternal call using CPLGetLastErrorMsg(). I can't step into GDALOpenInternal (with Visual Studio) because we don't have GDAL source cpp file; just h file that came with the package, unless I'm searching for the wrong file name.
The string for the ConnectionString parameter for GDALOpenInternal is shown in the quotes above.
I found file does not exist in file system, but they said it was because of using non-ascii characters in file path string. I didn't see any other pertinent info on this error message.
We need to access the specific band of the HDF5 file. I noticed that our slashes in the path are showing in different directions, but I'm not sure that would be the issue here. We have both windows and linux OS's. This error was seen on windows os.
We used (gdalinfo.exe filename.HDF5) and do see that the B4 exists there.

Related

Informatica Source File Name with Special Character like 'ä'

I am having a problem with my source file name when loading a source from list file. My file is named: "Bär.csv" but when executing, this error occurs. It can't find my file as it was changed to "Bör.csv". Is there a way for the reader to read special characters in the file name?
Error opening file [C:\Informatica\10.2.0\server\infa_shared\SrcFiles\Inbound\test\Bör.csv]. Operating system error message [The system cannot find the file specified.].
You have to configure your integration service to use Unicode.

ballerina: error while loading built-in package 'ballerina/lang/errors/'

I tried to run a sample .bal file in Ballerina Samples folder which I downloaded from www.ballerinalang.org and I got this error.
This issue seems to be caused by a URI encoding issue owing to the space in the file path (Program Files). Can you try from a different location with no spaces in the file path? Refer Illegal character in path at index 16 for more details on this error.

"Samples Environments for Microsoft Chart Controls" failing to compile

I wish to view the samples in the "Samples Environments for Microsoft Chart Controls" code available on the Microsoft website. However when I try to build the project in order to create an exe that I can open, I get the following error:
Cannot write to the output file "obj\Release\System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.VerticalTabPageButton.resources". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
Am I missing something here? How am I supposed to navigate this set of samples?
Oh, and I manually edited the .sln file so it opens in VS2008. But I don't think that has anything to do with my problem.
I encountered the same problem when trying to unzip the "Samples Environments for Microsoft Chart Controls.zip" file.
I was attempting to unzip to my "Documents\Visual Studio 2010\Project" folder. Obviously this folder is quite far down a directory structure on the PC, so I received the same error.
So here's the solution: unzip the file to somewhere quite high up your PC's directory structure - for example, the root of your c drive, i.e. "c:\".
You'll then find you don't receive the "Path Too Long" error message.
Best wishes,
Mike.

Windows Service failes to start with "Path '.' not found"

Disclaimer: the error message is translated from Swedish (and it's a pain to find the exact corresponding error message in English, Microsoft take note...)
The error message could also be "Path ' ' not found" or "Path not found". It's a bit unclear due to the Swedish message not enclosing the path in ' '.
This is similar to this question, but not exactly: New Windows Service installed, fails to start: "System error 2 ... system cannot find the file specified"
I have written the service myself. It is an exe written in unmanaged C++ and is using the following external code:
libntlm - loaded as dynamic library (libntlm-0.dll placed in same location as executable)
OpenSSL - loaded as static library
pugixml - compiled directly into code
The problem I'm having is that it doesn't start when Windows starts, but it does start if I manually start it!
I am stumped as to what could be wrong. The only thing I can think of is if perhaps the dll can't be found, but I don't know why it wouldn't. Something with the environment variables being different perhaps?
What I have tried:
Checked registry, path is correct
Path is to local disk
Changed to a number of different paths (no change)
Made sure there are no spaces in the path
Logging at start of program (nothing written to log, so it's not an internal path not found error)
Dll is in same path
Set to start with my own network account (no change)
Tried renaming exe to be the same as service name (no change)
Tried registering libntlm-0.dll with regsrv32 but that didn't work
Put libntlm-0.dll in System32 (no change)
For posterity it seems like the delayed start suggested by 51k seems to work. I don't know why that should make any difference, but as long as it works I'm happy.

sharpdx tkfxc.exe generates .tkb file when .tkfxo expected

I'm facing a problem and I couldn't find any documentation at all. Also I downloaded the github sharpdx solution but I didn't found an answer.
When I'm executing tkfxc.exe in net40 directory, the .fx effect compiles successfully but as I read on many forums, a .tkfxo file shall be generated. Instead of that I got a .tkb file.
This is the command line command I'm using:
tkfxc.exe /FoInverted.tkfxo Inverted.fx
Even if I try to change the extension to the file or just load this file as a filter, sharpDX said that is invalid file, some other CHUNK expected.