RGeo is a geospatial data library for Ruby.
I am trying to convert a "raw" PostGIS SQL query into a Rails ActiveRecord query. My goal is to convert …