def info(dataset, indent, meta_member):
    """Print basic metadata about a DataBC WFS layer as JSON.

    Optionally print a single metadata item as a string.
    """
    table = bcdata.validate_name(dataset)
    wfs = WebFeatureService(url=bcdata.OWS_URL, version="2.0.0")
    info = {}
    info["name"] = table
    info["count"] = bcdata.get_count(table)
    info["schema"] = wfs.get_schema("pub:" + table)
    if meta_member:
        click.echo(info[meta_member])
    else:
        click.echo(json.dumps(info, indent=indent))
def info ( dataset , indent , meta_member ) : table = bcdata . validate_name ( dataset ) wfs = WebFeatureService ( url = bcdata . OWS_URL , version = "2.0.0" ) info = { } info [ "name" ] = table info [ "count" ] = bcdata . get_count ( table ) info [ "schema" ] = wfs . get_schema ( "pub:" + table ) if meta_member : click . echo ( info [ meta_member ] ) else : click . echo ( json . dumps ( info , indent = indent ) )
Print basic metadata about a DataBC WFS layer as JSON.

    Optionally print a single metadata item as a string.