Kontinuation opened a new pull request, #766: URL: https://github.com/apache/sedona/pull/766
## Did you read the Contributor Guide? - Yes, I have read [Contributor Rules](https://sedona.apache.org/latest-snapshot/community/rule/) and [Contributor Development Guide](https://sedona.apache.org/latest-snapshot/community/develop/) ## Is this PR related to a JIRA ticket? - Yes, the URL of the associated JIRA ticket is https://issues.apache.org/jira/browse/SEDONA-207. The PR name follows the format `[SEDONA-XXX] my subject`. ## What changes were proposed in this PR? This pull request fixes the handling of empty multi-geometries in the geometry serializer. In the current implementation, we omitted structure data for multi-geometries containing only empty geometries, such as `MULTILINESTRING (EMPTY, EMPTY)`. In this case, we cannot tell if it is an empty multi-geometry or multi-geometry containing only empty geometries. This patch fixes the problem by always writing structure data for multi geometries. This patch also fixes other issues with the geometry serializer: * Python geometry serializer will drop M coordinates when deserializing XYM/XYZM geometries, instead of raising an exception. * Avoid allocating a huge amounts of memory when deserializing malformed data. ## How was this patch tested? Unit tests were added to test this patch. ## Did this PR include necessary documentation updates? - No, this PR does not affect any public API so no need to change the docs. -- 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]
