Skip to main content

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
0 votes
1 answer
32 views

Styling GeoServer with CSS, what are the gt-labels?

I use CSS to style layers in GeoServer. Some style parameters user gt-as a prefix. Like gt-label-follow-line or gt-label-repeat. What does gt stand for and where is the documentation for using those ...
jeemil's user avatar
  • 21
3 votes
2 answers
162 views

Combine attribute and zoom based style in GeoServer using CSS styling

Is it possible to use attribute and zoom based condition to apply CSS style in GeoServer? I have a point layer, I would like to use attribute and zoom based condition to apply a colour style and ...
mapperx's user avatar
  • 1,437
3 votes
1 answer
132 views

Dynamic CSS Style (CSS sld) to pass environment and property name variable

we are trying to make css style using geoserver's CSS extension, I have weather data in my table, like temp_max, temp_min, and rainfall which divided into classes depending on their range values, now ...
SpiderMan's user avatar
1 vote
1 answer
112 views

Name property for rules in CSS styles alternatives or how to contribute

We are using https://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/index.html#json-output-format to ascertain what rules of a style created in Geoserver's style editor and that has ...
David I's user avatar
  • 105
2 votes
0 answers
61 views

CSS coding environment out of GeoServer

I am migrating the styles of my layers to use only CSS, however I would like a system where I can create and edit my styles outside of the GeoServer environment, as is done with SLD styles in QGIS. I ...
GEOgrafando's user avatar
0 votes
0 answers
95 views

Label polygons with count of intersecting points in GeoServer

I have two spatial layers in a GeoServer instance - polygons (administrative boundaries) and points (resource locations) - and would like to define a layer style (ideally using the CSS format) which ...
mdmeadows's user avatar
1 vote
1 answer
586 views

Problem with IS NULL condition in GeoServer CSS style

I have a style that divide features in PostGIS layer to four categories based on atributte Z_KAT. In the fourth category I want to specify that Z_KAT is equal to '04' OR null value. Condition for text ...
TomyPoty's user avatar
0 votes
1 answer
193 views

CSS style option equivalent to <VendorOption name=”inclusion”>mapOnly</VendorOption> in GeoServer

I'm trying to hide some legend items in GeoServer. The problem is that I created the styles in CSS and hoped that there is a equivalent option to remove legend item as in the case with SLD styles ...
user19349's user avatar
  • 327
0 votes
1 answer
206 views

GeoServer flips the WMS v1.3.0 image when applying a heatmap style on a layer with a CRS EPSG:4326

