Skip to content

Commit bad76b6

Browse files
committed
Updated README to include has_m reference and other tweaks.
1 parent 202d135 commit bad76b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ RGeo::Geos.supported?
4646
If this is `false`, you may need to specify the GEOS directory while installing. Here's an example linking it to the CockroachDB GEOS binary.
4747

4848
```sh
49-
gem install rgeo -- --with-geos-dir=/path/to/cockroach-v20/lib/
49+
gem install rgeo -- --with-geos-dir=/path/to/cockroach/lib/
5050
```
5151

5252
### Working with RGeo
@@ -149,6 +149,8 @@ Following are the options understood by the adapter:
149149
constraint is of limited use for geography columns.
150150
- `:has_z` -- Specify that objects in this column include a Z coordinate.
151151
Default is false.
152+
- `:has_m` -- Specify that objects in this column include an M coordinate.
153+
Default is false.
152154

153155
To create a PostGIS spatial index, add `using: :gist` to your index:
154156

@@ -248,9 +250,7 @@ record.shape1 = p2 # shape1 uses a flat geos factory, so it
248250
record.save
249251
```
250252

251-
If, however, you attempt to set the value to the wrong type-- for example,
252-
setting a linestring attribute to a point value, you will get an exception
253-
from Postgres when you attempt to save the record.
253+
If you attempt to set the value to the wrong type, such as setting a linestring attribute to a point value, you will get an exception from the database when you attempt to save the record.
254254

255255
```rb
256256
record.path = p2 # This will appear to work, but...

0 commit comments

Comments
 (0)