Skip to content

Instantly share code, notes, and snippets.

@ydhnwb
Last active September 23, 2021 02:31
Show Gist options
  • Save ydhnwb/41d6052282882671ce05470c399b0f1e to your computer and use it in GitHub Desktop.
Save ydhnwb/41d6052282882671ce05470c399b0f1e to your computer and use it in GitHub Desktop.
Perbandingan antara kml dan geojson
Display the source blob
Display the rendered blob
Raw
{
"type":"FeatureCollection",
"features":[
{
"type":"Feature",
"geometry":{
"type":"Polygon",
"coordinates":[
[
[
106.8356293297771,
-6.173942417187436,
13.48768721455335
],
[
106.7066007206836,
-6.249959170974338,
32.61749111636237
],
[
106.775813592273,
-6.40848864239809,
104.3168014223681
],
[
106.8423306782832,
-6.355826241989323,
70.24213302580179
],
[
106.8373754490963,
-6.310268786740235,
70.53797401044136
],
[
106.8675405210225,
-6.193174034954597,
26.74319190375481
],
[
106.8356293297771,
-6.173942417187436,
13.48768721455335
]
]
]
},
"properties":{
"name":"Ini adalah shapenya",
"styleUrl":"#__managed_style_02D7B013051D45E139B0",
"styleMapHash":{
"normal":"#__managed_style_11758B192E1D45E139B0",
"highlight":"#__managed_style_214709768E1D45E139B0"
}
},
"id":"0C220D8F0D1D45E139AF"
},
{
"type":"Feature",
"geometry":{
"type":"Point",
"coordinates":[
106.7911059519954,
-6.26738740477215,
32.03876994217804
]
},
"properties":{
"name":"Ini adalah midpointnya",
"styleUrl":"#__managed_style_02D7B013051D45E139B0",
"styleMapHash":{
"normal":"#__managed_style_11758B192E1D45E139B0",
"highlight":"#__managed_style_214709768E1D45E139B0"
}
},
"id":"0B21A935C71D45E17B8A"
}
]
}
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>Example 1</name>
<gx:CascadingStyle kml:id="__managed_style_214709768E1D45E139B0">
<Style>
<IconStyle>
<scale>1.2</scale>
<Icon>
<href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
</Icon>
<hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
</IconStyle>
<LabelStyle>
</LabelStyle>
<LineStyle>
<color>ff2dc0fb</color>
<width>6</width>
</LineStyle>
<PolyStyle>
<color>40ffffff</color>
</PolyStyle>
<BalloonStyle>
<displayMode>hide</displayMode>
</BalloonStyle>
</Style>
</gx:CascadingStyle>
<gx:CascadingStyle kml:id="__managed_style_11758B192E1D45E139B0">
<Style>
<IconStyle>
<Icon>
<href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
</Icon>
<hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
</IconStyle>
<LabelStyle>
</LabelStyle>
<LineStyle>
<color>ff2dc0fb</color>
<width>4</width>
</LineStyle>
<PolyStyle>
<color>40ffffff</color>
</PolyStyle>
<BalloonStyle>
<displayMode>hide</displayMode>
</BalloonStyle>
</Style>
</gx:CascadingStyle>
<StyleMap id="__managed_style_02D7B013051D45E139B0">
<Pair>
<key>normal</key>
<styleUrl>#__managed_style_11758B192E1D45E139B0</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#__managed_style_214709768E1D45E139B0</styleUrl>
</Pair>
</StyleMap>
<Placemark id="0C220D8F0D1D45E139AF">
<name>Ini adalah shapenya</name>
<LookAt>
<longitude>106.7578431146191</longitude>
<latitude>-6.293303516766708</latitude>
<altitude>63.33272381868102</altitude>
<heading>0</heading>
<tilt>0</tilt>
<gx:fovy>35</gx:fovy>
<range>77179.1185171064</range>
<altitudeMode>absolute</altitudeMode>
</LookAt>
<styleUrl>#__managed_style_02D7B013051D45E139B0</styleUrl>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
106.8356293297771,-6.173942417187436,13.48768721455335 106.7066007206836,-6.249959170974338,32.61749111636237 106.775813592273,-6.40848864239809,104.3168014223681 106.8423306782832,-6.355826241989323,70.24213302580179 106.8373754490963,-6.310268786740235,70.53797401044136 106.8675405210225,-6.193174034954597,26.74319190375481 106.8356293297771,-6.173942417187436,13.48768721455335
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
<Placemark id="0B21A935C71D45E17B8A">
<name>Ini adalah midpointnya</name>
<LookAt>
<longitude>106.7578431146191</longitude>
<latitude>-6.293303516766708</latitude>
<altitude>63.33272381868102</altitude>
<heading>0</heading>
<tilt>0</tilt>
<gx:fovy>35</gx:fovy>
<range>77179.1185171064</range>
<altitudeMode>absolute</altitudeMode>
</LookAt>
<styleUrl>#__managed_style_02D7B013051D45E139B0</styleUrl>
<Point>
<coordinates>106.7911059519954,-6.26738740477215,32.03876994217804</coordinates>
</Point>
</Placemark>
</Document>
</kml>
@ydhnwb
Copy link
Author

ydhnwb commented Sep 23, 2021

Ini adl contoh kml 1 midpoint dan sebuah polygon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment