New answers tagged

1

Historically, MapServer was based on shapefiles, and thus still has the restriction that a single layer can draw only one geometry type. If you want to draw both points and polygons, you need two layers. (And you need to use queries to filter out the wrong geometries, because MapServer will happily draw the polygon nodes as points. Use something like ...


1

The described desired state got achieved by adding the following line in the mapfile. This has to be done per mapfile as there is no such default available just yet. MAP // ... WEB // ... METADATA // ... 'wms_rootlayer_name' '' // ^ this line has to be added! END END // ... END The result will be almost exactly as described in ...


0

Either, Make a copy of the GeoServer GetCapabilities response, add the layer(s) you want. Save the static file to a location on a web server. Point QGIS to this static file. Or, Configure a GDAL WMS driver configuration file and add your required layers there. See https://gdal.org/drivers/raster/wms.html


2

If you would have looked in the contents of the response, you would see the following: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1"> <ServiceException code="...


1

You can use the option bounds to filter. If set, tiles will only be loaded inside the set LatLngBounds. L.TileLayer and L.TileLayer.WMS are both extending L.GridLayer, so the same options can used: https://leafletjs.com/reference-1.7.1.html#gridlayer-bounds var nexrad = L.tileLayer.wms("URL.COM", { layers: 'LAYER_NAME', format: 'image/png'...


Top 50 recent answers are included