|
From: Peter B. <pet...@ya...> - 2018-10-13 15:57:15
|
Hello, I am dusting off some old code that relies on GeoTools to calculate distances using the org.geotools.geometry.jts.JTS class. Example: DefaultGeographicCRS crs = DefaultGeographicCRS.WGS84; distance = JTS.orthodromicDistance( coord, prevCoord, crs ); I am building using Java 10. I tried to use some old jars from GeoTools 14.x but I got a runtime exception: "java.lang.IllegalArgumentException: org.opengis.referencing.datum.DatumFactory is not an ImageIO SPI class" After a quick search, it looks like I need to upgrade GeoTools so I downloaded the latest and greatest bundle from SourceForge and added all the jars to my project. I quickly discovered that the bundle is missing a few dependencies so I started hunting them down and adding them one-by-one. So far, I have added the following: jts-core-1.16.0si-units-java8-0.9uom-se-1.0.9uom-common-1.0.2unit-api-1.0 However, I am now stuck with the following error:java.lang.NoClassDefFoundError: si/uom/quantity/MagnetomotiveForce Any suggestions as to where I can find this jar? Or the source code for the implementation of the MagnetomotiveForce interface? Also, would it be possible to include all the requisite jars in future releases? Thanks in advance,Peter |