Skip to content

Instantly share code, notes, and snippets.

View jspblm's full-sized avatar
🎯
keep-focus

José Pablo jspblm

🎯
keep-focus
View GitHub Profile
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Folder><name>COMUNITYW17</name>
<Placemark>
<name>Agraria Chajbelen</name>
<description>Cahabon Alta Verapaz.</description>
<Point><coordinates>-89.692,15.6027</coordinates></Point>
</Placemark>
<Placemark>
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Schema name="COMUNITYW17" id="COMUNITYW17">
<SimpleField name="ID" type="string"></SimpleField>
<SimpleField name="COMUNIDAD" type="string"></SimpleField>
<SimpleField name="MUNICIPIO" type="string"></SimpleField>
<SimpleField name="DEPARTAMENTO" type="string"></SimpleField>
<SimpleField name="Y" type="float"></SimpleField>
<SimpleField name="X" type="float"></SimpleField>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<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>
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Schema name="COMUNITYW17" id="COMUNITYW17">
<SimpleField name="ID" type="string"></SimpleField>
<SimpleField name="COMUNIDAD" type="string"></SimpleField>
<SimpleField name="MUNICIPIO" type="string"></SimpleField>
<SimpleField name="DEPARTAMENTO" type="string"></SimpleField>
<SimpleField name="Y" type="float"></SimpleField>
<SimpleField name="X" type="float"></SimpleField>
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Schema name="COMUNITYW17" id="COMUNITYW17">
<SimpleField name="ID" type="string"></SimpleField>
<SimpleField name="COMUNIDAD" type="string"></SimpleField>
<SimpleField name="MUNICIPIO" type="string"></SimpleField>
<SimpleField name="DEPARTAMENTO" type="string"></SimpleField>
<SimpleField name="Y" type="float"></SimpleField>
<SimpleField name="X" type="float"></SimpleField>
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Schema name="COMUNIDADES_ANT" id="COMUNIDADES_ANT">
<SimpleField name="CONCAT" type="string"></SimpleField>
<SimpleField name="TIPO" type="string"></SimpleField>
<SimpleField name="community" type="string"></SimpleField>
<SimpleField name="municipality" type="string"></SimpleField>
<SimpleField name="department" type="string"></SimpleField>
<SimpleField name="latitude" type="float"></SimpleField>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<!-- Data derived from:
Ed Knittel - || tastypopsicle.com
Feel free to use this file for your own purposes.
Just leave the comments and credits when doing so.
-->
<Document>
<name>Chicago Transit Map</name>
<description>Chicago Transit Authority train lines</description>
""" A simple script to calculate the diference within two courses """
def course_delta(c1, c2):
""" Calculate the diference within two consecutive courses """
if c2 < c1:
# The function expects that c2 is always greater than c1
temp = c2
c2 = c1 # switch the values of c1 and c2
c1 = temp