Geometry Operations¶
You can apply various operations on geometric objects:
1. Centroid Extraction¶
- Retrieve centroids from any geometry type (lines, polygons, etc.)
2. Boundary Extraction¶
- Extract the boundary of geometries using
Boundary()
3. Spatial Reference System Transformation¶
- Transform geometries between coordinate systems using
transform() - Extract vertices from transformed geometries via
extractVerticies() - Handle antimeridian edge cases with
revert360degProjflag - Clip or shift out-of-bounds geometries with
fixOutOfBoundsGeoms()
4. Area Calculation¶
- Calculate geometry areas using
Area()method
5. Spatial Relations¶
- Test geometric relationships such as: Contains, Crosses, Touches, Overlaps
- Evaluate spatial predicates between geometry pairs
6. Set Operations¶
- Compute geometry intersections using
Intersection() - Compute geometry unions using
Union() - Ensure operations occur within the same spatial reference system