|
From: Gerson G. <ger...@gm...> - 2011-11-28 05:27:30
|
Hi, I've been playing with H2 DB so I could use it on the tests I've been writing for our system. I found that hatbox 1.0.b7 which is packaged with gt-jdbc-h2 (8.0-M1) module made my tests throw a "java.lang.AbstractMethodError: net.sourceforge.hatbox.jts.InsertTrigger.close()V" exception. I updated the version of hatbox in my dependency listing and excluded the one that came with gt-jdbc-h2 and that made it work. Now the problem is, geotools doesn't seem to integrate well with H2 DB. I have about 3 entries in my table all of them being point geometries. Calling getBounds on the featureSource gives me back "ReferenceEnvelope[0.0 : -1:0, 0.0 : -1.0]" which is wrong because it should be returning 138, 151 38, -36. I called getCoordinateReferenceSystem() on the FeatureType object and it returned null instead of "EPSG:4283". Is this a gt-jdbc-h2 bug or are the capabilities I'm after, not yet implemented? Thanks, Gerson |