Hot answers tagged

4

As far as I know, the overall size of the legend cannot be forced, and there is no word-wrapping logic (only the labelling engine in the map supports word wrapping, the legend graphic builder is an entirely different animal).


2

After some experimenting and turning GeoServer's logging level up to GEOTOOLS_DEVELOPER it turns out that GeoServer didn't understand your SLD as it didn't contain any schema locations. So changing your SLD to start with the following worked. <StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http:...


2

I found out, that I missed the label-TAG with PropertyName: <TextSymbolizer> <Label> <PropertyName>name</PropertyName> </Label> <Font> <CssParameter name="font-family">arial</CssParameter> <CssParameter name="font-size">20</CssParameter> &...


1

I just tested the WMS service in QGIS 3.16 and got an error message for version 1.0.0 when trying to load the layers. If you change the link to https://wms.geo.admin.ch/?VERSION=1.1.0 the layers just work fine in QGIS.


1

From a quick look at the capabilities files version 1.0.0 supports only <Format><PNG /><JPEG /><SVG /></Format> while version 1.1.0 supports: <Format>image/jpeg</Format> <Format>image/gif</Format> <Format>image/png</Format> <Format>image/pnga</Format> <Format>image/...


1

It all depends what layers are available at particular WMS service. Since you didn't specify which specific service you are using, it's impossible to give definitive answer. But generally you start with the GetCapabilities request to your WMS service and check what layers are available. For example, for one of geonorge.no WMTS services request would be (gkt ...


Only top voted, non community-wiki answers of a minimum length are eligible