togo 0.1.3__cp38-cp38-musllinux_1_2_x86_64.whl → 0.1.5__cp38-cp38-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.1
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
@@ -240,6 +240,30 @@ from togo import TGIndex, set_polygon_indexing_mode
240
240
  set_polygon_indexing_mode(TGIndex.NATURAL) # or NONE, YSTRIPES
241
241
  ```
242
242
 
243
+ ## Integration with tgx and libgeos
244
+
245
+ 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.
246
+
247
+ ### Example: Unary Union (GEOS integration)
248
+
249
+ 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:
250
+
251
+ ```python
252
+ from togo import Geometry, Point, Poly, Ring
253
+
254
+ # Create several polygons
255
+ poly1 = Poly(Ring([(0,0), (2,0), (2,2), (0,2), (0,0)]))
256
+ poly2 = Poly(Ring([(1,1), (3,1), (3,3), (1,3), (1,1)]))
257
+
258
+ # Perform unary union (requires tgx and libgeos)
259
+ union = Geometry.unary_union([poly1, poly2])
260
+
261
+ # The result is a single geometry representing the union of the input polygons
262
+ print(union.to_wkt())
263
+ ```
264
+
265
+ 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`.
266
+
243
267
  ## Performance Considerations
244
268
 
245
269
  - Togo is optimized for speed and memory efficiency
@@ -0,0 +1,8 @@
1
+ togo.cpython-38-x86_64-linux-gnu.so,sha256=0_s1l8CE1A6M2aIJFA3Bukyddc__SdBsIAQwu8YRiwA,9413729
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/LICENSE,sha256=OfTFHFMDSt9X89g-BWUVis-GuTPWAdjplg2z9d2dBCw,1073
5
+ togo-0.1.5.dist-info/METADATA,sha256=u3TsXridgsfSPM-9uW6cEvfXMe4pc2lB7se3D9guiOA,7683
6
+ togo-0.1.5.dist-info/WHEEL,sha256=AtKzrIIwO6LyEQPNa-CKogjoLSeXFnST8-hqmpwwZQA,110
7
+ togo-0.1.5.dist-info/top_level.txt,sha256=bldd6tssR8THqoSDFauQQdh_pg79DMHBDhiNKgS4ttM,5
8
+ togo-0.1.5.dist-info/RECORD,,
Binary file
Binary file
Binary file
@@ -1,6 +0,0 @@
1
- togo.cpython-38-x86_64-linux-gnu.so,sha256=eQS8GlmKkzm7j8Cgwk56P0Wkp4QzHIUtTOvJasJ6XdY,2776376
2
- togo-0.1.3.dist-info/LICENSE,sha256=OfTFHFMDSt9X89g-BWUVis-GuTPWAdjplg2z9d2dBCw,1073
3
- togo-0.1.3.dist-info/METADATA,sha256=sbWN-guh8YaVvvIK317CRAUscBjr2C6hi0gfttFEfiI,6500
4
- togo-0.1.3.dist-info/WHEEL,sha256=AtKzrIIwO6LyEQPNa-CKogjoLSeXFnST8-hqmpwwZQA,110
5
- togo-0.1.3.dist-info/top_level.txt,sha256=bldd6tssR8THqoSDFauQQdh_pg79DMHBDhiNKgS4ttM,5
6
- togo-0.1.3.dist-info/RECORD,,
File without changes
File without changes