Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GEOSGeom_transformXYZ #1157

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Add GEOSGeom_transformXYZ #1157

merged 2 commits into from
Sep 9, 2024

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
28 checks passed
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