KML and WKT don't specify a winding order, so we write those out in CW/CCW order (for exterior/interior). GML references ISO 19107 that specifies CCW/CW, so we serialize in that winding order. Having hand generated all this GML data the first time around, I reserve the right to modify it for the tests.
21 lines
765 B
XML
21 lines
765 B
XML
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd">
|
|
<Document>
|
|
<name>Polygon.kml</name>
|
|
<open>0</open>
|
|
<Placemark id="KML.Polygon">
|
|
<name>hollow box</name>
|
|
<Polygon>
|
|
<outerBoundaryIs>
|
|
<LinearRing>
|
|
<coordinates>-30,-20,0 -30,20,0 30,20,0 30,-20,0 -30,-20,0</coordinates>
|
|
</LinearRing>
|
|
</outerBoundaryIs>
|
|
<innerBoundaryIs>
|
|
<LinearRing>
|
|
<coordinates>-15,-10,0 15,-10,0 15,10,0 -15,10,0 -15,-10,0</coordinates>
|
|
</LinearRing>
|
|
</innerBoundaryIs>
|
|
</Polygon>
|
|
</Placemark>
|
|
</Document>
|
|
</kml> |