Here is an example of parsing a schema from the docs: 
- http://docs.geotools.org/latest/userguide/library/xml/geometry.html#id1

GML gml = new GML(Version.WFS1_0); gml.setCoordinateReferenceSystem( 
DefaultGeographicCRS.WGS84 ); Name typeName = new 
NameImpl("http://www.openplans.org/topp";, "states"); SimpleFeatureType 
featureType = gml.decodeSimpleFeatureType(schemaLocation, typeName ); 

-- 
Jody Garnett


On Thursday, 30 August 2012 at 2:12 AM, Jody Garnett wrote:

> Utility class was creatively called "GML". It also supports parsing GML data 
> without a schema.
> 
> -- 
> Jody Garnett
> 
> 
> On Wednesday, 29 August 2012 at 9:02 PM, Andrea Aime wrote:
> 
> > Hi,
> > wondering, do we have any utility around that builds a GeoTools FeatureType
> > based on a XSD schema and the name of the xsd type to use as the origin?
> > 
> > Cheers
> > Andrea
> > 
> > -- 
> > ==
> > Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
> > information.
> > ==
> > 
> > Ing. Andrea Aime 
> > @geowolf
> > Technical Lead
> > 
> > GeoSolutions S.A.S.
> > Via Poggio alle Viti 1187
> > 55054  Massarosa (LU)
> > Italy
> > phone: +39 0584 962313
> > fax:   +39 0584 962313
> > mob:   +39  339 8844549
> > 
> > http://www.geo-solutions.it
> > http://twitter.com/geosolutions_it
> > 
> > -------------------------------------------------------
> > ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and 
> > threat landscape has changed and how IT managers can respond. Discussions 
> > will include endpoint security, mobile security and the latest in malware 
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > 
> > _______________________________________________
> > GeoTools-Devel mailing list
> > [email protected] 
> > (mailto:[email protected])
> > https://lists.sourceforge.net/lists/listinfo/geotools-devel
> > 
> > 
> > 
> 
> 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to