Fork me on GitHub
#sql
<
2020-07-19
>
maxp14:07:39

Anyone use PostGIS with next.jdbc? How to load geometries as objects, but not as plain strings?

dcj19:07:29

I totally want to do this also!

dcj19:07:47

Yes I use PostGIS with next.jdbc, but I am using strings :-(

dcj19:07:18

So, I found https://github.com/atsman/clj-postgresql#postgis-types awhile back, not sure if this is the kind of thing you are looking for, if so, it should be straightforward to port to next.jdbc (I have already ported most of the rest of this library....) One thing I still do not grok is what datatype(s) are used on the Java/Clojure side .... https://github.com/atsman/clj-postgresql/blob/master/src/clj_postgresql/spatial.clj