-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Geometry.reverse() consistent (#513)
* Make Geometry.reverse() consistent * Add protected reverseInternal function to Geometry, implement in Point, LineString, LinearRing, Polygon and GeometryCollection * Remove abstract from Geometry.reverse function, implementation calls reverseInternal and copies Envelope and SRID values * To avoid breaking change make Geometry.reverse overrides return super.reverse() * Add unit test * Add @deprecated to Geometry.reverse() overrides * Fix ExtractLineByLocation to not use deprecated Geometry.reverse() overrides * Remove dead code * Fix unit test LengthIndexedLineTest.testExtractLineReverseMulti Note: The reversal of items in MultiLineString has been removed. relates to #305 Signed-off-by: Felix Obermaier <[email protected]>
- Loading branch information
1 parent
ee93e32
commit 709b739
Showing
11 changed files
with
366 additions
and
239 deletions.
There are no files selected for viewing
274 changes: 142 additions & 132 deletions
274
modules/core/src/main/java/org/locationtech/jts/geom/Geometry.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.