private string GetServiceType(string distributionProtocol)
{
string serviceType = "other";
switch (distributionProtocol)
{
case "OGC:WMS":
serviceType = "view";
break;
case "OGC:WMTS":
serviceType = "view";
break;
case "OGC:WFS":
serviceType = "download";
break;
case "OGC:WCS":
serviceType = "download";
break;
case "OGC:CSW":
serviceType = "discovery";
break;
case "OGC:WPS":
serviceType = "other";
break;
case "OGC:SOS":
serviceType = "other";
break;
case "REST-API":
serviceType = "other";
break;
}
return serviceType;
}