'Returns a query of all Locations inside the given bounding box'

@staticmethod
def query_features_by_bbox(lon_min, lat_min, lon_max, lat_max):

    table = current.s3db.gis_location
    query = ((((table.lat_min <= lat_max) & (table.lat_max >= lat_min)) & (table.lon_min <= lon_max)) & (table.lon_max >= lon_min))
    return query
