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

Implement PointsList#copy() and JTSPoints#copy() #1353

Merged
merged 3 commits into from Aug 10, 2022

Conversation

dstenger
Copy link
Contributor

Interface org.deegree.geometry.primitive.Point was enhanced by copy() method.

Afterwards, PointReference and DefaultPoint were enhanced by implementations of this new method.

Finally, PointsList#copy() could be implemented.
JTSPoints#copy() was also implemented.

@dstenger dstenger added the enhancement enhancement or improvement label Jun 27, 2022
@tfr42 tfr42 added this to the 3.5 milestone Jun 28, 2022
Copy link
Member

@tfr42 tfr42 left a comment

Choose a reason for hiding this comment

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

Revisit the implementation blocks for clone() and copy() if they can be adapted.

@stephanr
Copy link
Member

During the TMC meeting the question came up if the introduction of copy() is useful while the existing API already uses clone(). (And copy() seems to come from a JTS interface in https://github.com/deegree/deegree3/blob/main/deegree-core/deegree-core-geometry/src/main/java/org/deegree/geometry/points/Points.java)

@stephanr stephanr merged commit c5b9a42 into deegree:main Aug 10, 2022
@lgoltz lgoltz deleted the implementPointListCopy-XPLANBOX-1020 branch December 8, 2022 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants