2016-09-21 1 views
1

Ich versuche, KML-Dateien in geoJson-Datei zu konvertieren, indem Sie Convert Kml with multiple features to Geojson folgen. Allerdings kann ich nicht unter Jars als Maven Abhängigkeiten, die unter Klassen enthält. KMLConfiguration FeatureJSON.Konvertieren von KML-Dateien in geoJson in Java

unten ist mein pom.xml:

http://maven.apache.org/maven-v4_0_0.xsd "> 4.0.0 com.test.data Converter 0.0.1-SNAPSHOT Urform - Converter http://maven.apache.org

<dependencies> 
    <!-- https://mvnrepository.com/artifact/pull-parser/pull-parser --> 
    <dependency> 
     <groupId>pull-parser</groupId> 
     <artifactId>pull-parser</artifactId> 
     <version>2.1.10</version> 
    </dependency> 
    <dependency> 
     <groupId>org.geotools.xsd</groupId> 
     <artifactId>gt-xsd-core</artifactId> 
     <version>9.3</version> 
    </dependency> 
    <!-- https://mvnrepository.com/artifact/org.owasp.encoder/encoder --> 
    <dependency> 
     <groupId>org.owasp.encoder</groupId> 
     <artifactId>encoder</artifactId> 
     <version>1.1.1</version> 
    </dependency> 
    <!-- https://mvnrepository.com/artifact/commons-configuration/commons-configuration --> 
    <dependency> 
     <groupId>commons-configuration</groupId> 
     <artifactId>commons-configuration</artifactId> 
     <version>1.6</version> 
    </dependency> 
    <dependency> 
     <groupId>org.opengis</groupId> 
     <artifactId>geoapi</artifactId> 
     <version>3.0.0</version> 
    </dependency> 

</dependencies> 
<repositories> 
    <repository> 
     <id>maven2-repository.dev.java.net</id> 
     <name>Java.net repository</name> 
     <url>http://download.java.net/maven/2</url> 
    </repository> 
    <repository> 
     <id>osgeo</id> 
     <name>Open Source Geospatial Foundation Repository</name> 
     <url>http://download.osgeo.org/webdav/geotools/</url> 
    </repository> 
    <repository> <!--Add the snapshot repository here --> 
     <snapshots> 
      <enabled>true</enabled> 
     </snapshots> 
     <id>opengeo</id> 
     <name>OpenGeo Maven Repository</name> 
     <url>http://repo.opengeo.org</url> 
    </repository> 
    <repository> 
     <snapshots> 
      <enabled>true</enabled> 
     </snapshots> 
     <id>boundless</id> 
     <name>Boundless Maven Repository</name> 
     <url>http://repo.boundlessgeo.com/main</url> 
    </repository> 
</repositories> 

Antwort

0

ich wurde im Anschluss an diese Führung zu und verwaltet maven deps aussortieren . Hier ist meine Abhängigkeiten:

<dependency> 
    <groupId>org.geotools</groupId> 
    <artifactId>gt-main</artifactId> 
    <version>${geotools.version}</version> 
</dependency> 
<dependency> 
    <groupId>org.geotools.xsd</groupId> 
    <artifactId>gt-xsd-core</artifactId> 
    <version>${geotools.version}</version> 
</dependency> 
<dependency> 
    <groupId>org.geotools.xsd</groupId> 
    <artifactId>gt-xsd-kml</artifactId> 
    <version>${geotools.version}</version> 
</dependency> 
<dependency> 
    <groupId>org.geotools</groupId> 
    <artifactId>gt-geojson</artifactId> 
    <version>${geotools.version}</version> 
</dependency> 

mit Repository

<repository> 
    <id>boundlessgeo.com</id> 
    <url>http://repo.boundlessgeo.com/main/</url> 
</repository> 
<repository> 
    <id>download.osgeo.org</id> 
    <url>http://download.osgeo.org/webdav/geotools/</url> 
</repository> 

und Eigentum

<geotools.version>17.2</geotools.version> 

Sorry für späte Antwort (weniger als ein Jahr BTW: D).

Ich hoffe, es hilft.