def __init__(self, request): self.request = request if "geom" in self.request.params: geoms = self.request.params["geom"] self.valid_request = True geom = geojson.loads(geoms, object_hook=geojson.GeoJSON.to_instance) if geom.type not in ["MultiLineString", "LineString"]: self.valid_request = False Raster.__init__(self, request)
def __init__(self, request): self.request = request request.response.cache_control = "no-cache" Raster.__init__(self, request)
def __init__(self, request): self.request = request Raster.__init__(self, request)