Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
AU$14.99 AU$60.99
Paperback
AU$75.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
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
Estimated delivery fee Deliver to Australia

Economy delivery 7 - 10 business days

AU$19.95

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 : 9781788297370
Category :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Australia

Economy delivery 7 - 10 business days

AU$19.95

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.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
AU$249.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 AU$5 each
Feature tick icon Exclusive print discounts
AU$349.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 AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 238.97
Expert GeoServer
AU$45.99
GeoServer Beginner's Guide
AU$75.99
QGIS:Becoming a GIS Power User
AU$116.99
Total AU$ 238.97 Stars icon
Banner background image

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

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela