Jody,

> The ability is no longer packaged up as a "DataStore" by the GeoTools
> library we use. It has actually improved support (for GML3 and so on as
> when talking to a WFS) but the number of problems with people using GML
> files has grown over time (as many GML files do not reference a schema
> required for parsing). 
> 
> If you are interested I would recommend using the GML parsing code here;
> and load the GML data into a temporary layer in uDig.
> - http://docs.geotools.org/latest/userguide/library/xml/geometry.html
> 
> 1. Make an Import Wizard
> 2. There is code there to parse GML into a feature collection:
> 
> GML gml = new GML(Version.WFS1_0);
> SimpleFeatureCollection featureCollection = gml.decodeFeatureCollection(in);
> 
> 3. Create a temporary layer in uDig
> 
> IService tmp = catalog.createTemporaryResource(
> featureCollection.getFeatureType() );
> FeatureStore store = tmp.resolve( FeatureStore.class, monitor );
> store.addFeatures( featureCollection );
> 
> 4. The user can then add this to the map; or save out etc...

I see. so basically I'd have to extend uDig using the available GML code
to support AIXM. let me look into it..


Akos

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to