Factual / geo

Clojure library for working with geohashes, polygons, and other world geometry
Eclipse Public License 1.0
301 stars 17 forks source link

bbox-geom provides no SRID #19

Closed chen-factual closed 6 years ago

chen-factual commented 6 years ago
=> (require '[geo.geohash :as gh] '[geo.spatial :as sp])
nil
=> (sp/relate (gh/geohash "bcd") (gh/geohash "bcde"))
:contains
=> (sp/relate (gh/geohash "bcd") (gh/bbox-geom (gh/geohash "bcde")))

AssertionError Assert failed: Geometry must have a valid SRID to be transformed
(not= 0 geom-srid)  geo.jts/transform-geom (jts.clj:231)