Antonio Valentino pushed to branch master at Debian GIS Project / asf-search


Commits:
90c0eb5d by Antonio Valentino at 2026-08-27T11:02:42+00:00
New upstream version 12.3.2
- - - - -
5522ad07 by Antonio Valentino at 2026-08-27T11:02:48+00:00
Update upstream source from tag 'upstream/12.3.2'

Update to upstream version '12.3.2'
with Debian dir 22ebb533a00567414267046b04388d809f086314
- - - - -
9c9d87b9 by Antonio Valentino at 2026-08-27T11:05:32+00:00
New upstream release

- - - - -
0c25dd84 by Antonio Valentino at 2026-08-27T11:06:21+00:00
Set distribution to unstable

- - - - -


3 changed files:

- CHANGELOG.md
- asf_search/Products/NISARProduct.py
- debian/changelog


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -27,6 +27,11 @@ and uses [Semantic 
Versioning](https://semver.org/spec/v2.0.0.html).
 -->
 
 ---
+## 
[v12.3.2](https://github.com/asfadmin/Discovery-asf_search/compare/v12.3.1...v12.3.2)
+
+### Fixed
+
+- `NISAR` dataset `geojson` export no longer fails when serializing 
coordinates for multipolygons
 
 ## 
[v12.3.1](https://github.com/asfadmin/Discovery-asf_search/compare/v12.3.0...v12.3.1)
 


=====================================
asf_search/Products/NISARProduct.py
=====================================
@@ -2,6 +2,7 @@ from shapely import unary_union, multipolygons
 from typing import Dict, Tuple, Union
 from asf_search import ASFSearchOptions, ASFSession, ASFStackableProduct
 from asf_search.CMR.translate import try_parse_frame_coverage, try_parse_bool, 
try_parse_int
+from asf_search.WKT.validate_wkt import _counter_clockwise_reorientation
 from shapely.geometry import shape, MultiPolygon
 from shapely.geometry.base import BaseGeometry
 from shapely.ops import transform
@@ -87,7 +88,7 @@ class NISARProduct(ASFStackableProduct):
             polygons = 
item['umm']['SpatialExtent']['HorizontalSpatialDomain']['Geometry'][
                 'GPolygons'
             ]
-            # dateline spanning scenes are stored as multiple polygons in CMR, 
+            # dateline spanning scenes are stored as multiple polygons in CMR,
             # we need to unwrap and merge them
             if len(polygons) > 1:
                 polygon_shapes = []
@@ -96,14 +97,13 @@ class NISARProduct(ASFStackableProduct):
                     geometry = self._get_unwrapped({'coordinates': 
[coordinates], 'type': 'Polygon'})
 
                     polygon_shapes.append(geometry)
-                
-                geom = unary_union(multipolygons(polygon_shapes))
 
+                geom = unary_union(multipolygons(polygon_shapes))
                 # sometimes the dateline spanning polygons don't overlap 
properly
                 if isinstance(geom, MultiPolygon):
                     geom = geom.convex_hull
-
-                return {'coordinates': [geom.exterior.coords], 'type': 
'Polygon'}
+                geom, _warn = _counter_clockwise_reorientation(geom)
+                return {'coordinates': [[[x, y] for x, y in 
geom.exterior.coords]], 'type': 'Polygon'}
             else:
                 coordinates = polygons[0]['Boundary']['Points']
                 coordinates = [[c['Longitude'], c['Latitude']] for c in 
coordinates]


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+asf-search (12.3.2-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Antonio Valentino <[email protected]>  Thu, 27 Aug 2026 
11:05:59 +0000
+
 asf-search (12.3.1-1) unstable; urgency=medium
 
   * New upstream release.



View it on GitLab: 
https://salsa.debian.org/debian-gis-team/asf-search/-/compare/efc41cea788e6d0ae20d5a5cc29ddcb93cbb2127...0c25dd84cc5c97a9f34c336ddb53b26761cab15b

-- 
View it on GitLab: 
https://salsa.debian.org/debian-gis-team/asf-search/-/compare/efc41cea788e6d0ae20d5a5cc29ddcb93cbb2127...0c25dd84cc5c97a9f34c336ddb53b26761cab15b
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to