Open jodygarnett opened 6 years ago
Looking at master it appears that this issue was fixed with the introduction of:
We will need to reimplement copyInternal for any additional Geometry subclasses in client code.
Sounds like we might need to document this in the migration/upgrade guides? Are there any code changes to JTS?
Ah, we should add some unit tests... I need to get some more coffee...
This was fixed by https://github.com/locationtech/jts/pull/284 (in master, as @jodygarnett says. So is still a bug in 1.15 release)
As part of upgrading GeoTools to use JTS 1.15.0 we have noticed a regression around the use of clone (now deprecated in favour of the new copy() method).
For a specific implementation clone is implemented as a call to copy():
Where a specific implementation copies the data structure, but not the SRID and userData:
As a workaround client code can: