Exemplo n.º 1
0
 def update(self):
     'Add new or edit existing features'
     # Authenticate via personID or key
     personID = h.getPersonIDViaKey()
     if not personID:
         abort(401, 'Please log in or provide a valid key')
     # Load srid
     srid = request.params.get('srid', '')
     try:
         proj4 = model.validateSRID(srid)
     except model.GeoRegistryError, error:
         abort(400, str(error))
Exemplo n.º 2
0
 def update(self):
     'Add new or edit existing features'
     # Authenticate via personID or key
     personID = h.getPersonIDViaKey()
     if not personID:
         abort(401, 'Please log in or provide a valid key')
     # Load srid
     srid = request.params.get('srid', '')
     try:
         proj4 = model.validateSRID(srid)
     except model.GeoRegistryError, error:
         abort(400, str(error))
Exemplo n.º 3
0
 def view(self, responseFormat='json'):
     'Assemble a map'
     # Get responseFormat
     responseFormat = responseFormat.lower()
     if responseFormat not in ['json']:
         abort(400, 'Must specify a valid responseFormat: json')
     # Authenticate via personID or key
     personID = h.getPersonIDViaKey()
     # Load srid
     srid = request.params.get('srid', '')
     try:
         proj4 = model.validateSRID(srid)
     except model.GeoRegistryError, error:
         abort(400, str(error))
Exemplo n.º 4
0
 def view(self, responseFormat='json'):
     'Assemble a map'
     # Get responseFormat
     responseFormat = responseFormat.lower()
     if responseFormat not in ['json']:
         abort(400, 'Must specify a valid responseFormat: json')
     # Authenticate via personID or key
     personID = h.getPersonIDViaKey()
     # Load srid
     srid = request.params.get('srid', '')
     try:
         proj4 = model.validateSRID(srid)
     except model.GeoRegistryError, error:
         abort(400, str(error))