Ejemplo n.º 1
0
 def geometry(self, value):
     if value is None:
         raise exc.HTTPBadRequest('Please provide the parameter geometry  (Required)')
     else:
         try:
             self._geometry = loads(value)
         except ValueError:
             raise exc.HTTPBadRequest('Please provide a valide geometry')
Ejemplo n.º 2
0
 def mapExtent(self, value):
     if value is None:
         raise exc.HTTPBadRequest('Please provide the parameter mapExtent  (Required)')
     else:
         try:
             feat = loads(value)
             self._mapExtent = asShape(feat)
         except ValueError:
             raise exc.HTTPBadRequest('Please provide numerical values for the parameter mapExtent')
Ejemplo n.º 3
0
 def geometry(self, value):
     if value is None:
         raise exc.HTTPBadRequest(
             'Please provide the parameter geometry  (Required)')
     else:
         try:
             self._geometry = loads(value)
         except ValueError:
             raise exc.HTTPBadRequest('Please provide a valide geometry')
Ejemplo n.º 4
0
 def mapExtent(self, value):
     if value is None:
         raise exc.HTTPBadRequest(
             'Please provide the parameter mapExtent  (Required)')
     else:
         try:
             feat = loads(value)
             self._mapExtent = asShape(feat)
         except ValueError:
             raise exc.HTTPBadRequest(
                 'Please provide numerical values for the parameter mapExtent'
             )
Ejemplo n.º 5
0
 def geometry22(self):
     return loads(binascii.hexlify(session.scalar(s.geom.wkb)))