Reader small image

You're reading from  Mastering Geoserver

Product typeBook
Published inNov 2014
Publisher
ISBN-139781783287697
Edition1st Edition
Right arrow
Author (1)
Colin Henderson
Colin Henderson
author image
Colin Henderson

Colin Henderson is a spatial solutions architect with 14 years of experience working on solutions to complex spatial problems. He is currently the Geospatial Systems Capability Lead for Atkins, one of the world's leading design, engineering, and project management consultancies. Although experienced in a wide range of proprietary GIS software, his current focus is on specializing in the integration of open source software in complex enterprise environments. His most recent projects involve the integration of GeoServer with FME Server from Safe Software and the delivery of spatial web-mapping applications through Esri's ArcGIS for the Server platform and Latitude Geographics' Geocortex framework. Colin is the Technical Architect and Lead Developer of Atkins' open source-based spatial integration platform, CIRRUSmaps, a solution built on the best breed of open source spatial software, including PostGIS and OpenLayers, with GeoServer at its heart, and designed from the ground-up for deployment in cloud environments. A self-confessed techie, Colin enjoys digging deeper to understand technology and software, and then applying this learning to create innovative solutions to problems. When possible, he likes to "pay it forward" by helping others with their problems, through contributions on GIS Stack Exchange, in particular.
Read more about Colin Henderson

Right arrow

Chapter 2. Working with Raster Data

In the first chapter, we looked at setting up one or more instances of GeoServer in a way that will make them perform well in a production environment. However, configuring instances so that they run well is only a part of the performance equation. Loading well-structured and optimized data for GeoServer to serve is another part.

In this chapter, we will focus on how raster data can be prepared and stored so that GeoServer can serve it efficiently, and in doing so, we will maximize the benefit of the effort that we put in setting up GeoServer. This chapter assumes a basic knowledge of how raster datasets are served by GeoServer and how to use the web administration interface, configure stores, and publish layers.

We will address a range of topics, from looking at how we can increase the types of raster data we can serve to how we can serve vast coverage of raster data efficiently. By the end of this chapter, you will have a better understanding of the following...

Increasing the raster formats supported by GeoServer


Out of the box, GeoServer supports a good range of raster formats, and for the majority of use cases, the standard supported formats are, most likely, all you will need. The standard formats supported by GeoServer Version 2.5.2 are:

It is likely that the vast majority of raster data that you will use with GeoServer will be in GeoTIFF and/or WorldImage (for example, TIFF files with an accompanying TIFF world file). However, there might come a time when you need to serve a nonstandard raster format through GeoServer, for example, MrSID. Luckily for us, these fringe...

How to optimize raster data for better performance


As talented as the GeoServer developers are, there is only so much they can do from a software perspective to help us run high-performing web mapping servers. As users of the software, we also have a part to play to get the best performance out of it. In the first instance, this is achieved through optimizing our deployment strategy and ensuring that our production environment is configured optimally, as we saw in Chapter 1, Installing GeoServer for Production. Secondly, and arguably more importantly, it's the way we prepare the data that we will deliver through GeoServer.

Unfortunately, it is the second element that most people overlook when setting up their web mapping servers—irrespective of the software they use. Well-structured and organized data can make a huge difference on the response times of a mapping server. While GeoServer is very flexible in the number of formats it can handle, and the many flavors of each format it can manipulate...

How to serve very large raster datasets


So far in this chapter, we looked at how we can increase the number of raster formats that GeoServer can serve, and considered how we can prepare our raster data for efficient serving. However, in these discussions, we only looked at relatively small numbers of raster images. We have not yet given any consideration to how we might approach the not-so-insignificant issue of serving large volumes of high resolution imagery. For example, how might we approach the challenge of serving raster data at a national scale such as large-scale aerial surveys or a national map product such as Ordnance Survey's OS StreetView?

We can stitch all the individual raster images together to create a single file containing the complete coverage. However, this will result in a considerably large file for processing (and, in fact, one that it might not be possible to store). The OS StreetView product, for example, requires approximately 10,592 files to cover Great Britain...

Summary


In this chapter, we looked at how we can increase the formats supported by GeoServer by implementing the GDAL plugin. To do this, we have to install the GDAL binaries and ensure that our environment is appropriately configured so that GeoServer is aware of it.

We looked at how important it is to consider the raster data that we want to serve through GeoServer, and learned how we can use gdalinfo to inspect our raster files to learn more about their structure. Having understood the structure of our raster images, we looked at strategies to manipulate them so that they are optimized; this included considering whether they should be merged to create larger single files. Other strategies to optimize our raster data included adding overviews and ensuring that the image data is organized internally as tiles. We saw how gdaladdo can be used to manage overviews and learned about the format creation options to control tiled-image data structures. We looked at how the ImageMosaic format can...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Mastering Geoserver
Published in: Nov 2014Publisher: ISBN-13: 9781783287697
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Colin Henderson

Colin Henderson is a spatial solutions architect with 14 years of experience working on solutions to complex spatial problems. He is currently the Geospatial Systems Capability Lead for Atkins, one of the world's leading design, engineering, and project management consultancies. Although experienced in a wide range of proprietary GIS software, his current focus is on specializing in the integration of open source software in complex enterprise environments. His most recent projects involve the integration of GeoServer with FME Server from Safe Software and the delivery of spatial web-mapping applications through Esri's ArcGIS for the Server platform and Latitude Geographics' Geocortex framework. Colin is the Technical Architect and Lead Developer of Atkins' open source-based spatial integration platform, CIRRUSmaps, a solution built on the best breed of open source spatial software, including PostGIS and OpenLayers, with GeoServer at its heart, and designed from the ground-up for deployment in cloud environments. A self-confessed techie, Colin enjoys digging deeper to understand technology and software, and then applying this learning to create innovative solutions to problems. When possible, he likes to "pay it forward" by helping others with their problems, through contributions on GIS Stack Exchange, in particular.
Read more about Colin Henderson