rgeo/activerecord-postgis-adapter

Support for 'multi' geometries

Closed this issue · 5 comments

Hi Tee,

This looks like a great tool, although it doesn't appear to handle things like multipolygons. Is that on the roadmap at all?

Thanks,
David

mjy commented

We've have a multi-polygon column using it, though maybe I'm missing
something.

On Wed, Jan 7, 2015 at 12:26 PM, djantzen notifications@github.com wrote:

Hi Tee,

This looks like a great tool, although it doesn't appear to handle things
like multipolygons. Is that on the roadmap at all?

Thanks,
David


Reply to this email directly or view it on GitHub
#157.

Sorry I should have been more specific. It appears the migration DSL only supports single geometries like 'polygon'. I tried to do an add_column operation with 'multipolygon' and it failed.

mjy commented

A rails migration:

add_column :geographic_items, :multi_polygon, :multi_polygon,

:geographic => true, :has_z => true, :has_m => true

On Wed, Jan 7, 2015 at 12:53 PM, djantzen notifications@github.com wrote:

Sorry I should have been more specific. It appears the migration DSL only
supports single geometries like 'polygon'. I tried to do an add_column
operation with 'multipolygon' and it failed.


Reply to this email directly or view it on GitHub
#157 (comment)
.

Well that would be user error. Thanks for setting me straight.

Thanks @mjy!