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

Check the dimensions of child geoms when rebuilding #239

Open
wants to merge 2 commits into
base: as/usecore
Choose a base branch
from

Conversation

asinghvi17
Copy link
Member

@asinghvi17 asinghvi17 commented Nov 25, 2024

This checks that all the child geometries have the same dimension, before rebuilding a geometry. This enables functions like forcexy etc, as well as 2D to 3D transformations (or vice versa).

There is room for efficiency since we currently check all child geoms - we could theoretically only check the first. Is that something we want to do?

Fixes #183

This checks that all the child geometries have the same dimension, before rebuilding a geometry.  This enables functions like `forcexy` etc, as well as 2D to 3D transformations (or vice versa).
@asinghvi17 asinghvi17 requested a review from rafaqz November 25, 2024 21:17
@rafaqz
Copy link
Member

rafaqz commented Nov 25, 2024

Looks good. Only question is the performance cost

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