On the WIN32 platform, the command
kmz_file->AddFileList(kBaseDir, file_paths);
will changed file_paths containg "slash" (/) to "back slash" (\)
This happens on line 223 in kmz_file.cc
if (!NormalizeHref(href.get_path(), &normalized_href)) {
and the problem is on line 85 in kml_uri.cc
UriParser::CreateFromParse(uri.c_str()));
which calls
bool UriParser::UriToFilename(const std::string& uri,
std::string* output) {
#ifdef WIN32
return UriToWindowsFilename(uri, output);
#else
return UriToUnixFilename(uri, output);
#endif
}
This function is responible for the translation from / to \ that is
unwanted. On page 42 in the KML Handbook it is said that we should always
use forward slash. A kmz file using back slash does not load into the
Google Earth client.
Original issue reported on code.google.com by john.hau...@gmail.com on 24 Sep 2009 at 10:31
Original issue reported on code.google.com by
john.hau...@gmail.com
on 24 Sep 2009 at 10:31