Skip to content

Commit

Permalink
more readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nofxx committed Sep 20, 2010
1 parent 0b6b1e3 commit 3141736
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions README.rdoc
Expand Up @@ -8,6 +8,7 @@ This fork adds handy methods to make geometrical calculations on postgis.
Based on http://georuby.rubyforge.org Spatial Adapter

RDocs - http://docs.github.com/nofxx/postgis_adapter
Postgis Online reference - http://postgis.refractions.net
Postgis Manual - http://postgis.refractions.net/documentation/manual-svn


Expand Down Expand Up @@ -37,16 +38,6 @@ If you are using Spatial Adapter, *remove it first*.
gem install postgis_adapter -v 0.7.8


====== PostGIS SQL Scripts
This is only for PostgreSQL databases:

Place the following scripts in a folder named 'spatial' under the 'db' folder; For example:
RAILS_ROOT/db/spatial/lwpostgis.sql
RAILS_ROOT/db/spatial/spatial_ref_sys

These will be used when creating the Test database when running the Rake Test tasks. These scripts should have been installed when the PostGIS libraries were installed. Online reference: http://postgis.refractions.net/


== How to Use

Geometric columns in your ActiveRecord models now appear just like
Expand Down Expand Up @@ -265,6 +256,34 @@ Types:
geometry_collection


=== PostGIS Helper Scripts


Helpers to create postgis template database. At time of writing,
postgis.sql and spatial_ref_sys.sql are used.


==== System wide


Find where your OS put those sql files and:

rake postgis:template path/to/sqls/folder


==== From project


Place the files in a folder named 'spatial' under the 'db' folder:

RAILS_ROOT/db/spatial/postgis.sql
RAILS_ROOT/db/spatial/spatial_ref_sys.sql

These will be used when creating the Test database when running the
Rake Test tasks. These scripts should have been installed when the
PostGIS libraries were installed.


=== Fixtures

If you use fixtures for your unit tests, at some point,
Expand Down

0 comments on commit 3141736

Please sign in to comment.