From: Andrea A. <and...@ge...> - 2011-05-27 06:56:59
|
On Fri, May 27, 2011 at 4:34 AM, Gerson Galang <ger...@gm...> wrote: > Hi Ben, > > I had a go at 2.7.1 yesterday but it started complaining about the > parameter I'm trying to pass to the DataStoreFinder. I just get a null > value when I instantiate the DataStore. > > Map<String, Object> params = new HashMap<String, Object>(); > params.put(HOST.key, "myhost"); > params.put(DATABASE.key, "mydb"); > params.put(PORT.key, "5432"); > params.put(USER.key, "gis"); > params.put(PASSWD.key, "mypass"); > params.put(DBTYPE.key, "postgis"); > > dataStore = DataStoreFinder.getDataStore(params); > > Another weird thing I've noticed is that the CQL.toFilter doesn't throw > a CQLException anymore on 2.7.1. Even if the documentation states that > it throws a CQLException, Eclipse just complains about my try-catch > block not having any statement that throws a CQLException. My guess is that there is something odd going on in your setup, the class in the branch from which 2.7.1 was cut definitely still throws CQLException: http://svn.osgeo.org/geotools/branches/2.7.x/modules/library/cql/src/main/java/org/geotools/filter/text/cql2/CQL.java as well as the one in the tag backing that release: http://svn.osgeo.org/geotools/tags/2.7.1/modules/library/cql/src/main/java/org/geotools/filter/text/cql2/CQL.java Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- |