Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
GeoServer Beginner's Guide

You're reading from   GeoServer Beginner's Guide Share geospatial data using Open Source standards

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781788297370
Length 384 pages
Edition 2nd Edition
Arrow right icon
Author (1):
Arrow left icon
Stefano Iacovella Stefano Iacovella
Author Profile Icon Stefano Iacovella
Stefano Iacovella
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. GIS Fundamentals FREE CHAPTER 2. Getting Started with GeoServer 3. Exploring the Administrative Interface 4. Adding Your Data 5. Accessing Layers 6. Styling Your Layers 7. Creating Simple Maps 8. Performance and Caching 9. Automating Tasks - GeoServer REST Interface 10. Securing GeoServer Before Production 11. Tuning GeoServer in a Production Environment 12. Going Further - Getting Help and Troubleshooting

Working with point symbols


We will start with a basic example. What is the simplest geometry type? A point feature; hence, we will start with styles for point features. The Populated places shapefile fits our purposes perfectly. Did you publish it using the default style for points? If you did it, you should see it rendered with a small red square, as shown in the following screenshot:

To modify the map, you need to add a new style and associate it to the layer. For setting point symbol properties, you have to use the <PointSymbolizer> element and its children.

Creating a simple point style

To familiarize you with SLD file creation, we will compose a simple style to apply a small red circle to all the point features:

  1. Open your favorite text editor. We will expect you have already inserted the XML declaration and the <StyledLayerDescriptor> part of the code. So, start by inserting a <NamedLayer> element. Then, add a <Name> element and write the name you want for your layer...
lock icon The rest of the chapter is locked
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.
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 $19.99/month. Cancel anytime