| Sweet as.  Thanks Jody.  I will try this out.  ~  Tawan 
 
 On 14/06/2010, at 4:03 PM, Jody Garnett wrote: They should be able to; I am am just making the GML code easier to use in GeoTools; and may try to do KML in the same way. 
 New docs are here: 
 Code needed to import GML is: 
 GML gml = new GML(Version.WFS1_0);
SimpleFeatureCollection featureCollection = gml.decodeFeatureCollection(in); 
And to export GML: 
 GML encode = new GML(Version.WFS1_0);
encode.setNamespace("geotools", "http:);
encode.encode(out, featureCollection);
And the hard part is exporting the XSD file: 
 SimpleFeatureType TYPE = DataUtilities.createType("Location", "geom:Point,name:String");
GML encode = new GML(Version.GML2);
encode.setBaseURL(new URL("http:));
encode.encode(out, TYPE);
It is the last step that was missing from GeoTools; and I have added it to GeoTools 2.7 (which should be released in July). 
 Jody 
 On 14/06/2010, at 10:57 AM, Tawan Banchuen wrote: Thanks.  Glad to know that I did not do anything wrong.  It's just not supported for now.   Too bad GML and KML are not on the top of the list for our project, otherwise I would volunteer to do it.  If I have the luxury of teaching my students Java (teaching them Python at the moment), I will attempt to assign that as their project.  Not sure whether they can figure out though.  :-( Cheers, Tawan On 14/06/2010, at 12:39 PM, Jody Garnett wrote: In open source the near future is never safe; as projects run on volunteer effort. :-) There exists both GML and KML parsers in the library we use, GeoTools. But we have no volunteers scheduled to bring this functionality into uDig at this time.
 
 Sorry!  I would expect it to be about a weeks work; something that could be cut down a lot if there were people around able to test each day.  Doing an import and export wizard would also work and be only a couple of days.
 
 Jody
 
 On 14/06/2010, at 9:08 AM, Tawan Banchuen wrote:
 
 Hi Jody and Andrea,
 
 I am picking a open format to teach to my students how to compose a geospatial dataset.  I will ask them to visualize the result with uDig, so it has to be a format that uDig supports.  From the messages I have read, it seems that you guys are the authority on the issue of GML and KML support in uDig (and the rest of the issues most likely :-)).  
 
 According to this post, is it safe to say that uDig will not be supporting GML in the near future?
 
 http://jira.codehaus.org/browse/UDIG-1473
 
 Is KML support in uDig 1.2 RC3 yet?  Andrea, you talked about supporting KML last year:
 
 http://udig-devel.19327.n5.nabble.com/kml-import-export-td19384.html#a19384
 
 I just installed it, but I could not open the attached KML file, which is an example from Google.
 
 Thanks a lot guys,
 
 Regards,
 Tawan
 
 <KML_Samples.kml>
 
 
 |