eth4io / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

unable to extract KMZ from msvc example sortplacemarks.exe #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compiled MSVC libkml and examples
2. run sortplacemarks.exe c:\test.kmz
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

- libkml 1.2, windows XP, MSVC 2005

Did you run the unit test suite that comes with the project? Did all tests 
pass?

Please provide any additional information below.

- I am getting read failed.
- kml works fine. 

Original issue reported on code.google.com by hanjo...@gmail.com on 11 Nov 2009 at 3:40

GoogleCodeExporter commented 8 years ago
Actual error message

not well-formed (invalid toekn) at line 1 at offset 2

Original comment by hanjo...@gmail.com on 11 Nov 2009 at 3:45

GoogleCodeExporter commented 8 years ago
I figured it out....

sortplacemarks.cpp 

KmzFilePtr kmz_file = KmzFile::OpenFromString(kmlfile);

change to 

KmzFilePtr kmz_file = KmzFile::OpenFromString(file_data);

Original comment by hanjo...@gmail.com on 11 Nov 2009 at 4:57