Book Image

Expert GeoServer

By : Ben Mearns
Book Image

Expert GeoServer

By: Ben Mearns

Overview of this book

GeoServer is open source, server-side software written in Java that allows users to share and edit geospatial data. In this book, you'll start by learning how to develop a spatial analysis platform with web processing services. Then you'll see how to develop an algorithm by chaining together geospatial analysis processes, which you can share with anyone in the world. Next you'll delve into a very important technique to improve the speed of your map application—tile caching. Here, you'll understand how tile caching works, how to develop an effective tile cache-supported web service, and how to leverage tile caching in your OpenLayers web application. Further on, you'll explore important tweaks to produce a performant GeoServer-backed web mapping application. Moving on, you'll enable authentication on the frontend and backend to protect sensitive map data, and deliver sensitive data to your end user. Finally, you'll see how to put your web application into production in a secure and user-friendly way. You'll go beyond traditional web hosting to explore the full range of hosting options in the cloud, and maintain a reliable server instance.
Table of Contents (7 chapters)

Using the tile cache

In the previous section, you learned how to create a tile-backed app using OpenLayers. In this section, we'll take a deeper dive into using the tile cache. We'll start by viewing the app we created in the last section in the browser. Next, we'll send a request for a tile generated by the app, but this time with the command-line utility curl. Finally, you'll learn about seeding and rendering the tile cache.

Here is the OpenLayers app that we created in the previous section:

We'll use Developer tools from the browser again to see a URL for a particular tile, and then see what that looks like in curl. You can see we have tile requests here to OpenStreetMap, and also to our GeoServer instance:

I'll just grab one of these link addresses, URLs, and then, moving over into the command line, if we already have curl installed, we can...