{"repo":"rgeo/activerecord-postgis-adapter","free":true,"listed":false,"github":"https://github.com/rgeo/activerecord-postgis-adapter","clone":"git clone https://github.com/rgeo/activerecord-postgis-adapter.git","description":"ActiveRecord connection adapter for PostGIS, based on postgresql and rgeo","language":"Ruby","stars":936,"topics":["ruby","activerecord","postgis","postgresql","rgeo","rails"],"license":null,"category":"databases-storage","readme_excerpt":"ActiveRecord PostGIS Adapter 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. It uses the RGeo library to represent spatial data in Ruby. Overview The adapter provides three basic capabilities: First, it provides spatial migrations . It extends the ActiveRecord migration syntax to support creating spatially-typed columns and spatial indexes. You can control the various PostGIS-provided attributes such as SRID, dimension, and geographic vs geometric math. Second, it recognizes spatial types and casts them properly to RGeo geometry objects. The adapter can configure these objects automatically based on the SRID and dimension in the database table, or you can tell it to convert the data to a different form. You can also set attribute data using WKT format. Third, it lets you include simple spatial data in queries. WKT format data and RGeo objects can be embedded in where clauses. Install The adapter requires PostgreSQL 9.0+ and PostGIS 2.4+. Installing PostGIS Here are common methods for installing PostGIS, but more detailed methods can be found on the installation guide. MacOS Ubuntu/Debian Windows PostGIS is likely available as an optional package via your Postgresql installer. If not, refer to the installation guide. Version compatibility Version ActiveRecord Ruby PostGIS Note --","default_branch":null,"files":null,"tree":[],"storefront":"/r/rgeo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rgeo/activerecord-postgis-adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}