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.

 >> No exception of type CQLException can be thrown; an exception type 
must be a subclass of Throwable

I'm only using two dependencies from geotools..

<dependency>
<groupId>org.geotools.jdbc</groupId>
<artifactId>gt-jdbc-postgis</artifactId>
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>${geotools.version}</version>
</dependency>

I'm also using this repository..

<repository>
<id>geotools-repo</id>
<name>GeoTools Repository</name>
<url>http://download.osgeo.org/webdav/geotools</url>
</repository>

Regards,
Gerson


On 05/26/2011 04:05 PM, Ben Caradoc-Davies wrote:
> Thanks a lot, Gerson, that would be excellent.
>
> On 26/05/11 13:49, Gerson Galang wrote:
>> Hi Ben, Andrea,
>>
>> I'm using 2.7.0 taken from the maven repository at download.osgeo.org.
>> I've seen that you guys have 2.7.1 in there now, I'll switch to that,
>> revert the ownership of the geography view, and test it out for you.
>>
>> Cheers,
>> Gerson


------------------------------------------------------------------------------
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