Closed jwgmeligmeyling closed 9 years ago
Hi. Your project looks cool!
My first guess whenever I see "function x not found" is that perhaps Geodb has not been initialized via the GeoDb.init() static method. Assuming that is not the case here my second guess would perhaps be a parameter mismatch. In the prepared statement above do you have any more info about how the second argument of ST_DISTANCE is being passed in? Is it using one of PreparedStatement.setBytes() or PreparedStatement.setBinaryStream() ?
Hi!
I think GeoDb.init() is called somewhere under the hood, but I'm not sure where :wink: However, with these pointers I managed to find out that the problem was that I deployed a wrong jar to my Maven repository for Hatbox, and some classes could not be found. It seems everything now works!
Great! Good luck with the project!
For Moodcat (a study project) I use Geodb to test our spacial queries (Hibernate, QueryDSL) against H2 (production runs under Postgres). I currently experience a query that runs on Postgres, but fails in H2 / Geodb. I have no idea if this is due to a configuration mistake or a bug / unimplemented feature in Geodb.
It seems that ST_DISTANCE can not be found at the point where the statement is prepared. Below I have attached the stacktraces, which also includes the prepared statement.
Thanks for your effort on this project!