Using GDAL in Your GIS Workflow:<br />An OSGeo Approach<br />
A little about me...<br />President and Lead Consultant at Carteryx<br />15 years experience using geospatial technologies...
Introduction<br />A GIS is only as good as the data that goes in to it...<br />Preparing data can take time...time you may...
Agenda<br />What is GDAL?<br />Acquiring and Installing GDAL and it’s associated utilities<br />Getting basic raster and v...
GEOSPATIAL DATA ABSTRACTION LIBRARY (GDAL)<br />
File Types<br />
Acquiring GDAL/OGR<br />
Installing GDAL/OGR<br />
Installing GDAL/OGR<br />
Command Line<br />Many commands available<br />ogr2ogr – convert between data types, coordinate systems etc.<br />gdalinfo...
Command Line<br />Off we go to the demo...<br />
GDAL Bindings in Python<br />What are GDAL Python Bindings<br />GDAL/OGR/OSR libraries that are accessible to Python<br />...
GDAL Bindings in Python<br />What can you do with bindings/dlls<br />GDAL<br />Add bands<br />Manipulate bands<br />Create...
Creating Our First Python/GDAL app<br />Off we go to the demo...<br />
Summary<br /><ul><li>Why GDAL/OGR/OSR?
Open source and free
A number of tools already available for command line
Upcoming SlideShare
Loading in …5
×

Using GDAL In Your GIS Workflow

3,412 views
3,271 views

Published on

The accompanying slide show to a webinar I gave back in July 2009 on using GDAL in any existing GIS workflow.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,412
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Using GDAL In Your GIS Workflow

  1. 1. Using GDAL in Your GIS Workflow:<br />An OSGeo Approach<br />
  2. 2. A little about me...<br />President and Lead Consultant at Carteryx<br />15 years experience using geospatial technologies<br />Involved in forestry, mining, engineering, environmental and many other sectors...<br />Have used open source GIS for past 10 years<br />GIS development and deployment specialist<br />Experience in a number of software platforms<br />
  3. 3. Introduction<br />A GIS is only as good as the data that goes in to it...<br />Preparing data can take time...time you may not have<br />GDAL utilities can run at command line or as library<br />Projection conversion, format conversion, sub-set...<br />Bindings for Python and dll’s for Visual Studio<br />
  4. 4. Agenda<br />What is GDAL?<br />Acquiring and Installing GDAL and it’s associated utilities<br />Getting basic raster and vector information<br />Converting between raster file types<br />Converting between vector file types<br />Basics of GDAL/OGR/OSR Python bindings<br />Sample Python code to get metadata from series of rasters<br />
  5. 5. GEOSPATIAL DATA ABSTRACTION LIBRARY (GDAL)<br />
  6. 6. File Types<br />
  7. 7. Acquiring GDAL/OGR<br />
  8. 8. Installing GDAL/OGR<br />
  9. 9. Installing GDAL/OGR<br />
  10. 10. Command Line<br />Many commands available<br />ogr2ogr – convert between data types, coordinate systems etc.<br />gdalinfo – get summary or comprehensive metadata from raster data sets<br />gdaltindex – create a MapServer style raster index shapefile<br />gdaltransform – transform coordinates between spatial reference systems<br />Python scripts<br />gdal_merge.py – quick merge of multiple raster images to one image<br />gdal2tiles.py – create multiple tiles from a single raster<br />gdal2xyz.py – create xyz text file from raster<br />
  11. 11. Command Line<br />Off we go to the demo...<br />
  12. 12. GDAL Bindings in Python<br />What are GDAL Python Bindings<br />GDAL/OGR/OSR libraries that are accessible to Python<br />Gives data manipulation capabilities to Python<br />How do they work?<br />Calls to the libraries in the code...<br />fromosgeo.gdalimport * or importosgeo.gdalasosr<br />from osgeo.ogr import * or import osgeo.ogr asogr<br />from osgeo.osr import * or import osgeo.osr asosr<br />What is the big advantage?<br />Batch processing and combining with built-in python functions<br />
  13. 13. GDAL Bindings in Python<br />What can you do with bindings/dlls<br />GDAL<br />Add bands<br />Manipulate bands<br />Create rasters<br />Re-project rasters<br />and more<br />OGR<br />Geoprocessing (union, intersection, buffer etc.)<br />Get information (dataset, layers, features)<br />Re-project<br />Change data type<br />
  14. 14. Creating Our First Python/GDAL app<br />Off we go to the demo...<br />
  15. 15. Summary<br /><ul><li>Why GDAL/OGR/OSR?
  16. 16. Open source and free
  17. 17. A number of tools already available for command line
  18. 18. Integrates in many programming languages
  19. 19. Many geoprocessing functions and objects
  20. 20. Why Python?
  21. 21. Runs in many different environments (Windows – Linux – Mac/OS)
  22. 22. Well established programming language
  23. 23. Integrates with Qt and other bindings to increase flexibility and use</li></li></ul><li>More Information<br />How to get more training....<br />Contact Carteryx @ info@carteryx.com or 778.668.5025<br />More training classes to come (watch http://www.carteryx.com)<br />Pre-defined and Personalized training....<br />Links<br />http://fwtools.maptools.org/<br />http://map.hut.fi/doc/Geo-GDAL/html/namespace_geo.html<br />http://trac.osgeo.org/osgeo4w/<br />http://www.python.org<br />http://www.diveintopython.org/<br />
  24. 24. More Information<br />Questions????<br />

×