(dataset_name, field)
Generate statistics (range, mean, median, standard deviation, unique values)
    for layer attribute
Generate statistics (range, mean, median, standard deviation, unique values)
    for layer attribute
Generate statistics ( range mean median standard deviation unique values ) for layer attribute
def get_attribute_statistics(dataset_name, field):
    """
    Generate statistics (range, mean, median, standard deviation, unique values)
    for layer attribute
    """

    logger.debug('Deriving aggregate statistics for attribute %s', field)

    if not ogc_server_settings.WPS_ENABLED:
        return None
    try:
        return wps_execute_dataset_attribute_statistics(dataset_name, field)
    except Exception:
        tb = traceback.format_exc()
        logger.debug(tb)
        logger.exception('Error generating layer aggregate statistics')
def get_attribute_statistics ( dataset_name , field ) : logger . debug ( 'Deriving aggregate statistics for attribute %s' , field ) if not ogc_server_settings . WPS_ENABLED : return None try : return wps_execute_dataset_attribute_statistics ( dataset_name , field ) except Exception : tb = traceback . format_exc ( ) logger . debug ( tb ) logger . exception ( 'Error generating layer aggregate statistics' )