New answers tagged

1

Yes, you can try styling your data with QGIS. But if you want to create a rule based sld or an sld with more options (fill opacity, rules, outline etc) I recommend you to use uDig. With you uDig you can style your data with many options and then export slds that will work 99,9% when uploaded on geoserver. More about sld editor and uDig here.


3

So, after extensive testing, I have come to a conclusion that this is indeed QGIS bug. I have tested my sld file in QGIS 2.12.3 and in GeoServer. These are my results: QGIS: using the same sld file in GeoServer: Below is my sld file: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" ...


1

The quick answer to the question is yes it is possible. You will need to construct an external SLD file, and store it on your server, then you will need to send a GetMap request that references that SLD in your request. So here for example is a GetMap request to a GeoServer WMS (generated through a web client using OpenLayers) GetMap to a GeoServer WMS ...


4

As you can read here about the ElseFilter, A Rule containing an ElseFilter is evaluated if and only if no other Rule in the current Style matches. All Rules in a Style are evaluated sequentially from top to bottom, testing each Rule's Filter against the current Object. This means that you have to list all your rules, and your last rule should ...


1

By default point sizes are measured in pixels and so will change size as you zoom in and out of your map. The Symbology Encoding standard allows you to specify the size of your points (and other features) in map units which will remain the same real world size as you zoom in and out, that is they seem to get bigger as you zoom in like polygons do. You need ...


1

If you are looking at the latest documentation then that is the correct syntax but you are using an old GeoServer so need to consult the older manual which makes no mention of the parameter. If you'd like to use this feature you will need to upgrade your GeoServer version to 2.9+.


1

As far as I know there isn't an existing function to do that, it might be possible to use the offset function to move an arrow but you'd need to know which direction to go in. GeoServer does have startPoint and startAngle (and matching end...) functions to allow you to put arrows at the beginning and end of lines. If You must label the centre of the line ...


1

The CSS plugin does a CSS to SLD conversion, the opposite is not always possible as long as CSS cascading is enabled. On the current developer series (GeoServer 2.9.x) we have a directive to disable cascading, e.g., @mode "Simple"; at the top of the file, that would allow one to write a SLD -> CSS translator... but it's not there yet. Contributions ...


1

Based on the documentation it appears your query would be written as: [name LIKE '%police%'] It doesn't appear that you can change the wildcard characters based on this: Patterns use _ to indicate a single unspecified character and % to indicate an unknown number of unspecified characters.


1

Because GeoServer (and all WMS Servers) doesn't know which map client is making the request for the legend you need to let it know what scale your map is at. So you need to pass in the SCALE parameter with your getLegendGraphic call, so it becomes something like: ...



Top 50 recent answers are included