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
Post a Comment