[Git][debian-gis-team/antimeridian][master] 4 commits: New upstream version 0.3.6

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Mon May 20 06:50:47 BST 2024



Antonio Valentino pushed to branch master at Debian GIS Project / antimeridian


Commits:
9e2e5b43 by Antonio Valentino at 2024-05-20T05:45:41+00:00
New upstream version 0.3.6
- - - - -
362e043f by Antonio Valentino at 2024-05-20T05:45:59+00:00
Update upstream source from tag 'upstream/0.3.6'

Update to upstream version '0.3.6'
with Debian dir 2c8344f14874b66a4ab24d707ef02ba51b315c33
- - - - -
eef6ea52 by Antonio Valentino at 2024-05-20T05:46:46+00:00
New usptream release

- - - - -
75344eb1 by Antonio Valentino at 2024-05-20T05:47:12+00:00
Set distribution to unstable

- - - - -


6 changed files:

- .pre-commit-config.yaml
- CHANGELOG.md
- debian/changelog
- pyproject.toml
- src/antimeridian/_implementation.py
- tests/test_polygon.py


Changes:

=====================================
.pre-commit-config.yaml
=====================================
@@ -1,20 +1,20 @@
 repos:
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.5.0
+    rev: v4.6.0
     hooks:
       - id: trailing-whitespace
       - id: end-of-file-fixer
       - id: check-yaml
       - id: check-added-large-files
   - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v1.9.0
+    rev: v1.10.0
     hooks:
       - id: mypy
         additional_dependencies:
           - click~=8.1.6
           - pytest~=8.0
   - repo: https://github.com/charliermarsh/ruff-pre-commit
-    rev: v0.3.4
+    rev: v0.4.4
     hooks:
       - id: ruff
         types_or: [python, pyi, jupyter]


=====================================
CHANGELOG.md
=====================================
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 
 ## [Unreleased]
 
+## [0.3.6] - 2024-05-16
+
+### Fixed
+
+- Preserve z coordinates ([#116](https://github.com/gadomski/antimeridian/pull/116))
+
 ## [0.3.5] - 2024-05-05
 
 ### Fixed
@@ -128,7 +134,8 @@ This v0.1.0 release is to indicate that we think that this package is ready to u
 
 Initial release.
 
-[unreleased]: https://github.com/gadomski/antimeridian/compare/v0.3.5...HEAD
+[unreleased]: https://github.com/gadomski/antimeridian/compare/v0.3.6...HEAD
+[0.3.6]: https://github.com/gadomsk/antimeridian/compare/v0.3.5...v0.3.6
 [0.3.5]: https://github.com/gadomsk/antimeridian/compare/v0.3.4...v0.3.5
 [0.3.4]: https://github.com/gadomsk/antimeridian/compare/v0.3.3...v0.3.4
 [0.3.3]: https://github.com/gadomsk/antimeridian/compare/v0.3.2...v0.3.3


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+antimeridian (0.3.6-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 20 May 2024 05:46:52 +0000
+
 antimeridian (0.3.5-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
pyproject.toml
=====================================
@@ -1,6 +1,6 @@
 [project]
 name = "antimeridian"
-version = "0.3.5"
+version = "0.3.6"
 authors = [{ name = "Pete Gadomski", email = "pete.gadomski at gmail.com" }]
 description = "Fix GeoJSON geometries that cross the antimeridian"
 readme = "README.md"


=====================================
src/antimeridian/_implementation.py
=====================================
@@ -452,6 +452,10 @@ def normalize(coords: List[XY]) -> List[XY]:
         else:
             coords[i] = (((point[0] + 180) % 360) - 180, point[1])
             all_are_on_antimeridian = False
+        if len(point) > 2:
+            point_as_list = list(coords[i])
+            point_as_list.extend(point[2:])
+            coords[i] = tuple(point_as_list)
     if all_are_on_antimeridian:
         return original
     else:


=====================================
tests/test_polygon.py
=====================================
@@ -157,3 +157,10 @@ def test_centroid_split_with_shift(read_input: Reader) -> None:
     centroid = cast(Point, antimeridian.centroid(input))
     assert centroid.x == -179
     assert centroid.y == 45
+
+
+def test_z_coordinates() -> None:
+    # https://github.com/gadomski/antimeridian/issues/115
+    polygon = Polygon([[0, 0, 1], [10, 0, 2], [10, 10, 3], [0, 10, 4]])
+    fixed = antimeridian.fix_polygon(polygon)
+    assert fixed.has_z



View it on GitLab: https://salsa.debian.org/debian-gis-team/antimeridian/-/compare/51e750e67cfaf3662f93100b4071a148fbcf01c8...75344eb13c2ad77eec2699bd7a222b0cfe5a36ea

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/debian-gis-team/antimeridian/-/compare/51e750e67cfaf3662f93100b4071a148fbcf01c8...75344eb13c2ad77eec2699bd7a222b0cfe5a36ea
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240520/eed26542/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list