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);
--
Jody Garnett
On Wednesday, 27 March 2013 at 12:57 AM, Ákos Maróy wrote:
> Dear Jody,
>
> Thank you for the pointers.
>
> I looked at GMLParsingText.testParseFeatureCollection(), and other test
> cases you mentioned. I see how it creates a feature collection out of
> the XML data. but this is still insufficient to crete a Data Store, as
> one has to define FeatureType objects, and I see these are not generated
> from the XML Schema.
>
> is this something that inevitably one has to do manually? is there no
> mechanism that would basically just reflect the data structure defined
> by the XSD in this framework?
>
>
> Akos
------------------------------------------------------------------------------
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