Hi Ziad, I'm forwarding your question to the list. It's best for you to post there, rather than contacting any of us directly, so that you get the benefit of the GeoTools hive mind :)
Please see my responses below. > I found some difficulties, when I test this example : PostGIS2Example.java > and specially I get this exception in the console: > Wizard completed with:Exception in thread "main" > java.lang.ArrayIndexOutOfBoundsException: 0 > at org.geotools.demo.PostGIS2Example.main(PostGIS2Example.java:53) Can you tell me what version of GeoTools you're using ? The line number in the error message doesn't seem to match the source code in GeoTools 2.6.x. > I think that I didn't fill some areatext, or I wrote something wrong. > All what I do, is I fill database areatext, user areatext and passwd > areatext. That should be fine (assuming that postgis is running on your local machine and listening to the default port number 5432). You don't need to fill in schema if your db is in the public schema. > And I confess that I didn't understand the meaning of those > areatext : > > namespace? > Namespaces can be used to organize your database and avoid conflicts between names of tables etc. I don't actually know much about postgis / postgresql so I'll defer to someone else to give a better explanation or leave you to google it. > after clicking on next > > wkb enabled? > loose bbox? > estimated extent? > > Please could you explain me the meaning of those aretexts. Have a look at this page in the GeoServer docs which defines these parameters in a bit more detail that the text on the wizard page... http://geoserver.org/display/GEOSDOC/PostGIS+DataStore I've just run PostGIS2Example and successfully connected to a database so I think the (not very helpful) error you're getting is probably from your inputs (assuming that your PostGIS server is running). You might like to try connecting to this public database to confirm that the example app is working... host: www.refractions.net port: 5432 database: demo-bc user: demo password: demo Michael ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
