togo 0.1.3__cp314-cp314t-musllinux_1_2_x86_64.whl → 0.1.5__cp314-cp314t-musllinux_1_2_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of togo might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: togo
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Lightweight Python bindings for the TG geometry library
5
5
  Author-email: Giorgio Salluzzo <giorgio.salluzzo@gmail.com>
6
6
  License: MIT
@@ -242,6 +242,30 @@ from togo import TGIndex, set_polygon_indexing_mode
242
242
  set_polygon_indexing_mode(TGIndex.NATURAL) # or NONE, YSTRIPES
243
243
  ```
244
244
 
245
+ ## Integration with tgx and libgeos
246
+
247
+ Togo integrates with the [tgx](https://github.com/tidwall/tgx) extension and [libgeos](https://libgeos.org/) to provide advanced geometry operations, such as topological unions and conversions between TG and GEOS geometry formats. This allows you to leverage the speed of TG for basic operations and the flexibility of GEOS for more complex tasks.
248
+
249
+ ### Example: Unary Union (GEOS integration)
250
+
251
+ The `unary_union` method demonstrates this integration. It combines multiple geometries into a single geometry using GEOS's topological union, with all conversions handled automatically:
252
+
253
+ ```python
254
+ from togo import Geometry, Point, Poly, Ring
255
+
256
+ # Create several polygons
257
+ poly1 = Poly(Ring([(0,0), (2,0), (2,2), (0,2), (0,0)]))
258
+ poly2 = Poly(Ring([(1,1), (3,1), (3,3), (1,3), (1,1)]))
259
+
260
+ # Perform unary union (requires tgx and libgeos)
261
+ union = Geometry.unary_union([poly1, poly2])
262
+
263
+ # The result is a single geometry representing the union of the input polygons
264
+ print(union.to_wkt())
265
+ ```
266
+
267
+ This operation uses `tgx` to convert `TG` geometries to `GEOS`, applies the union in `libgeos`, and converts the result back to `TG` format for further use in `ToGo`.
268
+
245
269
  ## Performance Considerations
246
270
 
247
271
  - Togo is optimized for speed and memory efficiency
@@ -0,0 +1,8 @@
1
+ togo.cpython-314t-x86_64-linux-musl.so,sha256=cw8LEatfG0DHSRdRFJz3g4Gr4maDCbCcgpUjp2_xrKM,9471201
2
+ togo.libs/libgcc_s-0cd532bd.so.1,sha256=yPk0-VjyKzucjnkP3mvC0vVaua6Ln17qZUJbICcXgtA,181737
3
+ togo.libs/libstdc++-5d72f927.so.6.0.33,sha256=fogxHsmB1_D6C-a_-uHh8Ei_6Qh52a8vLlicJRM3ehk,3562401
4
+ togo-0.1.5.dist-info/METADATA,sha256=J4BU0w5iNSqsEQ56hodktVSrffMKO8xItT6zCuGfk9s,7722
5
+ togo-0.1.5.dist-info/WHEEL,sha256=zXoM281zyz8wppofreMuq3eZjd9HP4BgZS1rfYnrpIs,113
6
+ togo-0.1.5.dist-info/top_level.txt,sha256=bldd6tssR8THqoSDFauQQdh_pg79DMHBDhiNKgS4ttM,5
7
+ togo-0.1.5.dist-info/RECORD,,
8
+ togo-0.1.5.dist-info/licenses/LICENSE,sha256=OfTFHFMDSt9X89g-BWUVis-GuTPWAdjplg2z9d2dBCw,1073
Binary file
Binary file
Binary file
@@ -1,6 +0,0 @@
1
- togo.cpython-314t-x86_64-linux-musl.so,sha256=Xuf1eSonj_YJsMhjO_pNeuG-CEjplQ72SgogCEeZNg4,2820488
2
- togo-0.1.3.dist-info/METADATA,sha256=q55SCgPt5td9qOCmC_oE3-VEK-dZJPALOiHp5S060AI,6539
3
- togo-0.1.3.dist-info/WHEEL,sha256=zXoM281zyz8wppofreMuq3eZjd9HP4BgZS1rfYnrpIs,113
4
- togo-0.1.3.dist-info/top_level.txt,sha256=bldd6tssR8THqoSDFauQQdh_pg79DMHBDhiNKgS4ttM,5
5
- togo-0.1.3.dist-info/RECORD,,
6
- togo-0.1.3.dist-info/licenses/LICENSE,sha256=OfTFHFMDSt9X89g-BWUVis-GuTPWAdjplg2z9d2dBCw,1073
File without changes