开发者

Why do I get the error message "element … not processed" when parsing a KML with Geo::KML?

开发者 https://www.devze.com 2023-03-04 21:07 出处:网络
use Geo::KML; my $data = Geo::KML->readKM开发者_如何学CL(\"test1.kml\"); use Data::Dumper; $Data::Dumper::Indent = 1;
use Geo::KML;
my $data = Geo::KML->readKM开发者_如何学CL("test1.kml");

use Data::Dumper;

$Data::Dumper::Indent = 1;
print Dumper $data;

I am using this code and the test1.kml file is available from http://pastebin.com/LbzwLYLc. I am getting this error:

error: element `{http://www.opengis.net/kml/2.2}Document' not processed at {http://www.opengis.net/kml/2.2}kml


If the pastebin is the full contents of what you are parsing, it might be because you are missing closing </Folder> and </kml> tags. This might be consistent with the error message (though I'd expect it to refer to Folder) - then the Document/Folder element under is not processed (because it isn't closed).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号