-
-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Sebastian Fischer edited this page Jan 13, 2023
·
11 revisions
- Get the geoJSON File https://geodata.ucdavis.edu/gadm/gadm4.1/json/gadm41_DEU_4.json.zip if you need german cities
- Convert it with https://products.aspose.app/gis/conversion/geojson-to-kml to kml
- Search for the wanted city name in and copy the coordinates from into the file below.
KML values are:
- NAME is the name of the area
- ffA1CAA7 is the color of the border with opacity
- ddAED1B3 is the color of the outer field with opacity
- COORDINATES are the coordinates of innerBoundaryIs and are from geoJSON {geometries.0.coordinates.0.0} as {0}, {1} followed by a space or linebreak
{0},{1},0
{0},{1},0
{0},{1},0 - do not touch the coordinates of outerBoundaryIs
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Placemark>
<name>NAME</name>
<description><![CDATA[NAME]]></description>
<styleUrl>#colors</styleUrl>
<Style id="colors">
<LineStyle>
<color>ffA1CAA7</color>
<width>4</width>
</LineStyle>
<PolyStyle>
<color>ddAED1B3</color>
</PolyStyle>
</Style>
<MultiGeometry>
<Polygon>
<outerBoundaryIs><LinearRing><coordinates>
180,85 180,0 180,-85
0,-85
-180,-85 -180,0 -180,85
0,85
</coordinates></LinearRing></outerBoundaryIs>
<innerBoundaryIs>
<LinearRing>
<tessellate>1</tessellate>
<coordinates>
COORDINATES
</coordinates>
</LinearRing>
</innerBoundaryIs>
</Polygon>
</MultiGeometry>
</Placemark>
</Document>
</kml>