Questions tagged [geoserver-css-module]

The css module for GeoServer adds an alternative style editor to GeoServer that uses a CSS-derived language instead of SLD.

Filter by
Sorted by
Tagged with
-1
votes
1answer
22 views

Hilight object on mouse hover or mouse click events in Geoserver css style [duplicate]

How to hilighted object on mouse hover or mouse click events in Geoserver css style? Like a css :hover selector. Is it possible? Maybe it is doing after WMS/WFS?
0
votes
1answer
37 views

GeoServer CSS Styling variable

May I set variable in CSS, like as <ogc:Function name="env"> I have this: * { fill: [recode(strTrim(name), 'Akmola Region', '#6495ED', 'Aktobe Region', '#B0C4DE')]; ...
0
votes
0answers
85 views

sld : How to create a group style file

Suppose i want to group 2 or more style of different layers into one SLD file how can i do it ? A pointer towards the working example or document will do. Or any alternative styling example such as ...
1
vote
2answers
34 views

Label Lower Left Corner Of Square Polygon SLD and Geoserver

I would like to label the lower left corner of rectangular shaped polygons in geoserver I have looked the the functions and I am wondering how I would set up variable to perform the calculation for ...
1
vote
1answer
49 views

Geoserver 2.14.0 CSS styling - how to force label rendering similar to VendorOption “partials”

I know that the <VendorOption name="partials">true</VendorOption> SLD directive would fix my issue with labels not rendering in my tiles when I want them to and I would add to my SLD ...
0
votes
0answers
74 views

Geoserver CSS Styling - Bug using env var twice?

Currently working on a css style for one of my layers. My plan is to use an env var from the query string to drive some of the styling. I was going to use the env var as a flag string. Basically, if '...
0
votes
1answer
199 views

Geoserver SLD Styling Error with zoom

I think I've run into a bug in how SLD rules are applied in geoserver. This is on GS 2.12.2 with the css styling extension. In my table I have units that I'd like to render with different icons and ...
0
votes
0answers
148 views

Geoserver Dynamic Symbolizers with SLD and CSS not working

when I am applying GeoServer Style CSS for points its applying style to all the points and when I am binding image URL with the label there it's binding the URL string. I am using geoserver 2.12.1 *...
0
votes
1answer
59 views

Installing GeoServer extensions via pom file?

I'm creating a docker that runs geoserver on top of linux and tomcat. I'm installing geoserver by adding the gs-web-app dependency in my pom, and moving it into tomcat's webapps folder in the build ...
2
votes
1answer
91 views

Geoserver's CSS Styling: using feature id

I'm using CSS to Style a layer in Geoserver, something like: { mark: url('${getImageUrl(id)}'); mark-mime: "image/png"; mark-rotation: [rotationAngle]; } getImageUrl is a custom Geotools ...
1
vote
1answer
150 views

How to change the wind direction vector GeoServer

I'm trying to change the direction of the vector automatically. I'm looking for in a NetCDF file the variable wd, but the vectors are all directed down, as if it were null follows the result of ...
1
vote
1answer
218 views

Geoserver CSS Styling: Mark Dynamic URL

In the following CSS styling: * { mark: url(smileyface.png); mark-mime: "image/png"; mark-rotation: 45; } How can I make the URL value dynamic (to be read from a layer's field image_url)? ...
1
vote
1answer
76 views

geoserver CSS-Styling call WPS function

I've a custom WPS function gs:GetStyleSize, that I used to call from SLD like the following: <FeatureTypeStyle> <Rule> <PointSymbolizer> <Graphic> ...
0
votes
1answer
178 views

CSS plugin triggers an error on Geoserver

When I try to load a default css style and then validate the style, a Jira error is shown. My version of geoserver is : Version 2.12.1 Révision Git 5927e49e781ddcdbf9213d32a439418347c17480 ...
1
vote
3answers
235 views

Legend in Geoserver generates wrong image

I have written the Style in CSS, in Geoserver. Following is the code /*@title Cresta HighRes*/ *{ stroke-width:1; stroke:#686868; fill:#e1e1e1; } [@scale < 1500000] { ...
1
vote
2answers
924 views

New line in Label ,CSS Geoserver

How do i get a new line in a Geoserver style CSS ? { label: [name] (need new line here) [pop]; } Details: [name],[pop] are attributes of the layer Is there a comprehensive CSS documentation with ...
0
votes
1answer
199 views

Geoserver dashed line Styling

I want to draw a dashed line on straight line i tried but (Example) * { stroke: yellow, red; :nth-stroke(1) { width:4, dasharry 5 2 }; :nth-stroke(2) { width:5; } }
2
votes
2answers
370 views

Geoserver CSS line with different colors

I want to visualize a line with Geoserver with multiple colors with CSS. Each 3 px, another color has to show. So I have red, green and yellow and I want a line with this 3 colors, each 3 px color ...
0
votes
1answer
234 views

GeoServer CSS Styling should be able to filter by type?

According to the docs: Filtering on Type¶ When dealing with data from multiple sources, it may be useful to provide rules that only affect one of those sources. This is done very simply; ...
1
vote
2answers
268 views

How to show single title for double CSS stroke in map legend

I am using CSS for styling roads in my geoserver. Here is my css : /* @title HSAMB Roads*/ * { stroke: #333333,#00CC00; stroke-width: 3px, 1px; z-index: 0, 1; ...
4
votes
1answer
195 views

Geoserver linestring fill based on attribute value

I'm experimenting with Geoserver. I'm styling a linestring layer with CSS in this way, which works fine: [userid = 1] { stroke: #8C2300; stroke-width: 3px; stroke-linecap: round; z-index: 0, 1; } ...
1
vote
1answer
102 views

GeoServer - Multiple symbology on single layer

I'm trying to show multiple symbologies on a single GeoServer layer. I'm also using the CSS extension, but an SLD example would be fine. My GeoServer version is 2.8.2 For example: A yellow rectangle ...
1
vote
2answers
266 views

GeoServer CSS styles Submission Issue

I tried to add more than three rules of CSS styles, whenever I tried to add fourth rule, I can't submit the style in Geoserver 2.8.1. Please find the CSS styles I used below. /* Default Style less ...
1
vote
1answer
370 views

Geoserver CSS style for PropertyIsLike

I am trying to convert sld to css style. The below code is have written SLD style for filter a word using PropertyIsLike <ogc:Filter> <ogc:PropertyIsLike wildCard="%" singleChar="_" ...
1
vote
1answer
912 views

Converting SLD to CSS style in GeoServer?

I am trying to convert SLD to CSS styles in latest geoserver version 2.8.1. I have added css plugins(from geoserver-2.8.1-css-plugin.zip) but it is not working properly. Is there any other plugin ...
0
votes
1answer
207 views

geoserver css point stacker

I´ve read this article about geoservers pointStacker transformation: http://suite.opengeo.org/opengeo-docs/cartography/rt/pointstacker.html Is this function implemented in geoserver css? If so can ...
2
votes
1answer
413 views

Geoserver css Icon size/ scale best practise [closed]

Currently my rules for styling point Icons bound to scale look like this: :mark{ mark: url("file:./icon.svg"); mark-mime: "image/svg+xml"; } [atrib='xyz'][@scale > 600 ][@scale < 1000] { ...
0
votes
1answer
512 views

GeoServer CSS rotation with env and property name

Using GeoServer CSS extension mark-rotation: [env('rot',2)]; ends in <sld:Rotation> <ogc:Function name="env"> <ogc:Literal>rot</ogc:Literal> ...
1
vote
1answer
768 views

Translate sld:name and ogc:property name into GeoServer CSS

Given is following SLD rule: <sld:Rule> <sld:Name>mytrack#</sld:Name> <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>jogging</ogc:...
1
vote
1answer
253 views

Filter the lowest / highest featureID in Geoserver CSS style rule

I am using GeoServer's CSS extension to style a Points layer which I publish as WMS. In my style, I would like to specify a rule that filters for the first and last features in my data set. Something ...
0
votes
1answer
98 views

Problem with CSS Extension in Geoserver 2.7.0 [closed]

I am trying to load the CSS Extension in GS 2.7.0 by unzipping the contents of the archive into the WEB-INF/lib directory in GeoServer. When restarting GS i get a error : "Error creating bean with ...
2
votes
0answers
169 views

Marking Point when multiple points exists at same location? [closed]

I am facing Issue while drawing mark on points. When I am giving a image to points, image is coming only to those points where points are not overlapping. for example, if three POI exists at exact ...
2
votes
1answer
203 views

gsconfig installation in windows 7

How do I install gsconfig in windows 7? I tried with gsconfig.tar.gz but the error is ImportError: No module named setuptools
2
votes
3answers
879 views

SLD to CSS. Geoserver CSS module problem

I styled Geoserver maps with SLD. And now I have to convert this style to CSS. CSS is easier to support. Well, I have this fragment of SLD: <Geometry> <ogc:Function name="offset"> ...