Hi,
I tested wms layer and this kind of layer works fine when the level zoom is under 6. (ie CaptureWMS_Zoom5_OK.jpg
If I zoom to level zoom 6 and above, I have a display’s problem (ie CaptureWMS_Zoom6_PASOK.jpg)
Extract of the code :
private void serviceWMS_Raster_Loaded(object sender, RoutedEventArgs e)
{
map.MapUnit = GeographyUnit.Meter;
var wmsLayer = new WmsRasterLayer();
wmsLayer.Uri = new Uri(“wxs.ign.fr/Key/geoportail/r/wms”);
wmsLayer.SendingWebRequest += new System.EventHandler<SendingWebRequestEventArgs>(binglayer_SendingWebRequest);
try
{
wmsLayer.Open();
wmsLayer.Parameters.Add(“layers”, “BDPARCEL_PYR-PNG_WLD”);
wmsLayer.Parameters.Add(“crs”, “EPSG:3857”);
wmsLayer.Parameters.Add(“format”, “image/jpeg”);
wmsLayer.Parameters.Add(“style”, “Default”);
wmsLayer.Parameters.Add(“maxHeight”, “256”);
wmsLayer.Parameters.Add(“maxWidth”, “256”);
wmsLayer.ActiveLayerNames.Add(“BDPARCEL_PYR-PNG_WLD”);
}
catch (Exception ee)
{
MessageBox.Show(ee.Message);
}
var server = wmsLayer.GetServerLayerNames();
var ov = new LayerOverlay();
ov.Layers.Add(wmsLayer);
map.Overlays.Add(“Test”, ov);
map.CurrentExtent = wmsLayer.GetBoundingBox();
map.Refresh();
}
I tested this wmslayer with the software qgis, and I have no problem.
Have you ever met this problem ?
Thanks for your help.
Regards.
Steph
CaptureWMS_Zoom5_OK.JPG (7.71 KB)
CaptureWMS_Zoom6_PASOK.JPG (10.8 KB)
Display problem by zooming in on a wms layer
Hi Steph,
Seems like the sample doesn’t work for me as we are unable to connect to the specific URL. Would you please do a verify? Or could you send the ready-to-run demo to forumsupport@thinkgeo.com?
Thanks,
Johnny