On 27/03/13 00:00, Jody Garnett wrote: > I have helper methods in the GML class showing how to create a feature > type from the XSD files. > > * GML.decodeSimpleFeatureType( schemaLocation, typeName) > > (Internally that only has examples for WFS1_1 and WFS1_0). > > final QName featureName = new > QName(typeName.getNamespaceURI(), typeName.getLocalPart()); > > String namespaceURI = featureName.getNamespaceURI(); > String uri = schemaLocation.toExternalForm(); > Configuration wfsConfiguration = new > org.geotools.gml3.ApplicationSchemaConfiguration( > namespaceURI, uri); > > FeatureType parsed = > GTXML.parseFeatureType(wfsConfiguration, featureName, crs); > return DataUtilities.simple(parsed); > > thanks, this is a good start.
eventually I'll need to use complex types though, but I'll go step by step :) ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
