Skip to content

Commit

Permalink
Update readme [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
teeparham committed Sep 16, 2015
1 parent 4053149 commit 08efbf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -298,7 +298,7 @@ You can configure the adapter to use a particular factory (i.e. a
particular combination of settings) for data associated with each type in
the database.

Here is an example:
Here's an example using a Geos default factory:

```ruby
RGeo::ActiveRecord::SpatialFactoryStore.instance.tap do |config|
Expand All @@ -310,6 +310,10 @@ RGeo::ActiveRecord::SpatialFactoryStore.instance.tap do |config|
end
```

The default spatial factory for geographic columns is `RGeo::Geographic.spherical_factory`.
The default spatial factory for cartesian columns is `RGeo::Cartesian.preferred_factory`.
You do not need to configure the `SpatialFactoryStore` if these defaults are ok.

For more explanation of `SpatialFactoryStore`, see [the rgeo-activerecord README] (https://github.com/rgeo/rgeo-activerecord#spatial-factories-for-columns)

## Working With Spatial Data
Expand Down

0 comments on commit 08efbf3

Please sign in to comment.