2. A little about me... President and Lead Consultant at Carteryx 15 years experience using geospatial technologies Involved in forestry, mining, engineering, environmental and many other sectors... Have used open source GIS for past 10 years GIS development and deployment specialist Experience in a number of software platforms
3. Introduction A GIS is only as good as the data that goes in to it... Preparing data can take time...time you may not have GDAL utilities can run at command line or as library Projection conversion, format conversion, sub-set... Bindings for Python and dll’s for Visual Studio
4. Agenda What is GDAL? Acquiring and Installing GDAL and it’s associated utilities Getting basic raster and vector information Converting between raster file types Converting between vector file types Basics of GDAL/OGR/OSR Python bindings Sample Python code to get metadata from series of rasters
10. Command Line Many commands available ogr2ogr – convert between data types, coordinate systems etc. gdalinfo – get summary or comprehensive metadata from raster data sets gdaltindex – create a MapServer style raster index shapefile gdaltransform – transform coordinates between spatial reference systems Python scripts gdal_merge.py – quick merge of multiple raster images to one image gdal2tiles.py – create multiple tiles from a single raster gdal2xyz.py – create xyz text file from raster
12. GDAL Bindings in Python What are GDAL Python Bindings GDAL/OGR/OSR libraries that are accessible to Python Gives data manipulation capabilities to Python How do they work? Calls to the libraries in the code... fromosgeo.gdalimport * or importosgeo.gdalasosr from osgeo.ogr import * or import osgeo.ogr asogr from osgeo.osr import * or import osgeo.osr asosr What is the big advantage? Batch processing and combining with built-in python functions
13. GDAL Bindings in Python What can you do with bindings/dlls GDAL Add bands Manipulate bands Create rasters Re-project rasters and more OGR Geoprocessing (union, intersection, buffer etc.) Get information (dataset, layers, features) Re-project Change data type