Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor gx.Track and gx.Multitrack #243

Merged
merged 9 commits into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions fastkml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from fastkml.data import ExtendedData
from fastkml.data import Schema
from fastkml.data import SchemaData
from fastkml.gx import GxGeometry
from fastkml.kml import KML
from fastkml.kml import Document
from fastkml.kml import Folder
Expand Down Expand Up @@ -66,7 +65,6 @@
"TimeStamp",
"ExtendedData",
"Data",
"GxGeometry",
"Schema",
"SchemaData",
"StyleUrl",
Expand Down
11 changes: 7 additions & 4 deletions fastkml/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@ def set_etree_implementation(implementation: ModuleType) -> None:
ATOMNS = "{http://www.w3.org/2005/Atom}" # noqa: FS003
GXNS = "{http://www.google.com/kml/ext/2.2}" # noqa: FS003

DEFAULT_NAME_SPACES = {
"kml": KMLNS[1:-1],
"atom": ATOMNS[1:-1],
"gx": GXNS[1:-1],
NAME_SPACES = {
"kml": KMLNS,
"atom": ATOMNS,
"gx": GXNS,
}


DEFAULT_NAME_SPACES = {k: v[1:-1] for k, v in NAME_SPACES.items()}


def register_namespaces(**namespaces: str) -> None:
"""Register namespaces for use in etree.ElementTree.parse()."""
try:
Expand Down
Loading
Loading