How to do it...

The steps you need to follow to complete this recipe are as follows:

  1. Get information about one of the rasters using the gdalinfo command-line tool as follows:
      $ gdalinfo worldclim/tmax09.bil      Driver: EHdr/ESRI .hdr Labelled      Files: worldclim/tmax9.bil             worldclim/tmax9.hdr      Size is 2160, 900      Coordinate System is:      GEOGCS[""WGS 84"",        DATUM[""WGS_1984"",          SPHEROID[""WGS 84"",6378137,298.257223563,            AUTHORITY[""EPSG"",""7030""]],          TOWGS84[0,0,0,0,0,0,0],          AUTHORITY[""EPSG"",""6326""]],        PRIMEM[""Greenwich"",0,          AUTHORITY[""EPSG"",""8901""]],        UNIT[""degree"",0.0174532925199433,        AUTHORITY[""EPSG"",""9108""]],      AUTHORITY[""EPSG"",""4326""]]      Origin = (-180.000000000000057,90.000000000000000) Pixel Size = (0.166666666666667,-0.166666666666667) ...

Get PostGIS Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.