I am trying to export a JTS object to a KML file. I found here that this could be done using the Encoder
class, however I can't seem to find the jar file that contains the given class.
I am using maven, adding a repository is not an option, I must have all the jars used in the company repository so I would like to install the specific jar as a maven artifact manually.
I looked on the Geotools repository, in org/geotools/xml/9.3/gt-xml
and in org/geotools/xml/9.3/gt-xsd-kml
but I didn't find it.
Please help me.
I finally found it. The class is in gt-xsd-core.jar
. The required maven dependency is
<dependency>
<groupId>org.geotools.xsd</groupId>
<artifactId>gt-xsd-core</artifactId>
<version>9.3</version>
</dependency>
I also needed the KMLConfiguration
class, which I found in gt-xsd-kml.jar
. The required dependency is
<dependency>
<groupId>org.geotools.xsd</groupId>
<artifactId>gt-xsd-kml</artifactId>
<version>9.3</version>
</dependency>