Created
May 1, 2017 14:41
-
-
Save schwehr/1606bf827229956b9b39d15f2ad2077a to your computer and use it in GitHub Desktop.
corrupt kml file that triggers a leak in gdal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.1"> | |
<Document> | |
<name>KML Samples</name> | |
<open>1</open> | |
<description>Unleash your creativity with the help of these examples!</description> | |
<Style id="downArrowIcon"> | |
<IconStyle> | |
<Icon> | |
<href>http://maps.google.com/mapfiles/kml/pal4/icon28.png</href> | |
</Icon> | |
</IconStyle> | |
</Style> | |
<Style id="globeIcon"> | |
<IconStyle> | |
<Icon> | |
<href>http://maps.google.com/mapfiles/kml/pal3/icon19.png</href> | |
</Icon> | |
</IconStyle> | |
<LineStyle> | |
<width>2</width> | |
</LineStyle> | |
</Style> | |
<Style id="transPurpleLineGreenPoly"> | |
<LineStyle> | |
<color>7fff00ff</color> | |
<width>4</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7f00ff00</color> | |
</PolyStyle> | |
</Style> | |
<Style id="yellowLineGreenPoly"> | |
<LineStyle> | |
<color>7f00ffff</color> | |
<width>4</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7f00ff00</color> | |
</PolyStyle> | |
</Style> | |
<Style id="thickBlackLine"> | |
<LineStyle> | |
<color>87000000</color> | |
<width>10</width> | |
</LineStyle> | |
</Style> | |
<Style id="redLineBluePoly"> | |
<LineStyle> | |
<color>ff0000ff</color> | |
</LineStyle> | |
<PolyStyle> | |
<color>ffff0000</color> | |
</PolyStyle> | |
</Style> | |
<Style id="blueLineRedPoly"> | |
<LineStyle> | |
<color>ffff0000</color> | |
</LineStyle> | |
<PolyStyle> | |
<color>ff0000ff</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transRedPoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7d0000ff</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transBluePoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7dff0000</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transGreenPoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7d00ff00</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transYellowPoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7d00ffff</color> | |
</PolyStyle> | |
</Style> | |
<Style id="noDrivingDirections"> | |
<BalloonStyle> | |
<text><![CDATA[ | |
<b>$[name]</b> | |
<br /><br /> | |
6.09919570465255,645 | |
-112.254734666947,36.09984998366178,645 | |
-112.255493345654,36.10051310621746,645 | |
-112.2563157098468,36.10108441943419,64\ | |
-112.2568033076439,36.10159722088088,645 | |
-112.257494011321,36.10204323542867,645 | |
-112.2584106072308,36.10229131995655,645 | |
-112.2596588987972,36.10240001286358,645 | |
-112.2610581199487,36.10213176873407,645 | |
-112.2626285262793,36.10157011437219,645 </coordinates> | |
</LineString> | |
</Placemark> | |
<Placemark> | |
<name>Relative Extruded</name> | |
<visibility>0</visibility> | |
<description>Opaque blue walls with red outline, height tracks terrain</description> | |
<LookAt> | |
<longitude>-112.2683594333433</longitude> | |
<latitude>36.09884362144909</latitude> | |
<altitude>0</altitude> | |
<range>2184.193522571467</range> | |
<tilt>44.60855445139561</tilt> | |
<heading>-72.24271551768405</heading> | |
</LookAt> | |
<styleUrl>#redLineBluePoly</styleUrl> | |
<LineString> | |
<extrude>1</extrude> | |
<tessellate>1</tessellate> | |
<altitudeMode>relativeToGround</altitudeMode> | |
<coordinates> -112.2656634181359,36.09445214722695,630 | |
-112.2652238941097,36.09520916122063,630 | |
-112.2645079986395,36.09580763864907,630 | |
-112.2638827428817,36.09628572284063,630 | |
-112.2635746835406,36.09679275951239,630 | |
-112.2635711822407,36.09740038871899,630 | |
-112.2640296531825,36.09804913435539,630 | |
-112.264327720538,36.09880337400301,630 | |
-112.2642436562271,36.09963644790288,630 | |
-112.2639148687042,36.10055381117246,630 | |
-112.2626894973474,36.10149062823369,630 </coordinates> | |
</LineString> | |
</Placemark> | |
</Folder> | |
<Folder> | |
<name>Polygons</name> | |
<visibility>0</visibility> | |
<description>Examples of polygon shapes</description> | |
<Folder> | |
<name>Google Campus</name> | |
<visibility>0</visibility> | |
<description>A collection showing how easy it is to create 3-dimensional | |
buildings</description> | |
<LookAt> | |
<longitude>-122.084120030116</longitude> | |
<latitude>37.42174011925477</latitude> | |
<altitude>0</altitude> | |
<range>276.7870053764046</range> | |
<tilt>53.454348562403</tilt> | |
<heading>-34.82469740081282</heading> | |
</LookAt> | |
<Placemark> | |
<name>Building 40</name> | |
<visibility>0</visibility> | |
<styleUrl>#transRedPoly</styleUrl> | |
<Polygon> | |
<extrude>1</extrude> | |
<altitudeMode>relativeToGround</altitudeMode> | |
<outerBoundaryIs> | |
<LinearRing> | |
<coordinates> -122.0848938459612,37.42257124044786,17 | |
-122.0849580979198,37.42211922626856,17 | |
-122.0847469573047,37.42207183952619,17 | |
-122.0845725380962,37.42209006729676,17 | |
-122.0845954886723,37.42215932700895,17 | |
-122.0838521118269,37.42227278564371,17 | |
-122.083792243335,37.42203539112084,17 | |
-122.0835076656616,37.42209006957106,17 | |
-122.0834709464152,37.42200987395161,17 | |
-122.0831221085748,37.4221046494946,17 | |
-122.0829247374572,37.42226503990386,17 | |
-122.0829339169385,37.42231242843094,17 | |
-122.0833837359737,37.42225046087618,17 | |
-122.0833607854248,37.42234159228745,17 | |
-122.0834204551642,37.42237075460644,17 | |
-122.083659133885,37.42251292011001,17 | |
-122.0839758438952,37.42265873093781,17 | |
-122.0842374743331,37.42265143972521,17 | |
-122.0845036949503,37.4226514386435,17 | |
-122.0848020460801,37.42261133916315,17 | |
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.1"> | |
<Document> | |
<name>KML Samples</name> | |
<open>1</open> | |
<description>Unleash your creativity with the help of these examples!</description> | |
<Style id="downArrowIcon"> | |
<IconStyle> | |
<Icon> | |
<href>http://maps.google.com/mapfiles/kml/pal4/icon28.png</href> | |
</Icon> | |
</IconStyle> | |
</Style> | |
<Style id="globeIcon"> | |
<IconStyle> | |
<Icon> | |
<href>http://maps.google.com/mapfiles/kml/pal3/icon19.png</href> | |
</Icon> | |
</IconStyle> | |
<LineStyle> | |
<width>2</width> | |
</LineStyle> | |
</Style> | |
<Style id="transPurpleLineGreenPoly"> | |
<LineStyle> | |
<color>7fff00ff</color> | |
<width>4</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7f00ff00</color> | |
</PolyStyle> | |
</Style> | |
<Style id="yellowLineGreenPoly"> | |
<LineStyle> | |
<color>7f00ffff</color> | |
<width>4</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7f00ff00</color> | |
</PolyStyle> | |
</Style> | |
<Style id="thickBlackLine"> | |
<LineStyle> | |
<color>87000000</color> | |
<width>10</width> | |
</LineStyle> | |
</Style> | |
<Style id="redLineBluePoly"> | |
<LineStyle> | |
<color>ff0000ff</color> | |
</LineStyle> | |
<PolyStyle> | |
<color>ffff0000</color> | |
</PolyStyle> | |
</Style> | |
<Style id="blueLineRedPoly"> | |
<LineStyle> | |
<color>ffff0000</color> | |
</LineStyle> | |
<PolyStyle> | |
<color>ff0000ff</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transRedPoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7d0000ff</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transBluePoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7dff0000</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transGreenPoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7d00ff00</color> | |
</PolyStyle> | |
</Style> | |
<Style id="transYellowPoly"> | |
<LineStyle> | |
<width>1.5</width> | |
</LineStyle> | |
<PolyStyle> | |
<color>7d00ffff</color> | |
</PolyStyle> | |
</Style> | |
<Style id="noDrivingDirections"> | |
<BalloonStyle> | |
<text><![CDATA[ | |
<b>$[name]</b> | |
<br /><br /> | |
$[description] | |
]]></text> | |
</BalloonStyle> | |
</Style> | |
<Folder> | |
<name>Placemarks</name> | |
<description>These are just some of the different kinds of placemarks with | |
which you can mark your favorite places</description> | |
<LookAt> | |
<longitude>-122.0839597145766</longitude> | |
<latitude>37.42222904525232</latitude> | |
<altitude>0</altitude> | |
<range>500.6566641072245</range> | |
<tilt>40.5575073395506</tilt> | |
<hea -122.08478ding>-148.4122922628044</heading> | |
</LookAt> | |
<Placem82750515,37.422http://earth.google.com/kml/2.1 -1ark> | |
22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment