48 votes
Accepted

Enabling CORS in GeoServer (jetty)?

Edit the webapps/geoserver/WEB-INF/web.xml file. There are two references to CORS in this file: <!-- Uncomment following filter to enable CORS --> <filter> <filter-name>cross-...
Ian Turton's user avatar
  • 81.4k
18 votes

Creating Layer in GeoServer using REST

I know this is an old question, but just in case anyone else is confused as I was. The important part is that you cannot create a layer from the http://geoserver/rest/layers endpoint. If you are ...
lostintranslation's user avatar
17 votes
Accepted

Not able to deploy geoserver.war through apache tomcat

I believe that is a problem of the filesize of the WAR file of geoserver. At default tomcat only accepts 50MB in the WAR files to upload, open with notepad the file: C:\Program Files (x86)\Apache ...
Hassim's user avatar
  • 394
16 votes
Accepted

How to change the port on which GeoServer 2.13 runs on when it is installed as platform independent binary on Linux

All you do is edit the line in start.ini that says: jetty.port=8080 to: jetty.port=8585 start GeoServer up ./bin/start.sh or .\bin\start.bat and away you go.
Ian Turton's user avatar
  • 81.4k
13 votes
Accepted

Geodjango with Geoserver and Openlayers

It depends on your needs. If you need to display a relatively small number of relatively simple features (such as all locations for shop) then you can eliminate Geoserver and simply use GeoDjango as ...
Alexander's user avatar
  • 938
13 votes

QGIS and Chrome Browser showing different resolution for same WMTS?

By the looks of it you render the QGIS WMTS in a different projection than the original WMTS. This can be seen by the angle of intersection of the highways. In QGIS this seem to be a perfect 90 degree ...
LMB's user avatar
  • 1,166
12 votes

Obtaining WMS URL in GeoServer?

After logging into your geoserver web portal, just check the Layer Preview option. This lists all layers configured in geoserver. You can search for your shapefile in this list. This will have a ...
GeoSpatialEarth.in's user avatar
11 votes

'Read Only' Exception - WFS

For anyone who is having the same issue, this worked for me: In Geoserver, Go to "Data Security" section. Check if writing is allowed to anonymous user for all the workspace (..w), or create a new ...
Sanchez Franco's user avatar
11 votes
Accepted

Transparent NoData through WMS in Leaflet

Make sure to set the format option of the L.TileLayer.WMS to image/png, as explained in the documentation. The default is to use .jpg for map image tiles, which is a image format which doesn't handle ...
IvanSanchez's user avatar
  • 10.2k
11 votes

geoserver 2.10 fresh install getting "HTTP ERROR: 503 Problem accessing /geoserver/. Reason: Service Unavailable"

I ran into this issue while attempting to run geoserver without administrator privileges. sudo -u root -i and all was good.
tony gil's user avatar
  • 487
11 votes
Accepted

How to determine the source of a GeoServer layer?

The information is available in the feature type. While I haven't found it using the UI, you can use the REST interface to see it: http://localhost/geoserver/rest/workspaces/<workspaceName>/...
JGH's user avatar
  • 41.7k
11 votes
Accepted

QGIS and Chrome Browser showing different resolution for same WMTS?

The zoomscales in QGIS probably differ from the configured grid set in GeoServer. This causes resampling of the images in QGIS resulting in less sharp images and less performance. See GeoServer ...
nielsgerrits's user avatar
  • 3,924
10 votes
Accepted

large GeoTiff files on Geoserver

