This file contains hidden or 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
<divesites> | |
<site description="Dive Type: Wall Dive; Access Type: Boat access" gps="-38.284883,144.639000" name="12lb Reef"> | |
<notes> | |
https://www.scubadoctor.com.au/divesite.htm?site=12lb-Reef | |
</notes> | |
<geo cat="2" origin="0" value="Australia"> | |
</geo> | |
</site> | |
<site description="Dive Type: Wall Dive; Access Type: Boat access" gps="-38.294233,144.624633" name="16lb Reef"> | |
<notes> |
This file contains hidden or 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
from bs4 import BeautifulSoup | |
scubadoctorFP = 'scuba-doctor-dive-map.kml' | |
outputFP = 'scubadoctorSubsurface.xml' | |
with open(scubadoctorFP, 'r') as kml: | |
kmlSoup = BeautifulSoup(kml.read(), features="xml") | |
kml.close() | |
soup = BeautifulSoup() |
This file contains hidden or 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
/*** | |
* Generates the svg path data for a rounded rectangle | |
* Rounded corners are approximated by Cubic bezier curve with control point at an end point and the other at the corner | |
* @license MIT License | |
* Copyright (c) 2018 Yusuf Ades | |
* @param {Object} dimension - Dimensions of rectangle. | |
* @param {number} width - Width. | |
* @param {number} height - Height. | |
* @param {number} [r=0] - Corner Radius. Keep this smaller than half of width or height. | |
* @param {number} [x=0] - Offset from top left corner in x axis. default 0. |