문제

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top