O'Reilly logo

Mastering GeoServer by Colin Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Freemarker templates to change WMS responses

Until now, the methods of controlling GeoServer output we have focused on have been concerned with the rendered output. We are going to change the track slightly now and take a look at how we can manipulate the response that GeoServer provides to WMS GetFeatureInfo requests.

A GetFeatureInfo request is a standard WMS request that returns the feature information for a given location on a map for one or more layers. In essence, it is the equivalent of a standard feature's information interrogation that one might do in a Desktop GIS. GeoServer receives the request and then calculates if any features of the given layer, or layers, intersect the location specified.

If any features are hit, then they ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required