Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@oreilles
Copy link
Contributor

@oreilles oreilles commented Sep 7, 2024

This PR adds GEOSGeom_transformXYZ. Code is copied from GEOSGeom_transformXY by simply adding a z parameter to the callback function. Tests and documentation have been updated.

capi/geos_c.h.in Outdated
* NULL. M values, if present, are not modified by this function.
* \param[in] g Input geometry
* \param[in] callback a function to be executed for each coordinate in the
geometry. The callback takes 3 parameters: x and y coordinate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Four parameters?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, missed that one!

ensure_equals(ymin, 3);
ensure_equals(xmax, 4);
ensure_equals(ymax, 6);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Z result?

@pramsey pramsey merged commit 1765c12 into libgeos:main Sep 9, 2024
@oreilles oreilles deleted the transform-xyz branch April 24, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants