def update_from(new_relation, user)
check_consistency(self, new_relation, user)
def update_from(new_relation, user)
check_consistency(self, new_relation, user)
raise OSM::APIPreconditionFailedError.new("Cannot update relation #{self.id}: data or member data is invalid.")
end
self.changeset_id = new_relation.changeset_id
raise OSM::APIPreconditionFailedError.new("Cannot update relation #{self.id}: data or member data is invalid.")
end
self.changeset_id = new_relation.changeset_id
# remove from the map, so that we can expect an empty map
# at the end if there are no new tags
# remove from the map, so that we can expect an empty map
# at the end if there are no new tags
# same pattern as before, but this time we're collecting the
# changed members in an array, as the bounding box updates for
# elements are per-element, not blanked on/off like for tags.
# same pattern as before, but this time we're collecting the
# changed members in an array, as the bounding box updates for
# elements are per-element, not blanked on/off like for tags.