petern48 opened a new issue, #215: URL: https://github.com/apache/sedona-db/issues/215
The `geo_traits` library's LineString and MultiLineString structs both have an `is_closed()` method ([here](https://github.com/georust/geo/blob/8940db79aa6aa4ec8820d6328c68a2ae08ac8fdc/geo-types/src/geometry/line_string.rs#L361) and [here](https://github.com/georust/geo/blob/8940db79aa6aa4ec8820d6328c68a2ae08ac8fdc/geo-types/src/geometry/multi_line_string.rs#L72)). We can use this to implement ST_IsClosed in SedonaDB's `rust/native-functions` directory. You can see this commit (https://github.com/apache/sedona-db/commit/3d8d50e49333f1e9e16fc45f6b32220c318d970f) that adds ST_IsEmpty to guide this implementation. You'll likely want to use a similar match statement to handle linestrings and multipolygons separately from other geometry types. Behavior that we want: https://postgis.net/docs/ST_IsClosed.html -- 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]
