Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
GeoServer Beginner's Guide
GeoServer Beginner's Guide

GeoServer Beginner's Guide: Share geospatial data using Open Source standards , Second Edition

eBook
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

GeoServer Beginner's Guide

Getting Started with GeoServer

Congratulations on your choice to take your data to the world with GeoServer. It can be installed on many different operating systems since it is a Java application, as long as a Java Virtual Machine exists for that operating system. It takes advantage of multithreaded operations and supports 64-bit operating systems.

This chapter will cover, in detail, the steps that will bring you to a successful installation. Although, we will explain the whole process in detail, do not be afraid. As soon as you finish reading it, you will have your running copy of GeoServer. The steps will be illustrated in two scenarios, a Linux Mint 18, and a Windows 7 machine. We chose these two as they cover the majority of users. Because Mint is a Debian derivative, the installation process can easily be reproduced on other similar distributions, for example, Debian or Ubuntu...

Installing required components

Before you can use GeoServer on your machine, you need to install some required pieces of software. GeoServer is a Java application; therefore, one of the most important things you need to ensure is that a Java virtual machine is working on your machine.

There are two main packages of Java. Depending on what you are planning to do with Java, you may want to install a JDK (Java Development Kit) or JRE (Java Runtime Environment).

The former enables you to compile Java code, while the latter has all you need to run most Java applications. Starting from release 2.0, GeoServer does not need a full JDK installation, and you can go safely with JRE. The JDK is only required if you are planning to write and compile Java code. This is the case if you want to modify the GeoServer source code, to fix code, or add functionalities.

This book will not cover developing...

Configuring Tomcat as a service on Linux Mint

When installing on Windows, the setup configures Tomcat as a system service. This way, it will start when the computer boots without any user action. Are you wondering why do you have to manually start and stop Tomcat on Linux? You do not. As for Windows, the Linux operating system can be configured for an automatic start of programs.

In this section, you will create a script and learn how it works:

  1. Download the tomcat file from the Packt site for this book and save it on your machine. You have to move it to the /etc/init.d folder.
  2. Open it with the vi editor as follows:
        ~ $ sudo vi /etc/init.d/tomcat 
  1. There are some key settings you need to check in this file. The following lines contain the location of JRE and Tomcat. You can modify them according to your environment:
        export JAVA_HOME=/opt/java/jre1.8.0_121 
...

Installing GeoServer

