Hi,
We are struggeling with KML support in GT 2.5. We got the parsing of GML
working and are now trying to write those GT features back as KML (using
the GTXML framework). Is there any possibility to get it working?

Please find attached our current experimental code.

Thanks for your help

Theodor

BTW: Why does the Parser (configured with GMLConfiguration and a WFS
getFeature result as input) return a HashMap and not a
FeatureCollection, as expected.

SNIPPET:
SimpleFeature sf = ...
org.geotools.xml.Configuration kmlconfiguration = new
org.geotools.kml.KMLConfiguration();
org.geotools.xml.Encoder encoder = new org.geotools.xml.Encoder(
kmlconfiguration );
encoder.encode(sf, KML.kml, System.out);

ITC, Enschede
Department of Geo Information Processing PO. Box 6 7500 AA  Enschede the
Netherlands 
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the 
addressee only. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or action in relation to the content 
of this information is strictly prohibited. If you have received this e-mail by 
mistake, please delete the message and any attachment and inform the sender by 
return e-mail. ITC accepts no liability for any error or omission in the 
message content or for damage of any kind that may arise as a result of e-mail 
transmission.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to