I'd like to write GML using Geotools. Unfortunately, I can't find documentation on a GML Writer (except for this one from 2006: http://docs.codehaus.org/display/GEOTOOLS/WFS+++GML+DataStore).
Could you point me at documentation/examples?
|
I'd like to write GML using Geotools. Unfortunately, I can't find documentation on a GML Writer (except for this one from 2006: http://docs.codehaus.org/display/GEOTOOLS/WFS+++GML+DataStore). Could you point me at documentation/examples? |
||||
|
|
|
I will be trying to migrate the geotools documentation to a different technology (other than wiki) so that the code examples do not go out of date. Update this is now done (I gathered things up so all the geometry examples are together):
Here is a complete example from that page:
Additional examples of how to use the 4 different GML parsing technologies is the test cases included with the source code.
The two GTXML technologies are basically a combination of the best part of the SAX parser with the ability to figure out which fragment of code (called a binding) to use to parse each element as it comes in (based on looking the element up in the schema). |
||||
|
|
You can also look at http://svn.osgeo.org/geotools/trunk/modules/library/xml/src/test/java/org/geotools/GMLTest.java to see how the tests do it. The key section seems to be:
Where collection is a featureCollection. |
|||
|
|
|
Try:
Documentation: |
|||||||
|