From 3141736b88780d82922e15ca1a8cd8b707342bfd Mon Sep 17 00:00:00 2001 From: Marcos Piccinini Date: Mon, 20 Sep 2010 18:20:51 -0300 Subject: [PATCH] more readme --- README.rdoc | 39 +++++++++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/README.rdoc b/README.rdoc index 9ff9c4c..5bcd108 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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 @@ -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 @@ -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,