private static string GetSuffix(string url)
{
url = Regex.Replace(url, "http.+/rest/services/?", "", RegexOptions.IgnoreCase);
url = Regex.Replace(url, "(/(MapServer|GeocodeServer|GPServer|GeometryServer|ImageServer|NAServer|FeatureServer|GeoDataServer|GlobeServer|MobileServer)).*", "$1", RegexOptions.IgnoreCase);
return url;
}
#endregion