kadas-albireo / kadas-albireo2

KADAS Albireo
GNU General Public License v2.0
67 stars 14 forks source link

KML Export: ExtendedData Tag should be right before the MultiGeometry Tag #15

Closed TxKroar closed 4 years ago

TxKroar commented 4 years ago

Hello, The KML2.2 Spec requires that the ExtendedData Tag is before the MultiGeometry Tag inside \<Placemark>\: image In this Extract from the KML2.2 XSD File we see that AbstractFeatureType Comes before AbstractGeometryGroup (AbstractGeometryGroup=MultiGeometry in KML generated by KADAS) A look at AbstractFeatureType shows that the ExtendedData Tag should be after the Style Tag image

In addition to that I forgot to mention in the previous ticket that the fill-Tag and color-Tag inside \<PolyStyle> should be flipped as well: the KML 2.2 XSD expects the color to be first.

Attached is a pretty printed example of KML generated by the May 5. 2020 CI Build of KADAS and the same KML, but slightly modified so as to pass Validation against the XSD: KML_examples.zip

In case you want to validate the generated KML yourself, you can easily do so using XSD Validator and the KML2.2 XSD

manisandro commented 4 years ago

Thanks, should be addressed.