JDBI Postgis JTS 包装器

问题描述

我正在尝试使用 PostGIS-JDBC-jtsparser(2.5.0 版)模块将 JTS java 对象作为 @sqlQuery 的参数注入,但我不知道怎么做。
我知道应该在我的 jdbi 配置中注入一个参数工厂,但是哪个?
如果这不是正确的方法,那么最好的方法是什么?

! org.jdbi.v3.core.statement.UnabletoCreateStatementException: No argument factory registered for 'polyGON ((-10 -10,-10 10,10 10,10 -10,-10 -10))' of qualified type org.locationtech.jts.geom.polygon [statement:"/* DataDao.dateHistogramAsIterable */ select st_geohash(mygeo,1) as geohash_0_key,count(mygeo) as geohash_0_count from myindex  where (st_coveredby(mygeo,:0))  group by rollup (geohash_0_key)  ",arguments:{positional:{},named:{0:polyGON ((-10 -10,-10 -10))},finder:[]}]
! at org.jdbi.v3.core.statement.ArgumentBinder.factoryNotFound(ArgumentBinder.java:174)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)