public void WmscRequest_Version130() { var request = new WmscRequest(new Uri("http://testserver.com"), new SphericalMercatorWorldSchema(), new List <string>(new string[] { "Layer One" }), null, null, "1.3.0"); var ti = new TileInfo(); var uri = request.GetUri(ti); StringAssert.Contains("VERSION=1.3.0", uri.ToString()); StringAssert.Contains("CRS=", uri.ToString()); }
public void WmscRequest_Version130() { var request = new WmscRequest(new Uri("http://testserver.com"), new GlobalSphericalMercator(YAxis.TMS), new[] { "Layer One" }, null, null, "1.3.0"); var ti = new TileInfo { Index = new TileIndex(0, 0, 0) }; var uri = request.GetUri(ti); StringAssert.Contains("VERSION=1.3.0", uri.ToString()); StringAssert.Contains("CRS=", uri.ToString()); }
public void WmscRequest_NoVersion() { var request = new WmscRequest(new Uri("http://testserver.com"), new GlobalSphericalMercator(YAxis.TMS), new [] { "Layer One" }); var ti = new TileInfo { Index = new TileIndex(0, 0, "0") }; var uri = request.GetUri(ti); StringAssert.DoesNotContain("VERSION=", uri.ToString()); StringAssert.Contains("SRS=", uri.ToString()); }