On Fri, May 27, 2011 at 4:34 AM, Gerson Galang <[email protected]> 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

-------------------------------------------------------

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to