Book Image

PostGIS Essentials

By : Angel Marquez
Book Image

PostGIS Essentials

By: Angel Marquez

Overview of this book

<p>PostGIS is one of the world's leading spatial databases, created as a geographic extension for PostgreSQL. With it, users are able to manipulate and visualize spatial data incredibly effectively and efficiently.</p> <p>PostGIS Essentials introduces you to the fundamentals of PostGIS, giving you easy access to one of the most popular and powerful spatial databases available today. You will begin by learning how to install and successfully set up PostGIS before covering how to create your first spatial database. The book will then help you to develop your skills further as you will learn how to insert GIS objects as well as how to select and filter GIS queries with clear and practical information. You will then learn how to display GIS data graphically and create effective visualizations. The book concludes with tips, tricks, and techniques to help you optimize PostGIS and improve the performance of your database.</p>
Table of Contents (16 chapters)
PostGIS Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Tuning PostgreSQL's configuration file for our spatial database


Another important thing that we can do to speed up our database is to adjust some of the parameters that PostgreSQL's DBMS uses. We have to configure new values for them, keeping in mind the specific features of spatial databases (spatial records are usually bigger than nonspatial ones). Now, we will see how to make these changes.

In order to do this, we will have to edit the postgressql.conf file. It's a postgreSQLconfiguration file and we can find it in the C:\Program Files\PostgreSQL\9.3\data folder.

There are two ways of performing this task; the first is to open it with a text editor, such as Notepad, the second one is to open it using the utility that comes with PGAdmin for these purposes. We can perform the following steps:

  1. Run PGAdmin III.

  2. Navigate to File | postgresql.conf.

  3. When the file dialog is opened, navigate to the C:\Program Files\PostgreSQL\9.3\data directory and select the postgresql.conf file. You will see a window...