Goal
In this post, we’ll learn how to create a multi-band raster from scratch using PostGIS. This ability will be particularly useful as we begin exploring the relatively uncharted waters of the PostGIS Raster Module.
Purpose:
This is a companion article for Creating Rasters from Scratch in PostGIS. I recommend reading it if you haven’t already to learn why you might want to do this as well as for a more detailed explanation of the parameters.
Getting Started
Let’s look at the code from our last post:
|
|
In order to add additional bands, all we have to do is add another row to our rasterbandarg[]
:
|
|
Yep. It’s really that easy!