Open martinthurn opened 6 years ago
It's in the io/common module. You should be able to find jts-io-common-1.15.0-SNAPSHOT.jar
in modules\io\common\target\
.
Is there anything that could be added to the USING doc to make this clearer?
Maybe I'm a newb, but I don't see the target directory you refer to. Can you add to the User Guide the exact steps to acquire the io-common Jar file? I added the following to my POM but mvn install
is not able to download it:
`
<artifactId>jts-io-common</artifactId>
<version>1.15.0-SNAPSHOT</version>
</dependency>
` Downloading: http://download.osgeo.org/webdav/geotools/org/locationtech/jts/jts-io-common/1.15.0-SNAPSHOT/maven-metadata.xml Downloading: http://download.osgeo.org/webdav/geotools/org/locationtech/jts/jts-io-common/1.15.0-SNAPSHOT/jts-io-common-1.15.0-SNAPSHOT.pom [WARNING] The POM for org.locationtech.jts:jts-io-common:jar:1.15.0-SNAPSHOT is missing, no dependency information available Downloading: http://download.osgeo.org/webdav/geotools/org/locationtech/jts/jts-io-common/1.15.0-SNAPSHOT/jts-io-common-1.15.0-SNAPSHOT.jar
Is the problem that the osgeo Maven repo does not have this jar in it? That's an issue for osgeo, I think.
Perhaps @jodygarnett has an idea on this?
When was GeoJson writer added? Checking the versions of JTS available in the osgeo repo I do not see anything recent:
We recently upgraded geotools to use 1.14.0 - but we are getting that from maven central.
It was added in 1.14. But the module names have changed in 1.15.
@martinthurn Might be a bit like to the party here, but I think the issue is your dependency's groupId.
Instead of:
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-io-common</artifactId>
<version>1.15.0-SNAPSHOT</version>
</dependency>
it should be this (with the ".io" added on the end):
<dependency>
<groupId>org.locationtech.jts.io</groupId>
<artifactId>jts-io-common</artifactId>
<version>1.15.0-SNAPSHOT</version>
</dependency>
Where do I get GeoJsonWriter, as documented on this page:
https://locationtech.github.io/jts/javadoc/index.html?org/locationtech/jts/io/geojson/GeoJsonWriter.html ? I added the snippets to my pom and it downloaded the 1.15.0-SNAPSHOT but that class is not present.