From: Roy B. <roy...@b3...> - 2010-11-15 08:24:52
|
Ok, thanks. I'll try that. Roy _____ From: Ben Caradoc-Davies [mailto:Ben...@cs...] To: Roy Braam [mailto:roy...@b3...] Cc: Jody Garnett [mailto:jod...@gm...], geo...@li... [mailto:geo...@li...] Sent: Mon, 15 Nov 2010 05:02:55 +0100 Subject: Re: [Geotools-gt2-users] GML 3.2 Everything you need should be in gt-xsd-gml3. GML 3.2 support is still very new. (Thanks, Justin!) Step through (for example): org.geotools.gml3.v3_2.bindings.PointTypeBindingTest (Note that the test will fail in Eclipse due to srsName encoding differences. See: http://jira.codehaus.org/browse/GEOT-3112 ) In short, create org.geotools.gml3.v3_2.GMLConfiguration() and pass it to Encoder.encode just like any other GML flavour. Kind regards, Ben. On 14/11/10 14:20, Jody Garnett wrote: > I believe there is a GML 3 configuration for the parser and encoder. > > I made a utility class to help people set up a configuration for the > different flavors of GML > (http://docs.codehaus.org/display/GEOTDOC/13+XML) - you can have a > look; or make use of the GTXML parser directly. > > There is one GML3 example on that page: > > URL url = TestData.getResource(this,"states.xml"); > InputStream in = url.openStream(); > > GML gml = new GML(Version.GML3); > SimpleFeatureIterator iter = gml.decodeFeatureIterator(in); > while( iter.hasNext() ){ > SimpleFeature feature = iter.next(); > ... > } > > Jody > > On Sat, Nov 13, 2010 at 1:43 AM, Roy Braam<roy...@b3...> wrote: >> List, >> >> How is the support of GML 3.2 in Geotools? What classes do you need for it? >> >> Roy >> >> ------------------------------------------------------------------------------ >> Centralized Desktop Delivery: Dell and VMware Reference Architecture >> Simplifying enterprise desktop deployment and management using >> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end >> client virtualization framework. Read more! >> http://p.sf.net/sfu/dell-eql-dev2dev >> _______________________________________________ >> Geotools-gt2-users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> >> > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Ben Caradoc-Davies <Ben...@cs...> Software Engineering Team Leader CSIRO Earth Science and Resource Engineering Australian Resources Research Centre |