RGeo::Error::UnsupportedOperation: Method Geometry#equals? not defined #22

Closed
meanphil opened this Issue Feb 27, 2012 · 3 comments

Projects

None yet

2 participants

@meanphil

Setting a spatial column on a new Model works fine, but subsequent updates to that column fail in Rails with the exception:

RGeo::Error::UnsupportedOperation: Method Geometry#equals? not defined

I assume equals? should be defined in sub-classes of Feature::Geometry, but I can't find how/where to fix it.

See http://pastie.org/private/z9b0ofbmev3kffdfervzq

Is this a bug, or am I doing something wrong?

PostGIS 1.5/PostgreSQL 9.1/Rails 3.1.3

@dazuma
RGeo member

Hi Phil,

Thanks for reporting this. No, you're not doing something wrong. Your issue revealed a rather subtle problem with how RGeo is defining the semantics of the == operator (and, related, the eql? method). It looks like I'll need to do a minor rework of how the various equivalence tests are being defined.

I'll try to release a fix within the next day.

@dazuma
RGeo member

RGeo 0.3.5 released. It should fix this issue.

@dazuma dazuma closed this Feb 27, 2012
@meanphil

Thanks so much for fixing it so quickly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment