Download presentation
Presentation is loading. Please wait.
Published byPatrick Curtis Modified over 8 years ago
1
Geospatial Data Abstraction Library(GDAL) Sabya Sachi
2
Agenda Geospatial data Introduction to GDAL GDAL command line utilities
3
What is geospatial data? Data or information identifying the geographic location of features and boundaries on Earth Accessed, manipulated and analysed by Geographic Information System Two types: ▫Raster and Vector
4
Raster data ▫Contains rows and columns of data cells(pixels) ▫Each pixel stores a single value consisting of colour and some additional information ▫Stored in various formats- from tif and jpeg to BLOB as in RDBMS
5
Vector data ▫Geographical features expressed as vectors ▫Coordinates, points, lines, arcs and polygons ▫Geometries linked to database describing the attributes ▫Can be made to respect spatial attributes
6
Introduction to GDAL A open source library for reading and writing raster geospatial data formats Includes OGR library in its source tree which supports vector formats Has various command line utilities for data translation and processing Supports over 50 Raster formats Primarily developed by Frank Warmerdam until version 1.3.2 when maintainership was transferred to GDAL/OGR Project management committee under Open Source geo spatial foundation
7
Crossplatform- supported on Linux, Windows, Mac Supports various softwares to read and write multiple data formats ▫Google Earth ▫Delta GIS ▫GRASS GIS ▫Orfeo Toolbox ▫………. Has all command line utilities compiled by Frank Warmerdam into a single software FWTools
8
GDAL Utility programs 22 utilities gdalinfo: report information about a file gdal_translate: Copy a raster file with control of output format gdaladdo: Add overview to a file gdalwarp: Warp an image into new coordinate system gdaltindex: Build a mapserver raster tile index gdalbuildvrt: Build a VRT from a list of datasets
9
gdal_countours: Countours from DEM gdaldem: Tools to analyze and visualize DEMs rgbgdal_merge.py: Build a quick mosaic from a set of images 2pct.py: Convert a 24 bit RGB to 8 bit paletted. pct2rgb.py: Convert a 8 bit paletted to 24 bit RGB gdal2tiles.py: Create a TML tile structure,KML and simple web viewer gdal_rasterize: Converts simple vector to raster
10
gdaltransform: Transform coordinates nearblack: Convert nearly black/white border to exact value gdal_retile.py: Retiles a set of tiles or build tiled pyramid levels gdal_grid: Create raster from scatter data gdal_proximity.py: Compute a raster proximity map gdal_polygonize.py: Generate polygons from raster gdal_sieve.py: Raster sieve filter gdal_fillnodata.py: Interpolate in non data regions gdal-config:Get options required to build software using GDAL
11
gdalinfo Lists various information about GDAL supported dataset Eg. Format driver, raster size, coordinate system, band data types, band min/max values, descriptions, nodata value etc… Syntax:
12
An example output
13
gdal_translate Converts data from one format into another Can also perform rescaling and resampling Syntax:
14
gdaladdo Build or rebuild overview images for most of the raster data formats Supports multiple resampling algorithms including nearest resampling cubic resampling etc. Syntax:
15
gdalwarp A utility for image mosaicing, reprojection and warping Mosiacing: Correcting geometric deformations Warping: Mapping a point to another in an mage without changing the data value at that point, results in distortion sometimes, aids in mosaicing.
16
Syntax: Supports image mosaicing only if there is existing output image Doesn’t adjust existing output image spatial extent
17
gdaltindex Builds a shapefile with a record for each input raster file Shapefile: Contain nontopological geometry and attribute information for the spatial features in a data set. If a shapefile already exists, new data is appended to it. Used with mapserver
18
Syntax:
19
gdaldem Used for analyzing and visualizing DEMs- Digital Elevation models Has seven modes of operation: ▫Hillshade ▫Slope ▫Aspect ▫Color relief ▫TRI(Terrain Ruggedness Index) ▫TPI(Topographic Position Index) ▫Roughness
20
Example: Original dem image 100% 255 255 255 75% 235 220 175 50% 190 185 135 25% 240 250 150 0% 50 180 50
21
gdaldem color-relief clip.tif ramp.txt colored.tif Coloured relief raster
22
gdaldem slope clip slope.tif -s 111120 Slope map
23
gdaldem aspect clip.tif aspect.tif Aspect map
24
gdaldem hillshade clip.tif hillshade.tif -z 5 -s 111120 Hillshade- colour relief
25
gdal_merge A python utility Automatically mosaic a set of images into a single one Images must be in same coordinate system Images have must have matching raster bands Resolution can be different Can overlap
26
Syntax:
27
Example :
28
Conclusion GDAL is currently a major project in open source community and commercial GIS community “ I see GDAL as the glibc/glibc++ of the geospatial software world. It's open, it provides core functionality, I can't understand how anybody gets anything done without it. ” - Howard Butler
29
References http://en.wikipedia.org/wiki/Geoinformation http://www.webopedia.com/TERM/S/spatial_d ata.htmlhttp://www.webopedia.com/TERM/S/spatial_d ata.html http://en.wikipedia.org/wiki/Geographic_infor mation_systemhttp://en.wikipedia.org/wiki/Geographic_infor mation_system http://www.geom.unimelb.edu.au/gisweb/GIS Module/GIST_Vector.htmhttp://www.geom.unimelb.edu.au/gisweb/GIS Module/GIST_Vector.htm http://www.geom.unimelb.edu.au/gisweb/GIS Module/GIST_Raster.htmhttp://www.geom.unimelb.edu.au/gisweb/GIS Module/GIST_Raster.htm
30
http://www.gdal.org/gdal_utilities.html http://en.wikipedia.org/wiki/GDAL http://trac.osgeo.org/gdal/wiki/UserDocs/R asterProcTutorialhttp://trac.osgeo.org/gdal/wiki/UserDocs/R asterProcTutorial http://www.gdal.org/ogr/osr_tutorial.html http://en.wikipedia.org/wiki/Digital_elevatio n_modelhttp://en.wikipedia.org/wiki/Digital_elevatio n_model http://research.dmsolutions.ca/?p=350
31
THANK YOU
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.