You are previewing GeoServer Beginner's Guide.
O'Reilly logo
GeoServer Beginner's Guide

Book Description

Share and edit geospatial data with this open source software server

  • Learn free and open source geospatial mapping without prior GIS experience

  • Share real-time maps quickly

  • Learn step-by-step with ample amounts of illustrations and usable code/list

In Detail

GeoServer is an open source server-side software written in Java that allows users to share and edit geospatial data. Designed for interoperability, it publishes data from any major spatial data source using open standards. GeoServer allows you to display your spatial information to the world. Implementing the Web Map Service (WMS) standard, GeoServer can create maps in a variety of output formats. OpenLayers, a free mapping library, is integrated into GeoServer, making map generation quick and easy. GeoServer is built on Geotools, an open source Java GIS toolkit.

GeoServer Beginner’s Guide gives you a kick start to build custom maps using your data without the need for costly commercial software licenses and restrictions. Even if you do not have prior GIS knowledge, you will be able to make interactive maps after reading this book.

You will install GeoServer, access your data from a database, style points, lines, polygons, and labels to impress site visitors with real-time maps.

Follow along through a step-by-step guide that installs GeoServer in minutes. Explore the web-based administrative interface to connect to backend data stores such as MySQL, PostGIS, MSSQL, and Oracle. Display your data on web-based interactive maps, style lines, points, polygons, and embed images to visualize this data for your web visitors. Walk away from this book with a working application ready for production.

After reading the GeoServer Beginner’s Guide, you will have beautiful, custom maps on your website built using your geospatial data.

