Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def __init__(self, request):
     self.request = request
     request.response.cache_control = "no-cache"
     Raster.__init__(self, request)
Пример #4
0
 def __init__(self, request):
     self.request = request
     Raster.__init__(self, request)
Пример #5
0
 def __init__(self, request):
     self.request = request
     request.response.cache_control = "no-cache"
     Raster.__init__(self, request)
Пример #6
0
 def __init__(self, request):
     self.request = request
     Raster.__init__(self, request)