geokit / geokit-rails

Official Geokit plugin for Rails/ActiveRecord. Provides location-based goodness for your Rails app. Requires the Geokit gem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for postgis adapter

babasbot opened this issue · comments

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.

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