The Spatialite ActiveRecord Adapter extends the standard MySQL adapter to provide support for the MySQL spatial extensions, using the RGeo library to represent spatial data in Ruby. It provides:
- Extensions to the migration syntax for creating spatial columns and indexes
- Attributes using RGeo spatial data types
- Spatial queries
- Spatialite versions of some of the ActiveRecord rake tasks
IMPORTANT NOTE: This is a legacy adapter, and is not supported for versions of Rails beyond 3.1. This is because of bugs in the mysql gem. We recommend using the mysql2 gem instead, along with the activerecord-mysql2spatial-adapter
For more information:
- See the documentation
- Source code on Github
- Report issues here
- Questions? Ask on the RGeo mailing list