New answers tagged

1

You got pretty close to the actual syntax (it's a GeoServer extension mind, not part of the OGC standards): http://blog.geoserver.org/2008/12/08/dynamic-symbolizers-part-1/


0

I did further research, and the following three "vendorOption" parameters were recommended where labels are left off when you really want them labeled in the tiles. I'll explain each briefly and why it did or did not help in my case. <VendorOption name="spaceAround">-1</VendorOption> <VendorOption name="conflictResolution"&...


1

GeoServer (by default) doesn't make primary keys available to the renderer as they are usually just a simple integer or UUID so are of no real use for rendering. There are two solutions to your issue add a serial column to your table for use as the primary key. ask GeoServer to expose primary keys for you.


2

If you read the strReplace documentation you will see that it is a thin wrapper around the Java replace method and provides a link to the Pattern Rules. This means that your function: strReplace(iconPath,'.','/',true) will replace every character (a . matches any character) in iconPath with a / - clearly not what you want. I would try something like: $(...


0

Take a look at http://www.scisys.co.uk/what-we-do/geographic-information-systems/sld-editor.html it is a free open source tool recently released by SCISYS


0

If you want to style two unrelated things then you need two styles - one for highways and one for admin lines. Otherwise you will end up with complex SLDs with many rules that can never be true (i.e. 'highway' = 'primary' && admin_level = 2).


1

The obvious way to do it is to calculate the lengths of all the lines and store it as an attribute before loading the data into GeoServer.


2

No, it's not possible at the moment, geometries are generalized, reprojected, rescaled to screen in place for performance reasons, by the time this function is evaluated it's too late. The code would have to be modified to perform these evaluations before the geometry is modified. It's possible, not immediate to do in general (if done, it would have to ...


0

I'm afraid I can't do a all-in-one-step as suggested by @Iant... I'll need a if..then..else ECQL skill .... First step: drop the layer table and recreate it with some friendly column names: CREATE TABLE public.buoy_lateral ( way geometry(Point,900913), name text, topmark_shape text, topmark_colour text, period text, "character" text, ...


2

What you need is a Dynamic Symbolizer - then you can create resources like this if you have a simple concatenation: <ExternalGraphic> <OnlineResource xlink:type="simple" xlink:href="http://mysite.com/tn_${STATE_ABBR}.jpg"/> <Format>image/jpeg</Format> </ExternalGraphic> or like this if you need a more ...


1

Posting this here as an answer, as I do not have enough reputation to add as a comment to a previous answer I found that <ogc:Mult> did not work for me, but <ogc:Mul> did.


0

I'm not familiar with that method, however you can use rule based styling for symbolizing various feature classifications: Styling rules define the portrayal of features. A rule combines a filter with any number of symbolizers. Features for which the filter condition evaluates as true are rendered using the the symbolizers in the rule.



Top 50 recent answers are included