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

Update Point.php to update dimension when using setAltitude #92

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Update Point.php to update dimension when using setAltitude #92

merged 3 commits into from
Jul 4, 2024

Conversation

tmgreensolutions
Copy link
Contributor

I ran into this issue by converting a LineString object via the WKTGenerator to a wkt string. Even though every point has a z value the value is not included in the resulting converted wkt string.

Before the converting is done I am setting new altitude / z values for each point via the setAltitude function. I saw that this function doesn't call the updateDimension function like setZ function would do. When I use the setZ function everything works fine. So I changed the setAltitude function to call the internal setZ function and made this logical change to setLatitude and setLongitude as well.

I hope I have done everything right because this is my first pull request.
Please let me know if I made any mistakes.

Fixed the issue that setAltitude didn't update the points dimension.
Updated Changelog according to fix for not updating points dimension.
Copy link
Member

@saibotk saibotk left a comment

Choose a reason for hiding this comment

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

Good catch!
Don't worry this looks very fine! Thank you for making the effort to contribute!

@saibotk
Copy link
Member

saibotk commented Jul 4, 2024

Can you fix the linting errors?
Otherwise i can do so tomorrow and merge it :)

@tmgreensolutions
Copy link
Contributor Author

Thank you for your quick response. :)
I fixed the linting errors.

@saibotk saibotk enabled auto-merge July 4, 2024 09:56
@saibotk saibotk merged commit 750645e into clickbar:main Jul 4, 2024
35 checks passed
@tmgreensolutions tmgreensolutions deleted the patch-1 branch July 4, 2024 10:32
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