[Georuby-devel] Georuby 0.0.1 + new version of Spatial Adapter

Guilhem Vellut guilhem.vellut at gmail.com
Mon May 1 10:49:42 EDT 2006


Hello,

This post is to announce the release of a new version of GeoRuby, as well as
updates to the spatial adapter for Rails.

Georuby 0.1.1:

Here is the list of changes:
- Addition of support for M and Z dimension in the data types, as well as in
the EWKB and EWKT parsers.
- When creating a geometry, the presence of a Z or M dimension must be
indicated. By default, the geometry is created in 2D and with a SRID of -1.
- Suppression of as_binary, as_hex_binary and as_text. They have been
replaced with as_ewkb, as_wkb, as_hex_ewkb, as_hex_wkb, as_ewkt and as_wkt.
- Suppression of the static creation methods from_raw_point_sequence (for
some geometric types) and from_raw_point_sequences (for other), to build a
geometry from a list of point coordinates. They have been replaced by a
from_coordinates for all types.
- The static geometry construction method from_hexewkb has been replaced
with from_hex_ewkb.

GeoRuby documentation is available online:
http://thepochisuperstarmegashow.com/ProjectsDoc/georuby-doc/index.html 

Here is a list of possible improvements for the next version :
- Rewriting of the WKT parser to make it clearer
- Any feature you would like to see?


Spatial Adapter 0.1.1:

The adapter for Rails has also been updated. The previously separate plugins
for MySql and PostGIS have been merged into one, called "Spatial Adapter".
Here are the changes:
- The PostGIS adapter and the MySql Spatial adapter have been merged into
one plugin. The correct file to load is determined using the type of
connection defined in the environment.
- Geometric columns can now be dumped just like other base data types. This
means you can use the ruby schema mode, even if you use the plugin.
- Support of M dimensions in migrations. The :dimension key in the column
definition has disappeared and has been replaced by :with_z and :with_m.
- Addition of unit tests. At the plugin root, Run "rake test:mysql" to run
the mysql tests and "rake test:postgis" for the postgis ones. You will need
to configure your connection in "test/db/database_mysql.yml" and
"test/db/database_postgis.yml".

Documentation for the adapter is available online: 
http://thepochisuperstarmegashow.com/ProjectsDoc/spatialadapter-doc/index.ht
ml 


Here is a list of possible improvements for the next version:
- Automatic generation of spatial queries for the geometric columns (in the
spirit of the Rails find_by_... methods)
- Support of other geometric datatype libraries in addition to GeoRuby (like
Ruby/GEOS)
- Proposals?


guilhem



More information about the Georuby-devel mailing list