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')
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')
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')
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' )
def geometry22(self): return loads(binascii.hexlify(session.scalar(s.geom.wkb)))