Skip to main content

New answers tagged

0 votes

Adding a geopackage (gpkg) to GeoServer through REST API

I'm trying to use your solution but I obtain "Caused by: org.sqlite.SQLiteException: [SQLITE_NOTADB] File opened that is not a database file (file is not a database)" even if it works if I ...
user2880516's user avatar
0 votes

How to properly filter out parts of the map where raster values are outside of given range in geoserver with isolines and labels?

If you wan to limit where your contours and labels show up then you will need to apply the same filter to them as you do to the raster.
Ian Turton's user avatar
  • 82.2k
0 votes

GeoServer - vector layer features clipped to only 50 features when downloading

Answer was given by Ian Turton. Go to the WFS settings page and under Features, change the value in "Maximum number of features for preview (Values <= 0 use the maximum number of features)&...
Nicholas Lombardi's user avatar
0 votes
Accepted

How can I make a point-pattern-fill interlaced symbol in GeoServer SLD

You need two PolygonSymbolisers to offset the marks (and another to color the polygon). So to get an effect like this: You need a Rule like this: <Rule> <Name>Offset Symbols</...
Ian Turton's user avatar
  • 82.2k
0 votes
Accepted

Using openid-connect access token and getting 403 in postman and 401 in logs

This was just a matter of setting the entire attribute for role source instead of just roles
yoda's user avatar
  • 101
0 votes

How can I apply <ogc:And> inside <ogc:Function name="if_then_else">

A function cannot take a filter as an argument, it can only take another function. The following might work ("And" as a function has been added around 2020, won't work if your GeoServer is ...
Andrea Aime's user avatar
  • 17.5k
1 vote

Tiles getting generated in both PostgreSQL and gwc directory?

The disk quota database does not store tiles, it just stores a ledger of how much space the tiles use on disk, and how frequently/recently they have been accessed. When the quota is reached, this ...
Andrea Aime's user avatar
  • 17.5k
1 vote
Accepted

Why does SLD apply two Rules

This is not part of the SLD standard, but if you are using GeoServer, you can add the following tag before closing your FeatureTypeStyle: <VendorOption name="ruleEvaluation">first</...
Andrea Aime's user avatar
  • 17.5k
0 votes

Why does SLD apply two Rules

I would add a new rule with the 'And' operator that includes the filters for both rule 1 and 2. <Rule> <name>new_rule</name> <ogc:Filter> <ogc:And> *...
SirLostalot's user avatar
1 vote

Why does SLD apply two Rules

The only way to prevent the second rule would be to make the filter not match the feature.
Ian Turton's user avatar
  • 82.2k
0 votes

GeoServer Tomcat 302 redirect loop or 500 error after attempted upgrade

It turns out this has been reported as an issue in the Geoserver tracker: https://osgeo-org.atlassian.net/browse/GEOS-11326 I am on Tomcat 9.0.58, so an upgrade might fix the problem. That's not an ...
Tom Chadwin's user avatar
  • 5,862
0 votes

SVG not fully rendered in GeoServer

I encountered the same problem. Check your svg file, whether it define fields named 'height' or 'width' fields. Delete it , or adjust it to fix the 'viewbox' size
Beettle Juice's user avatar
1 vote

How to change styles (style group) for a LayerGroup

Layer Groups work a little differently. When you define your layer group, each layer in the layer group can have a style, but you can't just apply a style to a layer group (since styles only really ...
Rob Quincey's user avatar
  • 1,740
0 votes

Why GeoServer illustrates SVG symbols only partially?

I have checked my files. Apparently, this is what I have added in the header of the SVG file that fixed the problem. <?xml version="1.0" encoding="utf-8" standalone="yes&...
milad's user avatar
  • 729
0 votes

How to select <Rule> according to env params in GeoServer SLD

finally,I found a way to realize what I wanted <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/...
Beettle Juice's user avatar
0 votes

Style group of values different in a raster dataset in GeoServer-SLD

I'm not really sure what happens when you apply a filter to a raster - it is technically allowed by the specification, I'm just not sure that what should happen is defined. Filters are designed to ...
Ian Turton's user avatar
  • 82.2k
0 votes

How to select <Rule> according to env params in GeoServer SLD

Filters in SLD are designed to be evaluated for each feature in the data store, what you seem to be trying to do (if I understand your question) is to change the style for a whole map request. In that ...
Ian Turton's user avatar
  • 82.2k
0 votes

Uploading multiple ECW files to GeoServer

I installed a Geoserver that's already configured to load ECW files. https://github.com/urbanits/geoserver There are some docker images that convert ECW to COG files. For example: https://github.com/...
Abs's user avatar
  • 131
0 votes

Removing white background from GeoTIFF in GeoServer

For those who can install GDAL, it looks like the better command to do this is nearblack (also works with white ^^). It's made especially to remove black, white or custom color border background (...
Adrien Rey-Jarthon's user avatar
1 vote

Else condition in sld styling

You need a rule with an elsefilter filter, which oddly is in the SLD namespace not the ogc one.
Ian Turton's user avatar
  • 82.2k
0 votes
Accepted

When WMS renders grids, areas with no data are rendered in the color corresponding to the '0' value

Friends, I have resolved this issue. It requires modifying the 'Footprint Behavior' setting in the Layer Properties interface, under the 'Data' tab, to 'cut'. This option masks the layer extent based ...
苏云明's user avatar
1 vote
Accepted

Default SLD symbology broken in Kartoza's GeoServer docker-compose

I had the same error, and as others pointed out, it seems it was a bug in kartoza's Docker image. I upgraded to 2.25.1, which was recently released and the issue was fixed.
Ludovic Beghin's user avatar
2 votes
Accepted

GeoServer - Assign color to the feature based on HEX/RGB value from the attribute

There are two ways to accomplish this. If you want to colour your polygon layer based on hard-coded values, you can achieve this by obtaining the HEX colour from the layer and assigning it to your SLD ...
nasser tahani's user avatar
0 votes

SLD styling a polygon with a base fill and a transparent pattern png

So when the graphic points to web server that hosts the png it doesn't work. (I realize the full web address is not in the code above) If I upload the png within the web admin ui under styles, it ...
Jay Hill's user avatar

Top 50 recent answers are included