geokit / geokit-rails

Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.
MIT License
1.57k stars 245 forks source link

Support for postgis adapter #116

Open babasbot opened 7 years ago

babasbot commented 7 years ago

The activerecord-postgis-adapter provides access to features of the PostGIS geospatial database from ActiveRecord. It extends the standard postgresql adapter to provide support for the spatial data types and features added by the PostGIS extension.

When the postgis adapter is used with this gem it raises:

Geokit::ActsAsMappable::UnsupportedAdapter:
`postgis` is not a supported adapter.
babasbot commented 7 years ago

I just copied the lib/geokit-rails/adapters/postgis.rb to lib/geokit-rails/adapters/postgis.rb and it worked.