O'Reilly logo

PostGIS Cookbook by Bborie Park, Stephen Vincent Mather, Thomas J. Kraft, Paolo Corti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting and loading rasters

In this recipe, we load most of the rasters used in this chapter. These rasters are examples of satellite imagery and model-generated surfaces, two of the most common raster sources.

Getting ready

If you have not done so already, create a directory and copy the chapter's datasets.

> mkdir C:\postgis_cookbook\data\chap05
> cp -r /path/to/book_dataset/chap05 C:\postgis_cookbook\data\chap05

You should also create a new schema for this chapter in the database.

> psql -d postgis_cookbook -c "CREATE SCHEMA chap5"

How to do it...

We will start with the PRISM average monthly minimum-temperature raster dataset for 2012 with coverage for the Continental United States. The raster is provided by the PRISM Climate Group at Oregon State ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required