[Gvsig_english] kml in gvSIG OADE
Benjamin Ducke
benjamin.ducke at oxfordarch.co.uk
Fri Oct 1 15:38:42 CEST 2010
OK, got it!
There are several problems with the current parser:
1. You have to replace the entire namespace declaration in the header
with _exactly_ this line:
<kml xmlns="http://earth.google.com/kml/2.1">
if there are any more/other <kml> tags, it will not parse.
2. You have to cut out the entire <lookat> tag. This is
a KML 2.2 feature and again, instead of just skipping it,
the gvSIG KML parser chokes on it.
3. The warning about multilayers always pops up, no matter
if you have multiple layers or not. Just ignore it.
I have attached a working version of your file.
After importing it, you should do a "Zoom to layer"
and see the point.
The KML parser in gvSIG really needs improvements, in
its current form it is no longer usable.
I think instead of silently failing, it should warn
the user if there is any tag in the file it does not
know, but then just proceed to read whatever it can
read.
Cheers,
Ben
----- Original Message -----
> It was originally produced in kml-Version 2.2,
> Google Earth 5.2.1.1588
>
> Stefan
>
>
> Benjamin Ducke schrieb:
> > Hmmm, this is strange.
> > The message says that all geometries will be merged into
> > one layer, which is actually OK. But the file only has
> > one point. And that point does not get parsed correctly.
> > The extents of the imported data are also set incorrectly.
> > Maybe this version of KML can actually not be parsed
> > correctly. What was the original version?
> >
> > Ben
> >
> > ----- Original Message -----
> >> Here is the file.
> >> Stefan
> >>
> >> Stefan Erasmi schrieb:
> >>> Dear Ben,
> >>>
> >>> thanks for your quick reply.
> >>> Unfortunately, it still doesn't work.
> >>> I get the error message, that "multilayers are not supported".
> >>>
> >>> I attach a simple placemark where I already changed the
> >>> kml-version to 2.1.
> >>>
> >>> Thanks and regards,
> >>> Stefan
> >>>
> >>> Benjamin Ducke schrieb:
> >>>> http://osgeo-org.1803224.n2.nabble.com/KML-driver-td3971949.html
> >>>>
> >>>> Ben
> >>>>
> >>>> ----- Original Message -----
> >>>>> Dear List,
> >>>>>
> >>>>> I have problems reading kml-files in gvSig OADE Version 1.10.
> >>>>>
> >>>>> When I try to add a layer to a view, it is not shown in the map
> >>>>> but appears in the legend frame.
> >>>>>
> >>>>> I am using Google Earth 5.2.1.1588.
> >>>>>
> >>>>> Any help is appreciated.
> >>>>> Thanks, Stefan
> >>>>> _______________________________________________
> >>>>> Gvsig_internacional mailing list
> >>>>> Gvsig_internacional at listserv.gva.es
> >>>>> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
> >>>> ------ Files attached to this email may be in ISO 26300 format
> >>>> (OASIS Open Document Format). If you have difficulty opening
> >>>> them, please visit http://iso26300.info for more information.
> >>>>
> >>>> _______________________________________________
> >>>> Gvsig_internacional mailing list
> >>>> Gvsig_internacional at listserv.gva.es
> >>>> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
> >>>>
> >>>> .
> >>>>
> >> -- _________________________ Dr. Stefan Erasmi
> >> Georg-August University, Inst. of Geography
> >> Cartography GIS & Remote Sensing Sect.
> >> Goldschmidtstr. 5 #tel: +49(0)551/39-8003
> >> 37077 Goettingen #fax: +49(0)551/39-8020
> >> GERMANY
> >> http://www.uni-goettingen.de/en/sh/40588.html
> >> _________________________
> >>
> >> _______________________________________________ Gvsig_internacional
> >> mailing list
> >> Gvsig_internacional at listserv.gva.es
> >> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
> >
> >
> > ------ Files attached to this email may be in ISO 26300 format
> > (OASIS Open Document Format). If you have difficulty opening them,
> > please visit http://iso26300.info for more information.
> >
> > _______________________________________________ Gvsig_internacional
> > mailing list
> > Gvsig_internacional at listserv.gva.es
> > http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
> >
> > .
> >
>
> --
> _________________________ Dr. Stefan Erasmi
> Georg-August University, Inst. of Geography
> Cartography GIS & Remote Sensing Sect.
> Goldschmidtstr. 5 #tel: +49(0)551/39-8003
> 37077 Goettingen #fax: +49(0)551/39-8020
> GERMANY
> http://www.uni-goettingen.de/en/sh/40588.html
> _________________________
> _______________________________________________ Gvsig_internacional
> mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Kairo_test2.kml
Type: application/xml
Size: 1087 bytes
Desc: not available
Url : http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20101001/a5290dd4/attachment.xml
More information about the Gvsig_internacional
mailing list