Farrukh Najmi wrote: > I would be grateful if geotools dev team or community members could > provide any partial responses to this message. > You see how the example sets up a configuration for the parser; and then uses it? Please do exactly the same steps for GML3; you can also look at the JUnit test cases for running examples.
We have been exploring exactly the same territory for some WPS work; so you are in good company (just shy about posting on the email list). You may also enjoy the background reading on this topic - the XML Developers Guide is listed under advanced topics near the end of the user guide. There is an example in demo/example which I see you found. This example was for my FOSS4G workshop last year. The reason you are not finding a specific example is that all DataStores work the same; only changing the connection parameters. Many of the examples use a shapefile; but that is only because it is easy for people to run... The JTS-1.9.1-SNAPSHOT was generated by me and deployed to lists.refractions.net/m2; Martin has stopped synchronizing with this repository since we were having trouble with our webserver. The jar includes a patch allowing you to interrupt a buffer operation; but I have less and less confidence Martin will ever apply the patch :-( Try switching to lists.refractions.net/m2 and build again... Cheers, Jody > Thanks. > > Farrukh Najmi wrote: > >> 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? >>> >>> >>> >> >> > > > ------------------------------------------------------------------------- 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
