-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-GPX schema checking correction -KML schema checking correction [ci skip]
- Loading branch information
1 parent
38b5d9a
commit 6373ec3
Showing
11 changed files
with
3,423 additions
and
373 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import ezgpx | ||
|
||
# Parse GPX file | ||
gpx = ezgpx.GPX("file.gpx") | ||
|
||
# Convert to Pandas Dataframe | ||
df = gpx.to_dataframe() | ||
|
||
# Convert to CSV | ||
gpx.to_csv("file.csv", columns=["lat", "lon", "ele"]) | ||
|
||
# Convert to KML | ||
gpx.to_kml("file.kml") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from .gpx_elements import * | ||
from .gpx_parser import * | ||
from .gpx_writer import * | ||
from .kml_writer import * | ||
from .gpx import * |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified" | ||
targetNamespace="http://www.w3.org/2005/Atom" | ||
xmlns:atom="http://www.w3.org/2005/Atom" version="1.0.0"> | ||
|
||
<annotation> | ||
<appinfo>atom-author-link.xsd 2008-01-23</appinfo> | ||
<documentation>There is no official atom XSD. This XSD is created based on: | ||
http://atompub.org/2005/08/17/atom.rnc. A subset of Atom as used in the | ||
ogckml22.xsd is defined here. </documentation> | ||
</annotation> | ||
|
||
<!-- Person Construct --> | ||
<complexType name="atomPersonConstruct"> | ||
<choice minOccurs="0" maxOccurs="unbounded"> | ||
<element ref="atom:name"/> | ||
<element ref="atom:uri"/> | ||
<element ref="atom:email"/> | ||
</choice> | ||
</complexType> | ||
|
||
<element name="name" type="string"/> | ||
<element name="uri" type="string"/> | ||
<element name="email" type="atom:atomEmailAddress"/> | ||
|
||
<!-- atom:author --> | ||
<element name="author" type="atom:atomPersonConstruct"/> | ||
|
||
<!-- atom:link --> | ||
<element name="link"> | ||
<complexType> | ||
|
||
<attribute name="href" use="required"/> | ||
<attribute name="rel"/> | ||
<attribute name="type" type="atom:atomMediaType"/> | ||
<attribute name="hreflang" type="atom:atomLanguageTag"/> | ||
<attribute name="title"/> | ||
<attribute name="length"/> | ||
|
||
</complexType> | ||
|
||
</element> | ||
|
||
<!-- Whatever a media type is, it contains at least one slash --> | ||
<simpleType name="atomMediaType"> | ||
<restriction base="string"> | ||
<pattern value=".+/.+"/> | ||
</restriction> | ||
</simpleType> | ||
|
||
<!-- As defined in RFC 3066 --> | ||
<simpleType name="atomLanguageTag"> | ||
<restriction base="string"> | ||
<pattern value="[A-Za-z]{1,8}(-[A-Za-z0-9]{1,8})*"/> | ||
</restriction> | ||
</simpleType> | ||
|
||
<!-- Whatever an email address is, it contains at least one @ --> | ||
<simpleType name="atomEmailAddress"> | ||
<restriction base="string"> | ||
<pattern value=".+@.+"/> | ||
</restriction> | ||
</simpleType> | ||
|
||
</schema> |
Oops, something went wrong.