We are well on our way! Go to the GeoServer download page as shown in the following screenshot (http://geoserver.org/download/) and review the installation options available. You will find some different packages for GeoServer. We will use the Web Archive version:

You may select a release from two different branches--Stable and Maintenance. Both of them are built for production purposes, so you can choose whatever you prefer; also, we suggest you select the latest release as it contains all the new features the developer team has just released.

Apart from the Production tab, you may have noted there are two other sections--Development and Archived. Inside the Development section, you will find a nightly build, these releases are not suitable for production as they may be prone to bugs, but it contains all the changes the developers did on the source code...

Deploying GeoServer on Tomcat

With Java installed and working, let's install GeoServer. When writing this book, the latest version is 2.11.0. Perform the following steps:

  1. Download the OS-independent version from GeoServer's download page. You can point your browser to the URL or use a command-line tool like wget:
      ~ $ wget   
http://sourceforge.net/projects/geoserver/files/GeoServer/
2.11.0/geoserver-2.11.0-war.zip
wget is a command-line utility commonly available on Linux systems. If you are using a Windows machine it is probably not available. You can download the items just pasting the URL into your internet browser.
  1. Check if Tomcat is not running; if it is, then stop it. Now, unzip the archive you just downloaded in the webapps folder:
        ~ $ sudo unzip -d /opt/apache-tomcat-8.5.13/webapps geoserver
-2.11.0-war.zip geoserver.war...

Implementing basic security

The web interface shown at http://localhost:8080/geoserver/web requires you to log in. You can use the default values of admin as username and geoserver as the password. Now you are on the administration console of GeoServer and can change any setting:

We will explore this interface in the next chapter, but we are sure you are wondering if a default password is a good idea for this console. Indeed it is not, and you should change it as soon as possible. We will cover many other security topics in detail in Chapter 10, Securing GeoServer Before Production.

Improving security settings

To improve the security settings, perform the following steps:

  1. We will start by changing the default password for the administrator. From the GeoServer Web Interface, locate the area on the left and go to the Security section as shown in the following screenshot:
  2. lick on the Passwords link and locate the area contained in the following screenshot, then click on the Change password link:
  1. Insert a new password in the form, at least eight characters are required, and confirm it. Then click on the Change Password button:

Although you are setting up a development machine, security is always an issue. GeoServer ships with a default administrative password; you logged onto the web interface and changed the default password, then fixed some other issues. You got just a brief taste of the powerful GeoServer web interface. We will cover it in detail...

Installing required components


Before you can use GeoServer on your machine, you need to install some required pieces of software. GeoServer is a Java application; therefore, one of the most important things you need to ensure is that a Java virtual machine is working on your machine.

There are two main packages of Java. Depending on what you are planning to do with Java, you may want to install a JDK (Java Development Kit) or JRE (Java Runtime Environment).

The former enables you to compile Java code, while the latter has all you need to run most Java applications. Starting from release 2.0, GeoServer does not need a full JDK installation, and you can go safely with JRE. The JDK is only required if you are planning to write and compile Java code. This is the case if you want to modify the GeoServer source code, to fix code, or add functionalities.

Note

This book will not cover developing Java code, but, in this case, you will need more than a Java JDK. You need to set up a full development...

Configuring Tomcat as a service on Linux Mint


When installing on Windows, the setup configures Tomcat as a system service. This way, it will start when the computer boots without any user action. Are you wondering why do you have to manually start and stop Tomcat on Linux? You do not. As for Windows, the Linux operating system can be configured for an automatic start of programs.

 

In this section, you will create a script and learn how it works:

  1. Download the tomcat file from the Packt site for this book and save it on your machine. You have to move it to the /etc/init.d folder.
  2. Open it with the vi editor as follows:
        ~ $ sudo vi /etc/init.d/tomcat
  1. There are some key settings you need to check in this file. The following lines contain the location of JRE and Tomcat. You can modify them according to your environment:
        export JAVA_HOME=/opt/java/jre1.8.0_121 
        export PATH=$JAVA_HOME/bin:$PATH 
        export CATALINA_HOME=/opt/apache-tomcat-8.5.13
  1. Now, set the permissions for...

Installing GeoServer


We are well on our way! Go to the GeoServer download page as shown in the following screenshot (http://geoserver.org/download/) and review the installation options available. You will find some different packages for GeoServer. We will use the Web Archive version:

You may select a release from two different branches--Stable and Maintenance. Both of them are built for production purposes, so you can choose whatever you prefer; also, we suggest you select the latest release as it contains all the new features the developer team has just released.

Apart from the Production tab, you may have noted there are two other sections--Development and Archived. Inside the Development section, you will find a nightly build, these releases are not suitable for production as they may be prone to bugs, but it contains all the changes the developers did on the source code, so you can use it to test the fix of a bug you discovered:

Archived contains older releases. These may be useful if...

Left arrow icon Right arrow icon

Key benefits

  • Exploit the power of GeoServer to provide agile, flexible, and low -cost community projects
  • Share real-time maps quickly
  • Boost your map server's performance using the power and flexibility of GeoServer

Description

GeoServer is an opensource server written in Java that allows users to share, process, and edit geospatial data. This book will guide you through the new features and improvements of GeoServer and will help you get started with it. GeoServer Beginner's Guide gives you the impetus 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, and apply style points, lines, polygons, and labels to impress site visitors with real-time maps. Then you follow a step-by-step guide that installs GeoServer in minutes. You will explore the web-based administrative interface to connect to backend data stores such as PostGIS, and Oracle. Going ahead, you can display your data on web-based interactive maps, use style lines, points, polygons, and embed images to visualize this data for your web visitors. You will walk away from this book with a working application ready for production. After reading GeoServer Beginner's Guide, you will be able to build beautiful custom maps on your website using your geospatial data.

Who is this book for?

If you are a web developer with knowledge of server side scripting, have experience in installing applications on the server, and want to go beyond Google Maps by offering dynamically built maps on your site with your latest geospatial data stored in MySQL, PostGIS, MySQL, or Oracle, this is the book for you.

What you will learn

  • • Install GeoServer quickly
  • • Access dynamic real-time geospatial data that you can easily integrate into your own web-based application
  • • Create custom styles for lines, points, and polygons for great-looking maps
  • • Command GeoServer remotely using REST
  • • Tune your GeoServer instance for performance
  • • Move GeoServer into production
  • • Learn advanced topics to extend GeoServer s capabilities

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 20, 2017
Length: 384 pages
Edition : 2nd
Language : English
ISBN-13 : 9781788294072
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Oct 20, 2017
Length: 384 pages
Edition : 2nd
Language : English
ISBN-13 : 9781788294072
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 130.97
Expert GeoServer
€24.99
GeoServer Beginner's Guide
€41.99
QGIS:Becoming a GIS Power User
€63.99
Total 130.97 Stars icon

Table of Contents

12 Chapters
GIS Fundamentals Chevron down icon Chevron up icon
Getting Started with GeoServer Chevron down icon Chevron up icon
Exploring the Administrative Interface Chevron down icon Chevron up icon
Adding Your Data Chevron down icon Chevron up icon
Accessing Layers Chevron down icon Chevron up icon
Styling Your Layers Chevron down icon Chevron up icon
Creating Simple Maps Chevron down icon Chevron up icon
Performance and Caching Chevron down icon Chevron up icon
Automating Tasks - GeoServer REST Interface Chevron down icon Chevron up icon
Securing GeoServer Before Production Chevron down icon Chevron up icon
Tuning GeoServer in a Production Environment Chevron down icon Chevron up icon
Going Further - Getting Help and Troubleshooting Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(2 Ratings)
5 star 50%
4 star 0%
3 star 0%
2 star 0%
1 star 50%
Fillock Feb 20, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is my first experience with Geoserver and I picked this book since it had the charming; "Beginner's Guide" in the title.The author has deep knowledge of the different topics of opensource software, server functionality, and map making. Certainly, it's a wide and complicated topic ranging all from security, server speed, map-making, map-styling, other free tools and a huge bunch of other topics, and the book makes a strong and good overview. If I would say one negative thing about the book, it's that the authors strongest side also may be his weakness; his wide experience and deep know-how makes him dig into topics beyond a beginners guide. A complete noob like me would likely know; "how to make a map as simple as possible and host it so others can see it on the internet?", and after that, you can start to add complexity. After I finished the book I still don't know this (maybe I missed it somewhere, I learned a lot about how to publish maps on my local network though).Anyhow; this book is so full of advice, extra tools, and best practice that I can't say I would have been without either. Everyone with ambitions on GeoServer should read it I would say.
Amazon Verified review Amazon
Prasad Boddupalli Oct 11, 2020
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
There is hardly any content in the book. It is an endless pages of screen shots of GeoServer administration. You dont need this book.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.