Python.GDAL
This repository was set up in particular to explore the functionalities of GDAL and OGR. The directory contains a script which looks at the reads in several raster and polygon layers, cropping them to the extent of North Yorkshire. As of yet, the repository contains a single script which covers some of the basic functions of GDAL, namely:
- Reading and writing shapefiles and rasters
- Spatial transformations and projections
- Extracting features from larger polygons
- Clipping raster files by polygon geometry
- Masking raster data by values
- Converting raster data to polygons
- Creating new polygons based on lists of coordinates.
The resulting map of the cropped Digital Elevation Model can be seen below.
A binary (0,1) mask was also constructed based on the a given elevation range and land-use type.