Tag: GeoServer

Disabling GeoServer disk quotas.

Posted by – Tuesday 2012-10-23

On some installations, GeoServer will not start because an issue with GeoWebCache’s diskquotas.

GeoWebCache is a component bundled with GeoServer that offers Time Map Service and Web Map Tile Service. Since these services might demand big amounts of disk storage, disk quotas are used to limit the consumed storage [1, 2]. Thus, other services will not stop working because a lack of available storage.


GeoServer WAR file too big for Tomcat servlet container.

Posted by – Monday 2012-10-08

One of the possible ways of installing GeoServer is by uploading its WAR file to an existing Tomcat – or any other servlet container – instance. Using Apache Tomcat I got a HTTP 500 error, and in the log file a message like this:

the request was rejected because its size (54997127) 
exceeds the configured maximum (52428800).


GeoServer SQL views.

Posted by – Monday 2012-08-20

In this post we will see a simple example of how GeoServer’s SQL views [note 1] can be used to derive multiple layers from a single SQL table.

1. The arena.

I had a table in a PostGIS database that stores the geometries of all roads in the province of Lugo. Each road has a geometry and a set of attributes. One of these attributes is ‘owner’, which stores the road owner: a municipality, a province, a regional government or the central government.

From this table I needed to generate four WMS layers: roads owned by municipalities, roads owned by the the province, and so on.


Annotation layers in GeoServer.

Posted by – Saturday 2012-07-21

Currently I am working in a project that requires switching from MapServer to GeoServer. As a newcomer to the latter, one of the things I miss is MapServer’s annotation layers. An annotation layer is one that just shows labels, like names of towns or countries. In this post we will see how annotation layers can be implemented using GeoServer.

1. The arena.

In our example there is already an existing WMS layer named ‘municipalities’, that contains the borders of some municipalities of Galicia and whose geometry type is multipolygon. The data source is a shapefile. The following screenshot – taken from GeoServer’s administration application – shows the attributes the municipalities have.

GeoServer screenshot

Our goal is showing the municipalities names in a different WMS layer, so an user of the WMS service can toggle the visibility of this annotation layer, that is, being able to show or hide, in every moment, the municipalities’ names. The names of the municipalities are stored in the attribute ‘NOMBRE’.