Farrukh Najmi wrote: > I am looking for a way to marshal JTS geometry classes (e.g. Envelope) > to GML and unmarshal GML documents into JTS geometry classes. Can any > one advice what is the best way to do this. > The user guide has the instructions here (let me rename the page so that is more obvious): - http://docs.codehaus.org/display/GEOTDOC/03+Using+Transformers+for+XML+Generation
The magic concept is that of an "Transformer" which is one of those nice interfaces provided to us by the XML geeks; it wanders over an object structure and issues SAX events; you can hook up an XML writer up to those as shown on the above page. Cheers, Jody ------------------------------------------------------------------------- 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-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
