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.
Is this a bug, or am I doing something wrong?
PostGIS 1.5/PostgreSQL 9.1/Rails 3.1.3
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.
RGeo 0.3.5 released. It should fix this issue.
Thanks so much for fixing it so quickly!