Hi Robert, GML3 is quite different from GML2. The changes on teh geometry elements that you noted are one of differences. The feature stuff is still pretty similar. And then there is a wack of more stuff that we don't really use.
So patching the GML2 parsing stuff is one alternative. However a full blown gml3 parser / encoder has been written on geotools 2.4.x and trunk. There are some docs here: http://docs.codehaus.org/display/GEOTDOC/GML+XML+Support The docs are a bit out of date, i apologize. But just use org.geotools.gml3.Configuration and the code is the same. You may want to give the new parser a try and see how it goes. Are you parsing straight gml? Or gml from a wfs? -Justin Robert Jacolin wrote: > Hello, > > currently I'm working on a project for a client where we need to work on > GML v3. > In this project, the data are stored in an eXist database. geoTools is > used to create indexes in the database by using GMLFilterDocument. > Currently, the indexes are created only for GML v2 file. > > To make geotools support GML 3, I patched the GMLFilterDocument to : > o support pos and posList coordinates (methods startElement, characters > and endElement) > > and patched the SubHandlerPolygon > o support LinearRing/exterior (for me exterior is the same meaning that > outerBoundary) > > But I don't know the difference between the two versions. Is the Version > 3 compatible with the version 2 ? It seems the v3 are _a lot of_ new > things and so I'm not sure to be exhaustive > > Do you think this patch is correct ? I'm not aware about GIS and > GeoTools, ... > Finally, are you interested by the patch ? > > Regards, > -- Justin Deoliveira The Open Planning Project http://topp.openplans.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
