# GDAL Layers
Uses the GDAL SDK to load imagery or elevation data. This is the most common layer type to use for local data files like GeoTIFF.
GDAL has [dozens of loaders](https://gdal.org/drivers/raster/index.html) for different georeferenced file formats.
## GDALImage, GDALElevation
Class: GDALImageLayer (inherits from [ImageLayer](image.md))
Class: GDALElevationLayer (inherits from [ElevationLayer](elevation.md))
<table border=”1” class=”docutils”> <thead> <tr> <th>Property</th> <th>Description</th> <th>Type</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td>url</td> <td>Location of data source (local or remote), e.g. a GeoTIFF file</td> <td>URI</td> <td></td> </tr> <tr> <td>connection</td> <td>Connection string when querying a spatial database (like PostgreSQL for example)</td> <td>string</td> <td></td> </tr> <tr> <td>single_threaded</td> <td>Force single-threaded access to the GDAL driver. Most GDAL drivers are thread-safe, but not all. If you are having issues with a GDAL driver crashing, try setting this to true.</td> <td>bool</td> <td>false</td> </tr> <tr> <td>subdataset</td> <td>Identifier of a sub-dataset within a larger GDAL dataset. Some drivers require this in order to access sub-layers within the database.</td> <td>string</td> <td></td> </tr> <tr> <td>vdatum</td> <td>Specify a vertical datum to use (elevation only)</td> <td>string</td> <td></td> </tr> <tr> <td></td> <td>Supported values = “egm96” or “egm2008”</td> <td></td> <td></td> </tr> </tbody> </table>
Earth file examples:
```xml <GDALImage name=”Local Data”>
<url>world.tif</url>
</GDALImage>
- <GDALElevation name=”Local terrian data”>
<url>elevation.dt0</url> <vdatum>egm96</vdatum>
NOTE: this example loads a DTED0 elevation file, which is known to use the EGM96 vertical datum. We need to specify that in the earth file since the vertical datum information in NOT included in the source data itself.
## GDALDEM
Displays a colorized or hill-shared representation of the elevation data in the map.
<table border=”1” class=”docutils”> <thead> <tr> <th>Property</th> <th>Description</th> <th>Type</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td>processing</td> <td>Type of shading to use. Options are <code>color-relief</code> and <code>hillshade</code></td> <td>string</td> <td></td> </tr> <tr> <td>layer</td> <td>Elevation layer to use for shading</td> <td>string</td> <td></td> </tr> <tr> <td>color_filename</td> <td><code>.clr</code> file containing color-relief color map</td> <td>URI</td> <td></td> </tr> </tbody> </table>
### Examples
Start with a color relief display:
```xml <GDALDEM name=”Relief example”>
<processing>color-relief</processing> <layer>elevation</layer> <color_filename>../data/colorramps/thematic.clr</color_filename>

Blend in a hill-shaded display:
```xml <GDALDEM name=”Hillshade example”>
<processing>hillshade</processing> <layer>elevation</layer> <opacity>0.75</opacity>
