KmzFile::ReadKml() function returns an empty string

9 views
Skip to first unread message

Abdullah Aghazadah

unread,
Feb 24, 2016, 12:48:54 PM2/24/16
to libkml
When I try to read the default kml file of a kmz, I get an empty string.

KmzFile* kmzFile = KmzFile::OpenFromString(someString); // someString has been checked and is a kmz
std::string kmlString;
bool success = kmzFile->ReadKml(&kmlString); // after this line executes, kmlString is an empty string ("") and success is false.

I have checked to make sure the file is actually a kmz file and that there is a kml file inside the kmz.

Why am I getting an empty string?
Reply all
Reply to author
Forward
0 new messages