forked from cleder/fastkml
-
Notifications
You must be signed in to change notification settings - Fork 0
Syncing with fork repository with Cursor AI help. #1
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
Open
gabrielborges-nimble
wants to merge
1,346
commits into
master
Choose a base branch
from
sync-with-upstream
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
…ng and improve test cases for KmlDateTime parsing
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v4...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
…odecov/codecov-action-5 Bump codecov/codecov-action from 4 to 5
KML Write Function
…ameters for precision and verbosity
1.0.0 release candidate 2
… development status to stable
…dditional examples and improved formatting
…images and improved formatting
…context for visualizations
updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](astral-sh/ruff-pre-commit@v0.7.3...v0.7.4)
[pre-commit.ci] pre-commit autoupdate
1.0.0 final
for more information, see https://pre-commit.ci
… and contribution guidelines
updates: - [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.13.3](astral-sh/ruff-pre-commit@v0.13.2...v0.13.3)
[pre-commit.ci] pre-commit autoupdate
…or_align_schema Fix: change base class of SimpleArrayData from _XMLObject to _BaseObject
Revise README structure and content for clarity and organization
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v3...v4) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
…ithub/codeql-action-4 Bump github/codeql-action from 3 to 4
Update HISTORY.rst
updates: - [github.com/astral-sh/ruff-pre-commit: v0.13.3 → v0.14.0](astral-sh/ruff-pre-commit@v0.13.3...v0.14.0)
[pre-commit.ci] pre-commit autoupdate
- Merged latest upstream changes from cleder/fastkml - Added Garmin device fix for single-coordinate LineStrings - Preserved the fix for Garmin KML feeds that have LineStrings with only one coordinate tuple
|
Failed to generate code suggestions for PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sync with upstream cleder/fastkml
This PR syncs this fork with the upstream repository
https://github.com/cleder/fastkmlwhile preserving critical local changes.Overview
The upstream repository underwent a major refactoring that modernized the codebase with:
Changes Preserved
1. Garmin Device LineString Fix
File:
fastkml/geometry.pyIssue: Garmin devices sometimes produce KML files with
LineStringelements containing only one coordinate tuple, which is technically invalid for a LineString.Solution: Added validation in the
LineString.geometryproperty to:Noneinstead of crashing2. NetworkLink and Link Classes
Status: ✅ Already covered by upstream
The upstream version includes comprehensive
NetworkLinkandLinkimplementations that are more feature-complete than the original local versions:fastkml/features.py): Full KML specification supportfastkml/links.py): Complete implementation with refresh modes, view refresh modes, etc.fastkml/network_link_control.py): Additional network link control featuresTesting
Added comprehensive unit tests for the Garmin fix in
tests/geometries/linestring_test.py:test_garmin_single_coordinate_linestring(): Verifies single-coordinate LineStrings returnNonetest_garmin_single_coordinate_linestring_with_warning(): Ensures warning is loggedtest_garmin_single_coordinate_linestring_from_string(): Tests XML parsing edge casetest_garmin_single_coordinate_linestring_with_altitude(): Tests 3D coordinate edge casetest_garmin_empty_coordinates(): Tests empty coordinates handlingtest_garmin_none_coordinates(): Tests None coordinates handlingtest_garmin_fix_preserves_existing_behavior(): Ensures fix doesn't break valid LineStringsMigration Notes
API Changes
KML.from_string(xml_string)→KML.parse(file)Benefits of Sync
Files Modified
fastkml/geometry.py: Added Garmin LineString validationtests/geometries/linestring_test.py: Added comprehensive test coverageVerification
The sync has been tested to ensure:
Contribution Ready
This sync makes the codebase ready for contributing the Garmin fix back to the upstream repository, as it: