I was potentially misled into believing that geotools did not have GML 3 parsing encoding support due to this page only mentioning GML 2:
<http://docs.codehaus.org/display/GEOTDOC/GML+XML+Support> Looking into the latest trunk bits I see org.geotools.gml3 package which seems to have GML 3 parsing and encoding support. How stable and complete is this implementation? Also where can I find the simplest example for reading/writing a FeatureCollection from/to a PostgreSQL database with postgis extensions. Is this the best example? ./trunk/gt/demo/example/src/main/java/org/geotools/demo/PostGIS2Example.java I was unable to build above in the demo module because of errors below. If above is not the best example then where can I find a working example? Lastly, should I be using 2.5-M2 or 2.5-SNAPSHOT? I do not see the latter in the maven repo at: http://maven.geotools.fr/repository Thanks for your help. Following is the build error I got when building demo module... 1) com.vividsolutions:jts:jar:1.9.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.vividsolutions -DartifactId=jts \ -Dversion=1.9.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.vividsolutions -DartifactId=jts \ -Dversion=1.9.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.geotools.demo:gt-example:jar:2.5-SNAPSHOT 2) org.geotools:gt-main:jar:2.5-SNAPSHOT 3) com.vividsolutions:jts:jar:1.9.1-SNAPSHOT 2) org.swinglabs:swingx:jar:0.8-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.swinglabs -DartifactId=swingx \ -Dversion=0.8-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.swinglabs -DartifactId=swingx \ -Dversion=0.8-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.geotools.demo:gt-example:jar:2.5-SNAPSHOT 2) org.geotools:gt-widgets-swing-pending:jar:2.5-SNAPSHOT 3) org.swinglabs:swingx:jar:0.8-SNAPSHO Farrukh Najmi wrote: > I am looking for a way to marshal JTS geometry classes (e.g. Envelope) > to GML and unmarshal GML documents into JTS geometry classes. Can any > one advice what is the best way to do this. > > Please note that I am new to geotools and I apologize if this is an > obvious question. > > An old archives message seems relevant: > > <http://www.nabble.com/Feature-to-GML-td11432346.html#a11432346> > > > However I was not sure if the response is still current. Are there are > clear examples? > -- Regards, Farrukh Najmi ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
