Book Image

QGIS By Example

By : Alexander Bruy, Daria Svidzinska
Book Image

QGIS By Example

By: Alexander Bruy, Daria Svidzinska

Overview of this book

Table of Contents (17 chapters)
QGIS By Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Publishing the map


Now, when a new database is created, we can publish the map designed in Chapter 2, Visualizing and Styling the Data, on the Internet.

Let's look at our project first; it contains raster and vector layers. There are several composers as well. Before publishing the data and map, we need to decide which information should be published and what we want to keep hidden.

By default, all vector layers are published with all their attributes available for both WMS and WFS services. All composers available in the project will be published too.

If you need to keep some attributes of the layer (or layers) unpublished, it is necessary to adjust the properties of the corresponding layer (or layers).

Note

Later, in the WMS settings section of this chapter, you will learn how to exclude entire layers and composers from publishing.

To do this, select a layer from the QGIS layer tree, right-click to open the context menu, and select Properties. In the Layer Properties dialog, go to the Fields...