def get_attribute_statistics(layer_name, field):
 logger.debug('Deriving aggregate statistics for attribute %s', field)
 if (not ogc_server_settings.WPS_ENABLED):
  return None
 try:
  return wps_execute_layer_attribute_statistics(layer_name, field)
 except Exception:
  logger.exception('Error generating layer aggregate statistics')

def get_attribute_statistics ( layer_name , field ) : logger . debug ( 'Deriving aggregate statistics for attribute %s' , field ) if ( not ogc_server_settings . WPS_ENABLED ) : return None try : return wps_execute_layer_attribute_statistics ( layer_name , field ) except Exception : logger . exception ( 'Error generating layer aggregate statistics' )
generate statistics for layer attribute .