xml - geotools : Could not find element declaration for -


i don't find solution of issue. try create kml file using geotools.

i 'm stuck :

<dependency>             <groupid>org.geotools.xsd</groupid>             <artifactid>xsd</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.xsd</groupid>             <artifactid>gt-xsd-core</artifactid>             <version>${geotools.version}</version>         </dependency> 

and java source code have common example :

final encoder lencoder = new encoder(new kmlconfiguration()); final fileoutputstream lfileoutputstream = new fileoutputstream(outputfile); lencoder.setindenting(true); lencoder.encode(featurecollection, kml.kml, lfileoutputstream); lfileoutputstream.close(); 

and have issue : "could not find element declaration for:{http://earth.google.com/kml/2.1}kml" , apparently don't have xml type library. 1 missing ? or maybe it's issue...

thank lot answer ! alban


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -