Adds support for MySQL Spatial data types.

git-svn-id: http://georuby.rubyforge.org/svn/PostGISAdapter/trunk/mysql_spatial_adapter@6 7a115c08-5c0b-0410-86fa-965754e9f858
Renamed the directory containing the post_gis_adapter and mysql_spatial_adapter to SpatialAdapter

git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/mysql_spatial_adapter@8 7a115c08-5c0b-0410-86fa-965754e9f858
Updated the installation in the README files to reflect the change of name of the plugin

git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/mysql_spatial_adapter@9 7a115c08-5c0b-0410-86fa-965754e9f858
Changed the migration interface

git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/mysql_spatial_adapter@14 7a115c08-5c0b-0410-86fa-965754e9f858
Changed where needed references to the new GeoRuby API
Added support for database to ruby schema and back : addition to the MySqlConnector of a options_for(table) method which returns a string indicating an engine. Modification of table and indexes method : table now makes use of option_for if present (right now only on MySqlConnector) to add options ; indexes can recognize spatial index and add the :spatial=> true option to the index.
Correction of a bug on add_index where the name of the spatial index was not set correctly



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/mysql_spatial_adapter@18 7a115c08-5c0b-0410-86fa-965754e9f858
Merged the 2 adapters into one : The correct one is loaded depending on the connection type
Modification of mysql_spatial_adapter and post_gis_adapter to extract common parts, put in spatia_adapter_common
NOT MUCH TESTED : post_gis_adapter is probably broken but it is getting late so...




git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/mysql_spatial_adapter@20 7a115c08-5c0b-0410-86fa-965754e9f858
Adding the spatial_adapter_common.rb file, which groups functionalities found in both spatial adapters 



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/mysql_spatial_adapter@21 7a115c08-5c0b-0410-86fa-965754e9f858
Finishing to merge the 2 adapters together : renaming the folder to spatial_adapter and deleting the post_gis_adapter folder



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@22 7a115c08-5c0b-0410-86fa-965754e9f858
Corrected a lot of bugs, related to migrations : now it is possible to dump and load without loss of information
Modified the string_to_geometry so it uses Geometry.from_hex_ewkb (method name changed in GeoRuby)



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@26 7a115c08-5c0b-0410-86fa-965754e9f858
Adding begining of tests. Covers only mysql for now. Will add PostGIS tests tomorrow.



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@29 7a115c08-5c0b-0410-86fa-965754e9f858
Addition of unit tests for MySql and PostGIS. They cover data access, migrations and schema dumping.
Modification of the README to reflect the changes in the plugin.
Correction of a bug in the simplification of geometric types, which caused a problem in dumpings for multi_* types.





git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@30 7a115c08-5c0b-0410-86fa-965754e9f858
Addition of precisions in the README page.



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@32 7a115c08-5c0b-0410-86fa-965754e9f858
Addition of a find_by method for geometric methods, which chooses the bounding box intersecting operator instead of the Rails default '='. Also, you can pass an array representing the corners of a bounding box, instead of another geometry.
Update of the README to include an example
Addition of unit tests for this new functionality



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@34 7a115c08-5c0b-0410-86fa-965754e9f858
Changing @columns_hash to the method ActiveRecord::Base columns_hash (which generates @columns_hash if needed)
Modification of some comments



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@35 7a115c08-5c0b-0410-86fa-965754e9f858
Addition of a to_yaml method to GeoRuby::SimpleFeatures::Geometry, that can be used when defining fixtures with geometries. The body of the method is different in each adapter.



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@36 7a115c08-5c0b-0410-86fa-965754e9f858
Adding documentation for to_yaml



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@37 7a115c08-5c0b-0410-86fa-965754e9f858
Adding the common requirement for postgis unit tests. Had forgotten it...



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@38 7a115c08-5c0b-0410-86fa-965754e9f858
Corrected a vicious bug in the PostGIS adapter when a column had the name of a postgresql keyword. The column name was not parsed correctly in some situtations where it appeared surround by double quotes. Bug reported by Thomer M. Gil. Added some tests for it.
Changed the require 'acitve_record' to a require_gem version in the unit tests. So they work even if the rubyopt env var is not set to rubygems.



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@39 7a115c08-5c0b-0410-86fa-965754e9f858
Changed the name of the to_yaml method to to_fixture_format, since it conflicted with the use of the to_yaml method from the YAML lib. ar_fixture can now be used to dump data to fixtures.



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@41 7a115c08-5c0b-0410-86fa-965754e9f858
Corrected a problem in remove_column in the postgis adapter



git-svn-id: http://georuby.rubyforge.org/svn/SpatialAdapter/trunk/spatial_adapter@45 7a115c08-5c0b-0410-86fa-965754e9f858