Upgrade to JTS 1.15
- Contact: jodygarnett
- Tracker: https://osgeo-org.atlassian.net/browse/GEOT-5954
- TLDR: Coordinate upgrade to JTS 1.15 which changes package and license
- Link to in progress details Google Doc.
We would like to upgrade to the current version of JTS!
JTS 1.15 has migrated to LocationTech:
- the package has changed to org.locationtech.jts
- the license has changed to our choice of BSD or EPL, this proposal recommends we go with BSD
The project now has official releases at maven central (we are not sure who uploaded prior releases):
- org.locationtech.jts.jts-core-1.15.1.jar
- org.locationtech.jts.jts-io-common-1.15.1.jar
References:
- JTS Topology Suite (LocationTech)
- JTS 1.15.0 (GitHub)
- JTS Migration Guide (GitHub)
GeoTools does not exist in isolation, as part of the FOSS4GNA code sprint Jim short listed a number of community projects which need to update in a coordinated fashion:
-
- https://osgeo-org.atlassian.net/browse/GEOT-5954
- PR works on Mac, windows build fails on gt-svg DrawTest
- PR #1944
- ✅ done!
-
-
initial failure
Failed tests: testGetFeatureContent(org.geoserver.test.Gsml32BoreholeIntervalWfsTest): expected:<[#borehole.shape.GA.17322]> but was:<[]>
-
Failure was a regression in clone method, resolved with release of jts-1.15.1
-
✅ PR #2945
-
- https://github.com/GeoWebCache/geowebcache/issues/652
- PR works on mac, windows build fails on arcgis server tile cache support
- PR #663
-
- https://github.com/geosolutions-it/jai-ext/issues/182
- upgraded to JTS 1.15.0
- removed use of ExtendedCoordinate as unnecessary
- ✅ PR #19ht
-
- long term functionality is moving to JAI-EXT above
- PR #234
- ✅ jody merged, James is deploying to maven central
-
- PR #28 upgrading to jts - merged!
- PR [#29](https://github.com/jdeolive/geodb/pull/29] to use as a 0.9 tag
- Deployed to repo.boundlessgeo.com while we wait for the above
- ✅ ready!
-
- Issue requesting update: https://sourceforge.net/p/hatbox/bugs/5/
- Diff attached to issue 5 above, available here https://github.com/jodygarnett/hatbox
- Deployed net.sourceforge.hatbox-1.0-b10 to repo.boundlessgeo.com while we wait
- ✅ ready
⚠️ although we would like to see the diff applied to svn above
-
- PR to update to JTS 1.15.0 has been merged.
- Version 1.3.1 is being released [here|https://github.com/ElectronicChartCentre/ecc-mvn-repo/tree/master/releases/no/ecc/vectortile/java-vector-tile/1.3.1]
- Published to Boundless Repo (done)
- ✅ ready
-
Provide update instructions in GeoTools user guide
Choose one of:
- Under Discussion
- In Progress
- Completed
- Rejected,
- Deferred
Voting:
- Andrea Aime: +1
- Ben Caradoc-Davies: +1
- Ian Turton: +1
- Jody Garnett: +1
- Simone Giannecchini: +0
- Follow the migration guide to bulk search and replace pom.xml and java references
git grep -l com.vividsolutions | grep pom.xml | xargs sed -i "s/com.vividsolutions/org.locationtech.jts/g"
git grep -l com.vividsolutions | xargs sed -i "s/com.vividsolutions/org.locationtech/g"
-
Run code formatter to fix order of imports
-
Update User Guide examples? They should be captured by the sed command above ...
-
Make a note in the geotools upgrade.rst instructions
Before: com.vividsolutions jts-core 1.14.0
After: org.locationtech.jts jts-core ${jts.version}
(With ${jts.version} >= 1.15.0.)
Before:
import com.vividsolutions.jts.*;
After:
import org.locationtech.jts.*;