I was trying to apply the following heatmap style to an unprojected layer (EPSG:4326) in GeoServer. *{ transform: vec:Heatmap(weightAttr:1, radiusPixels:40 , pixelsPerCell:5, ...
user19349's user avatar
  • 327
0 votes
1 answer
281 views

GeoServer CSS Generic Styles

I am trying to create a generic style using CSS, so that I can have a set of styles which can be applied to polygons, lines and/or points. I am able to create the style: Add a new style... Format=CSS ...
NoelB's user avatar
  • 1
0 votes
1 answer
215 views

GeoServer CSS line direction arrow on OpenStreetMap data

Is it possible to create CSS line symbology with direction arrow for OpenStreetMap data?
Wenceslauw's user avatar
0 votes
1 answer
85 views

GeoServer CSS encoding

When using SLD as style format the head has an ecoding tag. Having title text in "foreign" charters in GetLegendGraphic is rendered as expected. But when using CSS format /* @title red line ...
geogrow's user avatar
  • 1,693
1 vote
1 answer
233 views

Using the CSS style format in GeoServer, how can you sort-by on a value returned from a function, i.e. the x value of a polygon’s centroid

Work in progress I’m currently working on a CSS style in GeoServer where the US states are extruded based on population (PERSONS). In order to get a 2.5D effect a combination of the isometric and ...
user19349's user avatar
  • 327
2 votes
0 answers
2k views

Failed to upgrade lock from read to write state, please re-try the configuration operation [closed]

I have been working with Geoserver and today I was not able to perform any operations in it. The error message says that, "Failed to upgrade lock from read to write state, please re-try the ...
Pgm-Mastr's user avatar
0 votes
1 answer
307 views

Using GeoServer CSS styling, can you switch off transformation at a certain zoom scale?

I have came across similar questions and read through the documentations, so sorry if I missed something. I'm looking for a way to turn of transformations based on a zoom scale using CSS. For an ...
user19349's user avatar
  • 327
2 votes
1 answer
373 views

Is there "label wrap on character" option in GeoServer GeoCSS?

In GeoServer (using GeoCSS) I am importing layers which use the symbol _ to wrap characters in QGIS. As I searched, technically it is possible to have such option, TileMill uses this code text-wrap-...
Dan's user avatar
  • 1,070
1 vote
1 answer
664 views

Polygon label parallel to line but inside polygon

I am trying to add labels to a polygon layer hosted on GeoServer with CSS styling, and I would like the labels to be on the boundary running parallel, but always inside of the polygon. For instance if ...
TJR's user avatar
  • 1,612
2 votes
3 answers
135 views

Does anyone know how to make OSM national_park style using GeoServer GeoCSS?

Does anyone know how to make OSM national_park style using GeoServer's GeoCSS? At the moment I've succeeded only using stroke-geometry: [buffer(geom, -10)], [geom];. But the result is not satisfying. ...
Dan's user avatar
  • 1,070
0 votes
1 answer
184 views

GeoServer CSS how to force labels onto map where boundaries are tight or narrow

I'd like to force labels onto the map. For instance, the Western Mountain label ideally could go just above Washington State. I have tried various permutations, but I cannot seem to get the labels ...
zakariah1's user avatar
  • 211
2 votes
1 answer
335 views

GeoServer 2.18. Setting Min & Max Scales

I'm using CSS and wanted to know how to set the min and max scale for a given layer. I see many solutions referencing SLD, but want to do this in CSS. I really need help with the syntax.
zakariah1's user avatar
  • 211
0 votes
0 answers
234 views

Is it possible to draw one way road direction arrows using CSS of GeoServer

Is it possible to draw one way road direction arrows using CSS of GeoServer? I want to get the same result as shown below (see img-1). (UPDATE) So far, I've added arrow sign as label in separate ...
Dan's user avatar
  • 1,070
0 votes
1 answer
257 views

Using CSS var function in GeoServer CSS styling

I wanted to check if I could use something like the CSS var() function with the GeoServer CSS plugin styles. Something to look like: :root { --land-color: #f2efe9; } /* @title ...
Dror Bogin's user avatar
  • 3,485
-1 votes
1 answer
266 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?
Cold Pol's user avatar
1 vote
1 answer
529 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')]; ...
Cold Pol's user avatar
2 votes
1 answer
1k views

Creating 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 ...
Abhijit Gujar's user avatar
2 votes
2 answers
262 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 ...
Gary Lester's user avatar
1 vote
4 answers
593 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 ...
Brian B's user avatar
  • 815
0 votes
0 answers
179 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 '...
Evan's user avatar
  • 117
0 votes
1 answer
536 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 ...
Evan's user avatar
  • 117
1 vote
0 answers
404 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 *...
karthik's user avatar
  • 21
0 votes
1 answer
327 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 ...
Evan's user avatar
  • 117
2 votes
1 answer
324 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 ...
Faz B's user avatar
  • 465
1 vote
1 answer
428 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 ...
Hugo Ferreira's user avatar
1 vote
1 answer
821 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)? ...
Faz B's user avatar
  • 465
1 vote
1 answer
235 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> ...
Faz B's user avatar
  • 465
0 votes
1 answer
853 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 ...
So4ne's user avatar
  • 287
1 vote
3 answers
699 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] { ...
Shreyes Shiv's user avatar
3 votes
3 answers
4k 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 ...
Shreyes Shiv's user avatar
0 votes
1 answer
408 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; } }
Emin Adiloğlu's user avatar
2 votes
3 answers
955 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 ...
Sven Nijs's user avatar
  • 263
0 votes
1 answer
445 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; ...
ca0v's user avatar
  • 2,951
1 vote
2 answers
441 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; ...
Neeraj Mehta's user avatar
4 votes
1 answer
387 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; } ...
Sven Nijs's user avatar
  • 263
2 votes
1 answer
261 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 ...
Lior Greenberg's user avatar
1 vote
2 answers
355 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 ...
Sanjith's user avatar
  • 91
1 vote
1 answer
862 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="_" ...
Sanjith's user avatar
  • 91
1 vote
1 answer
2k 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 ...
Ratheesh's user avatar
  • 115
0 votes
1 answer
449 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 ...
Anatol's user avatar
  • 475
2 votes
1 answer
841 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] { ...
Anatol's user avatar
  • 475
0 votes
1 answer
942 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> ...
Anatol's user avatar
  • 475