def bbox
@bbox ||= [ min_lon, min_lat, max_lon, max_lat ]
end
+
+ def has_valid_bbox?
+ not bbox.include? nil
+ end
##
# expand the bounding box to include the given bounding box. also,
def update_from(other, user)
# ensure that only the user who opened the changeset may modify it.
unless user.id == self.user_id
- raise OSM::APIUserChangesetMismatchError
+ raise OSM::APIUserChangesetMismatchError.new
end
# can't change a closed changeset