Closed GoogleCodeExporter closed 8 years ago
Original comment by bachmann...@gmail.com
on 7 Oct 2009 at 7:35
Hello.
I have the same problem with "http://earth.google.com/kml/2.2" uri.
Could U tell me, when it will be fixed?
Original comment by Nicolas....@gmail.com
on 15 Oct 2009 at 9:43
I'm aware of the problem. Unfortunately I hadn't any free time yet, but I will
fix
it, as soon as possible.
Original comment by bachmann...@gmail.com
on 15 Oct 2009 at 11:17
Original comment by bachmann...@gmail.com
on 23 Nov 2009 at 7:33
Original comment by bachmann...@gmail.com
on 30 Nov 2009 at 10:19
Is this really fixed? I download source code from svn repository, build JAK
with "mvn install" command and
included produced .jar file in my test project. But it still throws exception
on namespace <kml
xmlns="http://earth.google.com/kml/2.2"> or <kml
xmlns="http://earth.google.com/kml/2.0"> in kml file.
Was this really fixed? Can somebody confirm this, please?
Original comment by simon.iv...@gmail.com
on 8 May 2010 at 11:14
I keep getting the same error. Can we specify any configuration for the library
with which this error does not occur, or at least it ignores it?
Original comment by jorge.al...@gmail.com
on 14 Jul 2010 at 1:38
This error is still there. I keep getting this error while parsing files with
this:
<kml xmlns="http://earth.google.com/kml/2.2">
can you reopen the issue and refix this?
Thanks
Original comment by buj...@gmail.com
on 19 Aug 2010 at 12:06
this api is shit. Cant even read google earth kml files
Original comment by davidall...@gmail.com
on 16 Nov 2010 at 12:57
issue is still here in 2012, please fix!
Original comment by clankil...@gmail.com
on 8 Feb 2012 at 5:03
This same issue with files given here: http://www.gadm.org/
Original comment by vanek.lu...@gmail.com
on 17 Apr 2012 at 7:39
The problem is not with JavaAPIforKML, but rather with the KML file itself.
The CORRECT namespace is "http://www.opengis.net/kml/2.2"
Here's a really bad perl script to repair a KML file(s). Just add the files as
arguments to the script (e.g. fixxmlns *.kml)
#!/usr/bin/perl
for (@ARGV) {
open (FH,"<$_");
open (NFH,">$_.x");
$look = 1;
while ($r = <FH>) {
if ($look && $r =~ /earth.google.com/) {
$r = qq{<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:gx="http://www.google.com/kml/ext/2.2">\n};
$look = 0;
}
print NFH $r;
}
close (NFH);
close (FH);
rename("$_", "$_.orig");
rename("$_.x", "$_");
}
Original comment by drew.gon...@gmail.com
on 9 Jan 2013 at 6:34
This might be worth a shot as well ... sorry no time to test right now.
Kml kml = null;
try {
kml = Kml.unmarshal(path);
} catch (RuntimeException ex) {
kml = Kml.unmarshal(new File(path), false);
}
Original comment by drew.gon...@gmail.com
on 9 Jan 2013 at 6:52
@drew: This doesn't help, because the default value for validate is false
anyway.
Original comment by klemens....@gmail.com
on 3 Jan 2014 at 5:20
Original issue reported on code.google.com by
isapoetra
on 23 Sep 2009 at 5:06