Mastering GeoServer
eBook - ePub

Mastering GeoServer

Colin Henderson

Share book
  1. 420 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering GeoServer

Colin Henderson

Book details
Book preview
Table of contents
Citations

About This Book

Whether you have used GeoServer before or are just starting out with it, this book will give you the skills and knowledge to unlock the value of your spatial information and deliver great looking maps.

This book will take you on a journey from installing GeoServer in a production environment through to securing and optimizing it so it's ready for use. Along the way, you will learn how to optimize your raster data for efficient delivery, exploit data stored in a spatial database, style data to create great looking maps, use GeoServer as a proxy, create scripts to perform spatial analysis, and monitor the health of your server.

Consequently, if you are looking to unlock the potential of GeoServer to deliver powerful desktop and mobile web mapping solutions that exploit spatial and location-based data, the tutorials inside this book will meet your needs for a detailed solution.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Mastering GeoServer an online PDF/ePUB?
Yes, you can access Mastering GeoServer by Colin Henderson in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming. We have over one million books available in our catalogue for you to explore.

Information

Year
2014
ISBN
9781783287697
Edition
1

Mastering GeoServer


Table of Contents

Mastering GeoServer
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Installing GeoServer for Production
Java requirements
Installing Java on CentOS 6.3
Installing Java on Windows Server 2008 R2 SP1
Installing Apache Tomcat
Installing Apache Tomcat 7 on CentOS 6.3
Running Apache Tomcat as a service
Securing Apache Tomcat
Installing Apache Tomcat 7 on Windows Server 2008 R2 SP1
Controlling the Tomcat service
Configuring the Tomcat service
Deploying GeoServer to Apache Tomcat
Deploying on CentOS 6.3
Deploying on Windows Server 2008 R2 SP1
Checking GeoServer deployment
Configuring GeoServer for maximum performance and availability
Scaling vertically
Scaling horizontally
Getting the best of both
Configuring multiple GeoServer instances on a single server
Configuring on CentOS 6.3
Configuring on Windows Server 2008 R2 SP1
Summary
2. Working with Raster Data
Increasing the raster formats supported by GeoServer
Installing the GDAL binary libraries
Installing on CentOS Linux 6.3
Installing on Windows Server 2008 R2 SP1
Setting environment variables
Installing the GeoServer GDAL plugin
How to optimize raster data for better performance
Understanding your source data
Single file versus multifile
GeoTIFF overviews and tiling
GeoTIFF overviews
GeoTIFF tiles
Converting raster formats to GeoTIFF
How to serve very large raster datasets
Using the ImageMosaic format
Creating ImageMosaic automatically
Creating ImageMosaic manually
How to use the ImageMosaic JDBC extension
Installing the extension
Configuring the extension
Preparing and loading raster data
Creating the metadata table
Creating the extension configuration files
Creating the GeoServer data store
Summary
3. Working with Vector Data in Spatial Databases
Database connection pooling
Understanding database connection pools
Configuring a database connection pool
JNDI connection or JDBC
Configuring JNDI at the servlet container
General database connection parameters
The primary key metadata table
The database session startup SQL
The database session close-up SQL
The geometry metadata table
Serving data from PostGIS
Publishing a PostGIS table as a layer
Serving data from Oracle
Installing the Oracle extension
Validating the installation
Publishing an Oracle table as a layer
Serving data from Microsoft SQL Server and SQL Azure
Installing the Microsoft SQL Server extension
Installing Microsoft JDBC drivers on Linux
Installing Microsoft JDBC drivers on Windows Server 2008 R2
Validating the installation
Publishing a Microsoft SQL Server table as a layer
Creating SQL View layers
GeoServer SQL Views versus database views
Creating a SQL View layer
Summary
4. Using GeoServer to Serve Complex Features
The difference between simple and complex features
Simple features – GeoServer's default
Complex features
Using GeoServer application schemas
Installing and configuring the extension
Configuring the WFS service
Application schema mapping file
Publishing data with an application schema
Source data preparation
The application schema mapping file
Data store and feature type configuration
Summary
5. Using GeoServer as a Proxy
Defining cascaded services
Using cascaded services
Extending the capabilities of another WMS server
WMS enabling a WFS-only server
Using GeoServer as a reverse proxy
Creating a cascaded WMS connection
Creating the data store
Publishing a cascaded WMS layer
Connecting to a cascaded WFS
Creating the data store
Connecting through a proxy
Extending server capabilities
Summary
6. Controlling the Output of GeoServer
Styling data with Styled Layer Descriptor
Creating SLDs visually
Taking SLD further – render transformations
Styling data using Cascaded Style Sheets
Installing the extension
The basics of CSS styles
Putting it all together
Per-request styling of map features
Per-request filtering of data
Using Freemarker templates to change WMS responses
Summary
7. Using GeoServer to Print Maps
The GeoServer print extension
Installing the print extension
Verifying the print extension installed
Configuring the print extension
The dpis section
The formats section
The scales section
The fonts section
The hosts whitelist section
The layouts section
Defining print layouts
Defining the layout metaData element
Defining layout pages
Making print requests
The REST API
Getting the print server capabilities
Specifying print requests
An example OpenLayers application
Initializing the application
Generating the print SPEC to POST
Sending the print request
Summary
8. Integrating GeoServer in a Spatial Data Infrastructure
Definition of a spatial data infrastructure
The technology platform of a spatial data infrastructure
User perspective – editing data through WFS-T
Using a Desktop GIS
Connecting QGIS to GeoServer's WFS-T service
Using the QGIS Topology Checker tool
Using the WFS-T service to save results
User perspective – consuming data
Launching Google Earth from GeoServer
Using the KML reflector to load data
Using Google Earth network links
Summary
9. GeoServer as a Spatial Analysis Platform
Understanding Web Processing Services
A WPS process
WPS process chaining
Installing the WPS extension
Checking whether the extension is installed correctly
Configuring the extension
The workspace configuration section
The Service Metadata configuration section
The Execution Settings configuration section
The Process groups configuration section
Using WPS to perform spatial analysis
Executing a WPS process
Executing chained WPS processes
Selecting the crime type
Selecting the Police Force territory
Executing the WPS process chain
Understanding GeoScript
GeoScript integration with GeoServer
Installing the GeoScript extension
Checking whether the extension has been installed correctly
Scripting GeoServer
Creating a WPS process
Defining the WPS process...

Table of contents