Good evening Josh: The GML utility class was something I put together when trying sort out how to configure the different parsers. In practice it worked when it worked, and was good starting example when it did not.
Here it is in the maintenance release https://github.com/geotools/geotools/blob/20.x/modules/library/xml/src/main/java/org/geotools/GML.java Since this class has been removed (as I maintained) it should be removed from the docs. The docs ( http://docs.geotools.org/latest/userguide/library/xml/geometry.html) provided some examples of how to configure a encoder but do no have a GML3 example. The next step is to hunt down a test case and adapt. Here is one that has GML3 encoding ( https://github.com/geotools/geotools/blob/master/modules/extension/xsd/xsd-gml3/src/test/java/org/geotools/gml3/GML3EncodingTest.java ). If you would like to turn that into an example I will be happy to update the docs. — Jody On Mon, May 20, 2019 at 3:36 PM Parker, Josh <j...@alamon.com> wrote: > I have been using GeoTools to handle our GIS data and am trying to > implement writing SimpleFeatureCollections out to various file formats. > Right now I am trying to get GML 3.2 done but am struggling with it. > > The following code snippet from GeoTools documentation doesn't seem to > apply. > > GML encode = new GML(Version.GML3);encode.setNamespace("geotools", > "http://geotools.org");encode.encode(out, featureCollection); > > Did the GML utility class get removed or moved? Is there a better way to > encode a SimpleFeatureCollection to GML? > > > Thank You, > Josh Parker > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- -- Jody Garnett
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users