Skip to content

Commit

Permalink
#8 #11 Work in progress:
Browse files Browse the repository at this point in the history
-Add XML schema files

[ci skip]
  • Loading branch information
FABallemand committed Dec 5, 2023
1 parent 3dd9aff commit 2b297aa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/parsing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ In order to parse a KMZ file, simply create a new :py:class:`~ezgpx.gpx.GPX` obj

from ezGPX import GPX

# Parse KML file
# Parse KMZ file
gpx = GPX("file.kmz")


Expand Down
4 changes: 0 additions & 4 deletions ezgpx/gpx_parser/gpx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ def __init__(self, file_path: Optional[str] = None, check_schemas: bool = True,
{"topo": "http://www.topografix.com/GPX/1/1"},
check_schemas,
extensions_schemas)

print(f"GPX FILE PATH = {self.file_path}")
print(f"GPX NAME SPACE = {self.name_space}")
print(f"GPX TIME FORMAT = {self.time_format}")

if self.file_path is not None and os.path.exists(self.file_path):
self.parse()
Expand Down
1 change: 0 additions & 1 deletion ezgpx/xml_parser/xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def __init__(self, file_path: Optional[str] = None, name_space: Optional[dict] =
self.name_space = {}
else:
self.name_space = name_space
print(f"XML NAME SPACE = {self.name_space}")

self.check_schemas: bool = check_schemas
self.extensions_schemas: bool = extensions_schemas
Expand Down
2 changes: 2 additions & 0 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@

## 🧭 Other Python GPX Library
- [gpxpy](https://github.com/tkrajina/gpxpy)
- [PyGPX](https://github.com/sgraaf/gpx)
- [gpxcsv](https://github.com/astrowonk/gpxcsv)

# 📝 TO DO LIST !!
- Change to project.toml (https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
'Operating System :: OS Independent'
],
packages=find_packages(),
package_data={"": ["*.xsd"]},
include_package_data=True,
install_requires=[
'xmlschema',
Expand Down

0 comments on commit 2b297aa

Please sign in to comment.