Hi Gent,
Which version of GeoTools are you using? As you upgraded to a later
version of GeoTools, have you transitioned your code to use the new JTS
package names (org.locationtech)?
Assuming you are using GeoTools 20 or later, you will likely have to
change some of your code and/or libraries. If there's an open source
project involved, let me know and I might be able to help. For your own
code, the migration guide you linked to has two git grep/sed commands
which might help some.
Cheers,
Jim
On 4/29/19 7:46 AM, Gent Aliti wrote:
Recently our team is migrating to java>8.
I know GeoTools supports Java 11. Tried to run the project with java
11 and i am getting this compile error:
Error:(70, 71) java: incompatible types:
org.locationtech.jts.geom.Geometry cannot be converted to
com.vividsolutions.jts.geom.Geometry
After some research found out that I need to change all references to
Geometry, Polygon etc, from |com.vividsolutions.jts| to
|org.locationtech.jts| .
(source: https://github.com/locationtech/jts/blob/master/MIGRATION.md)
However, after changing these looks like there are some classes in
GeoTools that still expect |org.locationtech.jts| . Specifically:
org.geotools.geometry.jts.JTS::transform(Coordinate source, Coordinate
dest, MathTransform transform).
Does this means that GeoTools has not yet done JTS upgrade, or there
is there any replacement for this class?
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users