def _geoserver_endpoints(workspace, layer):
    """Form GeoServer WMS/WFS endpoints.

    Parameters:
        workspace (str): GeoServer workspace
        layer (str): Layer name

    Returns:
        (dict) The GeoServer layer endpoints.
    """
    return {
        "wms": '{0}/wms?service=WMS&request=GetMap&layers={0}:{1}'.format(workspace, layer),
        "wfs": '{0}/ows?service=WFS&request=GetFeature&typeName={0}:{1}'.format(workspace, layer)
    }