Hi Barend,

please file a github ticket and point to an example KML that fails to parse.

TIA.

Best regards,
Bart

-- 
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.



On Aug 7, 2012, at 12:17 PM, Barend Köbben <[email protected]> wrote:

> Hoi Milo,
> 
> Yes, I have looked in the code, but that does not really give an overview
> or statement of what KML flavors are supported. The only clue I find is
> that I notice in that code three namespaces mentioned:
>        kml: "http://www.opengis.net/kml/2.2";
>        gx: "http://www.google.com/kml/ext/2.2";
>        kmlns: "http://earth.google.com/kml/2.0";
> 
> 
> I have examples of KML that both start with namespace declaration:
>        <kml xmlns="http://www.opengis.net/kml/2.2";
> 
> But one is generated by ArcGIS and uses:
>        <styleUrl>#LineStyle00</styleUrl>
> And then a separate <Style> object this points to.
> 
> And the other one is generated by QGIS and uses an "inline" Style:
>        
> Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fi
> ll></PolyStyle></Style>
> 
> The ArcGIS one does not work in OL, the QGIS one does...
> 
> Barend
> 
> --
> Barend Köbben
> Senior Lecturer, ITC - University of Twente,
> Faculty of Geo-Information Science and Earth Observation
> PO Box 217, 7500AE Enschede (The Netherlands)
> +31-(0)53 4874 253
> 
> 
> 
> 
> 
> On 24-07-12 19:25, "Milo van der Linden" <[email protected]> wrote:
> 
>> Basically,
>> inspecting the code for the kml format js-file would be my first thing to
>> do. Have you looked at that?
>> Verzonden vanaf mijn Samsung Galaxy S II
>> On Jul 24, 2012 12:10 PM, "Barend Köbben" <[email protected]> wrote:
>> 
>> 
>> 
>> Hi,
>> 
>> [Got no answer to this a couple of weeks ago, maybe more luck now...?]
>> 
>> Is there any documentation about what flavours of KML are supported in the
>> vector type layers for OpenLayers? I have been experimenting with
>> OpenLayers.Layer.Vector, using protocol: OpenLayers.Protocol.HTTP and
>> format: OpenLayers.Format.KML.
>> 
>> But I find that there are many KML versions and ways of setting up a KML.
>> E.g. KML created by QGIS always works fine, but ArcMAP exports as KML
>> works sometimes, mostly not. Most curiously, not even "Save Place as" KML
>> from Google Earth (KMLs native habitat, I'd have thought) not even always
>> work...?
>> 
>> --
>> Barend Köbben
>> Senior Lecturer, ITC - University of Twente,
>> Faculty of Geo-Information Science and Earth Observation
>> PO Box 217, 7500AE Enschede (The Netherlands)
>> +31-(0)53 4874 253 <tel:%2B31-%280%2953%204874%20253>
>> 
>> Faculty of Geo-Information Science and Earth Observation (ITC)
>> University of Twente
>> Chamber of Commerce: 501305360000
>> 
>> E-mail disclaimer
>> The information in this e-mail, including any attachments, is intended
>> for the addressee only. If you are not the intended recipient, you are
>> hereby notified that any disclosure, copying, distribution or action in
>> relation to the content of this information is strictly prohibited. If
>> you have received this e-mail by mistake, please delete the message and
>> any attachment and inform the sender by return e-mail. ITC accepts no
>> liability for any error or omission in the message content or for damage
>> of any kind that may arise as a result of e-mail transmission.
>> 
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>> 
>> 
>> 
> 
> 
> Faculty of Geo-Information Science and Earth Observation (ITC)
> University of Twente
> Chamber of Commerce: 501305360000
> 
> E-mail disclaimer
> The information in this e-mail, including any attachments, is intended for 
> the addressee only. If you are not the intended recipient, you are hereby 
> notified that any disclosure, copying, distribution or action in relation to 
> the content of this information is strictly prohibited. If you have received 
> this e-mail by mistake, please delete the message and any attachment and 
> inform the sender by return e-mail. ITC accepts no liability for any error or 
> omission in the message content or for damage of any kind that may arise as a 
> result of e-mail transmission.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to