Table of Contents

  1. GeoServer Beginner's Guide
    1. Table of Contents
    2. GeoServer Beginner's Guide
    3. Credits
    4. About the Authors
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
        3. Instant Updates on New Packt Books
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Time for action – heading
        1. What just happened?
        2. Pop quiz – heading
        3. Have a go hero – heading
      6. Reader feedback
      7. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. GIS Fundamentals
      1. What is GIS about?
      2. The foundation of any GIS – spatial data
        1. Measuring the world
        2. Have a go hero – move around the planet with decimal degree coordinates
        3. Projecting a sphere on a plane
      3. Understanding coordinate systems
        1. Commonly used coordinate systems
          1. Universal Transverse Mercator system
          2. Web Mercator
        2. Spatial Reference Identifier (SRID)
        3. Have a go hero – explore EPSG registry
      4. Representing geometrical shapes
      5. Modeling the real world with raster data
      6. Representing the world
      7. Time for action – exploring OpenStreetMap
        1. What just happened?
      8. Adding more colors to your maps
        1. Choropleth maps
        2. Proportional maps
      9. Time for action – making your thematic map
        1. What just happened?
      10. Summary
    9. 2. Getting Started with GeoServer
      1. Installing Java
      2. Time for action – checking the presence of Java on Windows
        1. What just happened?
      3. Time for action – checking the presence of Java on Ubuntu
        1. What just happened?
      4. Time for action – installing JRE on Windows
        1. What just happened?
      5. Time for action – installing JRE on Ubuntu
        1. What just happened?
      6. Installing Apache Tomcat
      7. Time for action – installing Apache Tomcat on Windows
        1. What just happened?
      8. Time for action – installing Apache Tomcat on Ubuntu
        1. What just happened?
      9. Time for action – configuring Tomcat as a service on Ubuntu
        1. What just happened?
        2. Have a go hero – exploring the Tomcat web interface
        3. Pop quiz – setting up Java
      10. Installing GeoServer
      11. Time for action – deploying GeoServer on Tomcat
        1. What just happened?
      12. Implementing basic security
      13. Time for action – improving security settings
        1. What just happened?
        2. Pop quiz – GeoServer security
      14. Summary
    10. 3. Exploring the Administrative Interface
      1. Understanding the interface
      2. About & Status
        1. Server Status
          1. Locks
          2. Connections
          3. Memory Usage
          4. JVM Version and fonts
          5. JAI usage and configurations
          6. Update Sequence
          7. Resource Cache
          8. Configuration and catalog
        2. GeoServer Logs
        3. Contact Information
        4. About
      3. Time for action – manually reloading configuration
        1. What just happened?
        2. Have a go hero – exploring the bug tracker
      4. Data
        1. Layer Preview
      5. Time for action – OpenLayers preview
        1. What just happened?
      6. Time for action – KML preview
        1. What just happened?
        2. Workspaces
      7. Time for action – creating a workspace
        1. What just happened?
        2. Stores
        3. Layers
        4. Layer groups
        5. Styles
      8. Services
        1. WMS
      9. Time for action – limiting the SRS list from WMS
        1. What just happened?
        2. WFS
        3. WCS
      10. Settings
        1. Global
          1. Verbose Reporting
          2. Enable Global Services
          3. Proxy Base URL
          4. Logging Profile
          5. Log to StdOut
          6. Log location
      11. Time for action – changing your logging configuration
        1. What just happened?
        2. Have a go hero – making your own logging level
        3. JAI
      12. Tile Caching
      13. Security
        1. Settings
        2. Users, Groups, and Roles
        3. Data
          1. Catalog security
        4. Services security
      14. Demos
      15. Time for action – exploring Demo requests
        1. What just happened?
        2. SRS List
      16. Time for action – filtering the projection list
        1. What just happened?
      17. Summary
    11. 4. Accessing Layers
      1. Layer types
      2. OpenLayers
      3. Time for action – exploring OpenLayers options
        1. What just happened?
        2. Working with tiles
        3. Have a go hero – selecting a features subset with filters
      4. Exploring the Web Map Service output formats
        1. AtomPub
        2. GIF
        3. GeoRSS
        4. JPEG
        5. KML (Plain)
        6. KMZ (Compressed)
        7. PDF
        8. PNG
        9. SVG
        10. TIFF
      5. Web Feature Service
        1. CSV
        2. GML (plain text)
        3. GML2 (compressed GZIP)
        4. GeoJSON
      6. Time for action – parsing GeoJSON
        1. Shapefile
      7. Extra output options
        1. GDAL and OGR output
        2. TEXT/HTML
      8. Time for action – using the GetFeatureInfo freemarker template
        1. What just happened?
        2. Have a go hero – changing another layer
          1. ImageMap
      9. Using WMS Reflector
      10. Time for action – using WMS Reflector
        1. What just happened?
        2. Have a go hero – exploring the pdf Reflect option
        3. Pop quiz – accessing data
      11. Summary
    12. 5. Adding Your Data
      1. Configuring your data
      2. Configuring vector data sources
        1. Adding a properties file
        2. Configuring an external Web Feature Service
        3. Adding shapefiles
      3. Time for action – adding shapefiles
        1. What just happened?
        2. Using PostGIS
      4. Time for action – installing PostgreSQL and PostGIS
        1. What just happened?
      5. Time for action – loading data in PostGIS and publishing them in GeoServer
        1. What just happened?
        2. Have a go hero – filtering data
      6. Configuring raster data sources
        1. ArcGrid
        2. GeoTiff
        3. Gtopo30
        4. ImageMosaic
        5. WorldImage
        6. Configuring an external Web Map Service
        7. Pop quiz – adding data to GeoServer
      7. Exploring additional data sources
        1. Using Oracle
      8. Time for action – adding Oracle support in GeoServer
        1. What just happened?
        2. Using MySQL
      9. Time for action – adding MySQL data source
        1. What just happened?
        2. Pop quiz – adding data
      10. Summary
    13. 6. Styling Your Layers
      1. Understanding Styled Layer Descriptor
      2. Editing styles
      3. Exploring the standard structure of a style
      4. Time for action – viewing GeoServer bundled styles
        1. What just happened?
        2. Pop quiz – SLD basic elements
      5. Loading data for styling
      6. Working with point symbols
      7. Time for action – creating a simple point style
        1. What just happened?
      8. Time for action – adding a stroke value
        1. What just happened?
      9. Time for action – dealing with angles and transparency
        1. What just happened?
      10. Time for action – composing simple shapes
        1. What just happened?
      11. Time for action – using external graphics
        1. What just happened?
        2. Pop quiz – styling points
        3. Have a go hero – composing your symbol
      12. Linestring symbols
      13. Time for action – creating a simple line style
        1. What just happened?
      14. Time for action – adding a border and a centerline
        1. What just happened?
      15. Time for action – using hatching
        1. What just happened?
      16. Time for action – using dashed lines
        1. What just happened?
      17. Time for action – mixing dashing lines and markers
        1. What just happened?
      18. Working with polygon symbols
      19. Time for action – creating a simple polygon style
        1. What just happened?
      20. Time for action – using a graphic filling
        1. What just happened?
      21. Time for action – using hatching with polygons
        1. What just happened?
        2. Pop quiz – styling lines and polygons
      22. Adding labels
      23. Time for action – labeling points
        1. What just happened?
      24. Time for action – labeling lines
        1. What just happened?
        2. Have a go hero – styling labels for lines
      25. Time for action – labeling polygons
        1. What just happened?
      26. Thematic mapping
      27. Time for action – classifying roads
        1. What just happened?
        2. Have a go hero – styling labels for lines
      28. Setting visibility
      29. Time for action – enhancing thematic roads map
        1. What just happened?
      30. Putting it all together
      31. Time for action – grouping layers
        1. What just happened?
        2. Have a go hero – composing a full map
      32. Summary
    14. 7. Creating Simple Maps
      1. Exploring Google Maps API
      2. Time for action – adding a GeoServer layer as overlay
        1. What just happened?
      3. Time for action – adding a GeoServer layer as a base layer
        1. What just happened?
        2. Using pre-calculated maps
      4. Time for action – adding a GeoServer cached layer as overlay
        1. What just happened?
      5. Time for action – customizing Google basemap
        1. What just happened?
        2. Have a go hero – creating a custom Google map layer
        3. Interacting with the user
      6. Time for action – intercepting the Click event
        1. What just happened?
      7. Using OpenLayers
      8. Time for action – integrating GeoServer and OpenLayers
        1. What just happened?
      9. Time for action – using GeoRSS with OpenLayers
        1. What just happened?
      10. Exploring Leaflet
      11. Time for action – using Leaflet with GeoServer layers
        1. What just happened?
        2. Pop quiz – creating mapping apps
      12. Summary
    15. 8. Performance and Caching
      1. Exploring GeoWebCache
      2. Time for action – configuring GeoWebCache storage
        1. What just happened?
      3. Time for action – configuring Disk Quota
        1. What just happened?
      4. Setting caching defaults
        1. Direct integration
        2. WMS-C
        3. TMS and WMTS
        4. Default layers options
        5. Default Cached Gridsets
      5. Configuring gridsets
      6. Time for action – creating a custom gridset
        1. What just happened?
      7. Configuring tile layers
      8. Time for action – configuring layers and layer groups for caching
        1. What just happened?
      9. Time for action – using tiles with OpenLayers
        1. What just happened?
        2. Have a go hero – building a client for tiger county layer
      10. Time for action – seeding a layer
        1. What just happened?
        2. Pop quiz – configuring integrated GeoWebCache
      11. Using an external GeoWebCache
      12. Summary
    16. 9. Automating Tasks: GeoServer REST Interface
      1. Introducing REST
      2. Using REST
      3. Time for action – installing the Requests library
        1. What just happened?
      4. Managing data
        1. Working with workspaces and namespaces
      5. Time for action – managing workspaces
        1. What just happened?
        2. Using data stores
      6. Time for action – managing data stores
        1. What just happened?
        2. Using feature types
      7. Time for action – adding a new shapefile
        1. What just happened?
      8. Time for action – adding a PostGIS table
        1. What just happened?
        2. Have a go hero – create a new shapefile
      9. Publishing data
        1. Working with styles
      10. Time for action – adding a new style
        1. What just happened?
        2. Working with layers
      11. Time for action – managing layers
        1. What just happened?
        2. Pop quiz – reviewing REST operations
      12. Summary
    17. 10. Securing GeoServer Before Production
      1. Basic security settings
      2. Time for action – enabling strong encryption
        1. What just happened?
      3. Time for action – changing the master password
        1. What just happened?
      4. Defining users, groups, and roles
        1. User definition
        2. Group definition
        3. User/group services
        4. Roles definition
      5. Time for action – creating users and groups
        1. What just happened?
      6. Time for action – defining roles
        1. What just happened?
      7. Accessing data and services
        1. Have a go hero – creating a new shapefile
      8. Time for action – securing layers
        1. What just happened?
        2. Pop quiz – reviewing security
      9. Summary
    18. 11. Tuning GeoServer in a Production Environment
      1. Tuning Java
      2. Time for action – configuring Java runtime parameters
        1. What just happened?
      3. Time for action – installing native JAI
        1. What just happened?
      4. Removing unused services
      5. Time for action – disabling unused services
        1. What just happened?
      6. Setting a proxy
      7. Time for action – configuring a proxy
        1. What just happened?
      8. Avoiding service faults
      9. Time for action – configuring a cluster
        1. What just happened?
        2. Pop quiz – production environment
      10. Summary
    19. 12. Going Further: Getting Help and Troubleshooting
      1. Going beyond maps
        1. Delivering vector data
      2. Time for action – retrieving vector data
        1. What just happened?
        2. Delivering raster data
      3. Time for action – retrieving raster data
        1. What just happened?
      4. Getting help
        1. Have a go hero – GeoServer needs you!
        2. Pop quiz - using WFS and WCS
      5. Summary
    20. A. Pop Quiz Answers
      1. Chapter 2, Getting Started with GeoServer
        1. Pop quiz – setting up Java
        2. Pop quiz – GeoServer security
      2. Chapter 4, Accessing Layers
        1. Pop quiz – accessing data
      3. Chapter 5, Adding your Data
        1. Pop quiz – adding data to GeoServer
        2. Pop quiz – adding data
      4. Chapter 6, Styling your Layers
        1. Pop quiz – SLD basic elements
        2. Pop quiz – styling points
        3. Pop quiz – styling lines and polygons
      5. Chapter 7, Creating Simple Maps
        1. Pop quiz – creating mapping apps
      6. Chapter 8, Performance and Caching
        1. Pop quiz – configuring integrated GeoWebCache
      7. Chapter 9, Automating Tasks: GeoServer REST Interface
        1. Pop quiz – reviewing REST operations
      8. Chapter 10, Securing GeoServer before Production
        1. Pop quiz – reviewing security
      9. Chapter 11, Tuning GeoServer in a Production Environment
        1. Pop quiz – production environment
      10. Chapter 12, Going Further: Getting Help and Troubleshooting
        1. Pop quiz – using WFS and WCS
    21. Index