[Georuby-devel] Spatial adapter and PostgreSQL views

Guilhem Vellut guilhem.vellut at gmail.com
Fri Mar 21 04:56:01 EDT 2008


hello,
thanks for the patch. I will apply it as soon as possible.
guilhem

On Wed, Mar 19, 2008 at 5:35 PM, J Smith <jay at zoocasa.com> wrote:
>
>  Hello list.
>
>  I recently ran into a problem (which I guess is kind of both a Rails problem
>  as well as a spatial adapter problem) where I was unable to get the proper
>  geometry column information for a geometry field in a PostgreSQL view.
>
>  After hacking ActiveRecord's PostgreSQLAdapter to recognize views properly, I
>  ended up hacking at the PostgreSQLAdapter extensions in GeoRuby to grab the
>  geometry field information from the geometry_columns table rather than
>  pg_constraints. This of course required that I make an entry in the
>  geometry_columns table for my view, which may or may not be
>  considered "proper", but when all is said and done, it works.
>
>  I don't know if this is all that useful, but I figured I'd send along the
>  patch anyway.
>
>  Cheers, and thanks for GeoRuby, it's been quite useful on our little venture
>  here.
>
>  J
>
> _______________________________________________
>  Georuby-devel mailing list
>  Georuby-devel at rubyforge.org
>  http://rubyforge.org/mailman/listinfo/georuby-devel
>


More information about the Georuby-devel mailing list