Based on the advice in "GeoServer on Steroids" I would aim for a mosaic of GeoTiffs. Page 8 clearly states to choose a mosaic when: A single file gets too big (inefficient seeks, too much ...
Ian Turton's user avatar
  • 81.4k
10 votes

Understanding difference between Amazon Web Services and GeoServer?

AWS is a set of virtualized hardware that looks like a computer to you and others. GeoServer is a piece of software that converts spatial data into web maps, it can run on an AWS instance.
Ian Turton's user avatar
  • 81.4k
10 votes
Accepted

Qgis exported SLD file is not valid on Geoserver

Current QGIS releases export invalid SLD 1.1 in various ways. In your example, you should amend the gap this way: <se:Gap>3</se:Gap> There are also other issues like wrong sizes and the ...
Andrea Aime's user avatar
  • 17.4k
10 votes
Accepted

GeoServer - stores intermittently becoming disabled

Stores gets disabled on startup when the source store is not reachable (cannot be contacted). You can avoid that by: Upgrading to GeoServer 2.11.x Go to "global settings" and set the service error ...
Andrea Aime's user avatar
  • 17.4k
10 votes
Accepted

Forming queries with node.js, PostGIS and GeoServer?

It is not easy to get the open source based overall web-mapping architecture. When we use open source, we can combine many tools. Sometimes, we just get one or two features of a tool. We have many, ...
jgrocha's user avatar
  • 5,320
9 votes
Accepted

GeoServer WFS GetFeature with BBOX returns too many elements?

The WFS BBOX works in "bbox vs bbox" mode for performance reasons, if you want the more accurate geometry intersection you can use a OGC Filter or CQL filter with the intersection operator. As for ...
Andrea Aime's user avatar
  • 17.4k
9 votes
Accepted

Rotation in GeoServer SLD

Something like this should work, using the math operators - please note it is untested: <Rotation> <ogc:Div> <ogc:Sub> <ogc:Literal>450</ogc:Literal&...
JimT's user avatar
  • 2,373
9 votes
Accepted

WFS and WMS query SRS parameter and BBOX usage

WMS and WFS have different behavior. In WMS the SRS and BBOX parameters are mandatory and the SRS defines both the output projection, and the BBOX has to be expressed in the SRS coordinates. In WFS ...
Andrea Aime's user avatar
  • 17.4k
9 votes
Accepted

Run arbitrary Python scripts on GeoServer

GeoServer does not run your OS Python, but uses Jython instead, a Java version of the same language. That comes with its own set of ported libraries and abilities. Learn more about it here: http://...
Andrea Aime's user avatar
  • 17.4k
9 votes
Accepted

How do I turn off some formats in GeoServer's WMS?

In the generic Web Map Service configuration (that is before you have chosen a workspace), you get options (at the bottom of the page) to configure the Allowed MIME types for a GetMap request, and ...
nmtoken's user avatar
  • 13.3k
9 votes
Accepted

GeoServer not compatible with Tomcat 10

This question appeared some time ago on the geoserver-users mailing list https://sourceforge.net/p/geoserver/mailman/message/37217720/. On 09-02-2021 18:59 … I'm trying to deploy Geoserver 2.18.2 ...
user30184's user avatar
  • 65.2k
8 votes

How to avoid duplicate labels on each tile?

with this code... <TextSymbolizer> <Geometry> <ogc:Function name="centroid"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> ...
user67417's user avatar
8 votes

Geoserver SLD external graphic path

Check if you have created the style definition inside a workspace. If you are in this situation you have to place the png image into $GEOSERVER_DATA_DIR/wokspaces/{Name}/styles directory or any ...
Juan Jaraices's user avatar
8 votes

Disable GetCapabilities in GeoServer

The reason why GeoServer (as every server compliant to the OpenGIS Webservice-format) provides this function is to be able to determine what your WMS or WFS is able to do, which kind of data they use (...
MakePeaceGreatAgain's user avatar
8 votes
Accepted

WFS Intersect Filter using a Polygon returns all features in Layer

Try with intersects: <ogc:Intersects> ... </ogc:Intersects>
WKT's user avatar
  • 2,183
8 votes
Accepted

Access-Control-Allow-Origin Openlayers WFS

I think you are using jetty and not catalina, I got same problem in Windows : http://www.eclipse.org/jetty/documentation/current/cross-origin-filter.html Try putting instead in web.xml : <filter&...
Raiko's user avatar
  • 157
8 votes
Accepted

Filtering number of features in GeoServer using SLD?

Personally, I would try to separate data store access/publishing from layer styling. You could create a SQL View for the datastore, effectively adding a new layer with the query result table. The ...
geozelot's user avatar
  • 30k
8 votes
Accepted

How to find layer names within vector tiles, without TileJSON or the .mbtiles file?

If you're okay to write a NodeJS script you can use const request = require('request'); const VectorTile = require('@mapbox/vector-tile').VectorTile; const Pbf = require('pbf'); const zlib = require('...
AndrewHarvey's user avatar
  • 2,219

Only top scored, non community-wiki answers of a minimum length are eligible