Book Image

Mastering PostGIS

By : Dominik Mikiewicz, Michal Mackiewicz , Tomasz Nycz
Book Image

Mastering PostGIS

By: Dominik Mikiewicz, Michal Mackiewicz , Tomasz Nycz

Overview of this book

PostGIS is open source extension onf PostgreSQL object-relational database system that allows GIS objects to be stored and allows querying for information and location services. The aim of this book is to help you master the functionalities offered by PostGIS- from data creation, analysis and output, to ETL and live edits. The book begins with an overview of the key concepts related to spatial database systems and how it applies to Spatial RMDS. You will learn to load different formats into your Postgres instance, investigate the spatial nature of your raster data, and finally export it using built-in functionalities or 3th party tools for backup or representational purposes. Through the course of this book, you will be presented with many examples on how to interact with the database using JavaScript and Node.js. Sample web-based applications interacting with backend PostGIS will also be presented throughout the book, so you can get comfortable with the modern ways of consuming and modifying your spatial data.
Table of Contents (9 chapters)

ExtJS says Hello World


This is a short example aimed at making you comfortable with setting up and running the web application examples. First, make sure you have Sencha CMD installed. If not, you may get it from here: https://www.sencha.com/products/extjs/cmd-download/.

Next, you will need to set up your workspace by simply extracting the ExtJS library to code/webgis_examples/ext. When ready, your ext folder contents should look like this:

All the examples are located in the code directory in this chapter's resources. In order to launch our Hello World example, simply navigate to code/webgis_examples/apps/01_hello_world in your CMD and then run the following command:

sencha app watch

When you navigate to http://localhost:1841/apps/01_hello_world/, you should see our Hello World application (this is a default empty app that Sencha CMD generates):

Note

If you feel interested in learning a bit more about ExtJS, you should check out the following resources: