Tag Info

New answers tagged

0

I could not work this out. The feature of dynamically setting property names via env variables seems not to be supported at this moment. I ended up with a different solution now (using the Geoserver REST API for styles) and I am quite happy with it.


0

Thanks to the comments above I think I can answer now. Shapefiles generally (always?) have an actual feature attribute, which may be called FID, OBJECTID or something else. But, perhaps because the name varies, the GDAL tools allow you to use the term 'FID' and they will generate a 'fake FID' on request, which may not match the actual feature identifier. ...


1

Instead of <ogc:Literal> <ogc:PropertyName>city_name</ogc:PropertyName>-color </ogc:Literal> You need to use the function Concatenate <ogc:Function name="Concatenate"> <ogc:PropertyName>city_name</ogc:PropertyName> <ogc:Literal>-color</ogc:Literal> </ogc:Function>


1

A simpler approach that might not be giving you exact control is to use the "unit of measure" support. While I haven't tried, give this one a kick (GeoServer specific, OGC way would be quite a bit more verbose): <CssParameter name="font-size">100m</CssParameter> See also the docs for the OGC way: ...


1

From the answer at http://gis.stackexchange.com/a/72016/7515 I found out that a wms environment parameter can be used to get the actual scale denominator: <ogc:Function name="env"> <ogc:Literal>wms_scale_denominator</ogc:Literal> </ogc:Function> Now, the matter is to define a function that maps it to the desired range: map ...


1

Openlayers 3 does not yet have an SLD parser There's an open issue at https://github.com/openlayers/ol3/issues/2954 that you may +1


1

Using two FeatureTypeStyles in one layer is currently not supported by deegree. You could either use multiple symbolizers in case your geometries can be requested using a single feature type (eg. if the other geometry is contained within a subfeature) or just use two layers. You can group multiple layers in the configuration and make only one visible using ...



Top 50 recent answers are included