furqaankhan commented on code in PR #1745: URL: https://github.com/apache/sedona/pull/1745#discussion_r1909171163
########## docs/api/flink/Function.md: ########## @@ -3191,6 +3191,54 @@ Output: 2216860.5497177234 ``` +## ST_Perimeter2D + +Introduction: This function calculates the 2D perimeter of a given geometry. It supports Polygon, MultiPolygon, and GeometryCollection geometries (as long as the GeometryCollection contains polygonal geometries). For other types, it returns 0. To measure lines, use [ST_Length](#st_length). + +To get the perimeter in meters, set `use_spheroid` to `true`. This calculates the geodesic perimeter using the WGS84 spheroid. When using `use_spheroid`, the `lenient` parameter defaults to true, assuming the geometry uses EPSG:4326. To throw an exception instead, set `lenient` to `false`. + +!!!Info Review Comment: <img width="319" alt="Screenshot 2025-01-09 at 9 00 16 AM" src="https://github.com/user-attachments/assets/517a801d-b5e1-40cb-96b1-dee5ad9ab5aa" /> Yep, it does. ########## docs/api/flink/Function.md: ########## @@ -3191,6 +3191,54 @@ Output: 2216860.5497177234 ``` +## ST_Perimeter2D + +Introduction: This function calculates the 2D perimeter of a given geometry. It supports Polygon, MultiPolygon, and GeometryCollection geometries (as long as the GeometryCollection contains polygonal geometries). For other types, it returns 0. To measure lines, use [ST_Length](#st_length). + +To get the perimeter in meters, set `use_spheroid` to `true`. This calculates the geodesic perimeter using the WGS84 spheroid. When using `use_spheroid`, the `lenient` parameter defaults to true, assuming the geometry uses EPSG:4326. To throw an exception instead, set `lenient` to `false`. + +!!!Info Review Comment: <img width="319" alt="Screenshot 2025-01-09 at 9 00 16 AM" src="https://github.com/user-attachments/assets/517a801d-b5e1-40cb-96b1-dee5ad9ab5aa" /> Yep, it does. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
