ABT 182 / HYD 182 Environmental Analysis using GIS Week 7-1 More GDAL & OGR.

Slides:



Advertisements
Similar presentations
QGIS Workflows QGIS and Python… like peanut butter and jelly.
Advertisements

ArcView® Image Analysis
WFM 6202: Remote Sensing and GIS in Water Management © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 6202: Remote Sensing and GIS in Water Management Akm.
GIS for Environmental Science
UGIC 2009 Introduction to Open Source RS/GIS programming with Python Chris Garrard RS/GIS Laboratory Utah State University.
GIS: conceptual reminder Franck Theeten – Bart Meganck.
Introduction to Cartography GEOG 2016 E
Department of Geography University of Portsmouth Fundamentals of GIS: What is GIS? Dr. Ian Gregory, Department of Geography, University of Portsmouth.
ANALYSIS 3 - RASTER What kinds of analysis can we do with GIS? 1.Measurements 2.Layer statistics 3.Queries 4.Buffering (vector); Proximity (raster) 5.Filtering.
Internet enabled GIS GIS Topics and Applications John Reiser Rowan University.
Raster Analysis Raster math Topography: Slope, aspect, contours Reclassify Raster / Vector Conversions Statistics: min, max, mean, std. dev. –Local, Neighborhood,
Free GIS an intro to open-source spatial software.
Definitions Spatial Reference System (SRS) –Same as “Coordinate System” in ArcMap Esri uses both at “Projection” to refer to an SRS Geographic Coordinate.
Coordinate Reference Systems
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
Introduction to ArcGIS for Environmental Scientists Module 2 – GIS Fundamentals Lecture 5 – Coordinate Systems and Map Projections.
Fundamentals of GIS Lecture Materials by Austin Troy except where noted © 2008 Lecture 13: Introduction to Raster Spatial Analysis Using GIS-- By.
Canada’s Natural Resources – Now and for the Future Using Open Source to analyze Canada’s National Forest Inventory. Chris West and Brian Low Pacific Forestry.
Using ESRI ArcGIS 9.3 Arc Tool Box 1 Data Management
Textures – Magnification and Minification Lecture 30 Mon, Nov 17, 2003.
Kurt Menke, GISP FOSS for Geospatial Unit Two. What’s Out There? A whole lot!!! Over 350 project entries on This.
Georeferencing Getting maps and satellite images into GIS.
Applied Cartography and Introduction to GIS GEOG 2017 EL Lecture-3 Chapters 5 and 6.
Lecture 4 Data. Why GIS? Ask questions Solve a problem Support a decision Make Maps Involve others, share data, procedures, ideas.
Geospatial Data Abstraction Library (GDAL) Enhancement for ESDIS (GEE) Increasing Accessibility and Interoperability of NASA Data Products with GIS Tools.
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
Creating Web based Thematic Maps using Open Source Platforms 2009 Ohio GIS Conference September 16-18, 2009 Crowne Plaza North Hotel Columbus, Ohio 2009.
AIRNow-International The future of the United States real-time air quality reporting and forecasting program and GEOSS participation John E. White U.S.
Fundamentals of working with geographic data
Karsten Vennemann, Seattle Free and Easy Web Mapping.
Geospatial Development with Python
The OpenGIS Consortium Geog 516 Presentation #2 Rueben Schulz March 2004.
Distance. Euclidean Distance Minimum distance from a source (Value NoData) Input grid must have at least one source cell with the rest of the grid.
LINZ Data Service Jeremy Palmer LDS Promotions Manager Toitu te whenua.
MapServer Support for Web Coverage Services Stephen Lime - Minnesota DNR Dr. Thomas E. Burk - University of Minnesota MUM Ottawa, Canada.
The FalconView Geodata Overlay
Open Source GIS Web Mapping Solutions Sachindra Singh ICT Systems Developer 2010 Pacific Islands Geographical Information Systems and Remote Sensing User.
Esri UC 2014 | Technical Workshop | Fundamentals of working with geographic data Miriam Schmidts.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Caching Imagery Using.
GDAL/OGR. GDAL/OGR GDAL/OGR : Frank Warmerdam Tools for reading, writing, and processing GDAL - Geospatial Data Abstraction Library GDAL - Geospatial.
A.Batchimeg GDAL Geospatial Data Abstraction Library GDAL Geospatial Data Abstraction Library
Tim Waters Leeds, UK Map Warper mapwarper.net georectify / georeference / warp.
Presenter : Dayong Shen Center for Spatial Information Science and Systems (CSISS), George Mason University.
Lecture 2 Introduction to GIS, Data models, Data structures.
John Maurer PacIOOS Hawaii Data Explorer: Workshop Google Maps API Examples:
Caching Imagery Using ArcGIS
MapWindow Plug-in of GRM Model Using Open Source Software It was possible to implement all the functions necessary to develop GRM modeling system and pre.
Map3d NCRR Using map3d “Looking at my data has never been so much fun!”
What is GIS? GIS is an integrated system used to view and manage information about geographic places, analyze spatial relationships, and model spatial.
Raster data in GeoServer and GeoTools: achievements, issues and future developments Ing. Andrea Aime GeoSolutions.
DEM TRAINING (DIGITAL ELEVATION MODEL). STEP 1 OPEN GIS.
Geoprocessing and georeferencing raster data
OGR Simple Feature Library ABT 182 / HYD 182 Environmental Analysis using GIS Week 4-2.
Analyzing Data Week 1. Types of Graphs Histogram Must be Quantitative Data (measurements) Make “bins”, no overlaps, no gaps. Sort data into the bins.
Lesson 3 GIS Fundamentals MEASURE Evaluation PHFI Training of Trainers May 2011.
Geo-referencing an aerial photo of Newton Park and overlay a vector layer HW Britz GISV431 & GEN 405.
Geospatial Data Abstraction Library(GDAL) Sabya Sachi.
Open Source Geospatial Geographic Data Technology Barry Rowlingson School of Health and Medicine, Lancaster University.
Bob Bruce, P.Eng Mapping and Lands Branch, Manitoba Conservation A Survey of Open Source Geospatial Software APEGM PD Breakfast.
| OSGeo All rights reserved The Open Source Geospatial Foundation 6.May.2008 OSGeo All rights reserved Open Source Tools for Geospatial.
Could you please instruct me to do that?
Introduction to Quantum GIS
Data Analysis using Python-I
Marine and Coastal Biodiversity Management in Pacific Island Countries
Using QGIS, GRASS and PostGIS to answer some difficult questions
Using VB Active-X components to customize a new tool on ArcMap
Introduction to OpenGL
Combining ArcGIS for Server & ArcGIS Online
Publishing image services in ArcGIS
Presentation transcript:

ABT 182 / HYD 182 Environmental Analysis using GIS Week 7-1 More GDAL & OGR

Installed with OSGEO4W Use from command-line GDAL & OGR utilities

ogrinfoogrinfo - Lists information about a data source ogr2ogrogr2ogr - Converts between file formats ogrtindexogrtindex - Creates a tileindex OGR

> ogrinfo Usage: ogrinfo [--help-general] [-ro] [-q] [-where restricted_where] [-spat xmin ymin xmax ymax] [-fid fid] [- sql statement] [-al] [-so] [-fields={YES/NO}] [-geom={YES/NO/SUMMARY}][--formats] datasource_name [layer [layer...]] ogrinfo sites.shp ogrinfo -al sites.shp ogrinfo -al -so sites.shp ogrinfo -al -q sites.shp ogrinfo -al -q -where "id<5" sites.shp ogrinfo -al -q -spat sites.shp ogrinfo

Usage: ogr2ogr [--help-general] [-skipfailures] [-append] [-update] [-gt n] [-select field_list] [-where restricted_where] [-sql ] [-spat xmin ymin xmax ymax] [-preserve_fid] [-fid FID] [-a_srs srs_def] [-t_srs srs_def] [-s_srs srs_def] [-f format_name] [-overwrite] [[-dsco NAME=VALUE]...] [-segmentize max_dist] dst_datasource_name src_datasource_name [-lco NAME=VALUE] [-nln name] [-nlt type] [layer [layer...]] -f format_name: output file format name, possible values are: -f "ESRI Shapefile" -f "MapInfo File" -f "TIGER" -f "S57" -f "DGN" -f "Memory" -f "BNA" -f "CSV" -f "GML" -f "GPX" -f "KML" ogr2ogr

ogr2ogr -f "ESRI Shapefile" -t_srs "EPSG:4269" towns_geo.shp towns.shp ogr2ogr -f "ESRI Shapefile" -t_srs "EPSG:4269" -select NAME,FIPS twngeo.shp towns.shp ogr2ogr -f "ESRI Shapefile" –where "cover='grass'" grass.shp sites.shp ogr2ogr -f "ESRI Shapefile" -spat selsts.shp sites.shp ogr2ogr -f "KML" counties.kml ut_counties.shp ogr2ogr -f "KML" -dsco NameField=id -dsco DescriptionField=cover sites2.kml sites.shp ogr2ogr

GDAL gdalinfo - report information about a file. gdal_translate - Copy a raster file, with control of output format. gdaladdo - Add overviews to a file. gdalwarp - Warp an image into a new coordinate system. gdaltindex - Build a MapServer raster tileindex. gdalbuildvrt - Build a VRT from a list of datasets. gdal_contour - Contours from DEM. gdaldem - Tools to analyze and visualize DEMs. rgb2pct.py - Convert a 24bit RGB image to 8bit paletted. pct2rgb.py - Convert an 8bit paletted image to 24bit RGB. gdal_merge.py - Build a quick mosaic from a set of images. gdal2tiles.py - Create a TMS tile structure, KML and simple web viewer. gdal_rasterize - Rasterize vectors into raster file. gdaltransform - Transform coordinates. nearblack - Convert nearly black/white borders to exact value. gdal_retile.py - Retiles a set of tiles and/or build tiled pyramid levels. gdal_grid - Create raster from the scattered 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 nodata regions. gdal-config - Get options required to build software using GDAL.

gdalinfo Usage: gdalinfo [--help-general][-mm][-stats][-hist][-nogcp] [-nomd][-noct][-checksum][-mdd domain]* datasetname gdalinfo -nomd C:\ABT182\lab11\data\aster.img Driver: HFA/Erdas Imagine Images (.img) Files: aster.img Size is 5665, 5033 Coordinate System is: PROJCS["UTM Zone 12, Northern Hemisphere", GEOGCS["WGS_1984", DATUM["WGS_1984", SPHEROID["WGS 84", , ], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree", ], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-111], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1], AUTHORITY["EPSG","32612"]] Origin = ( , ) Pixel Size = ( , ) Corner Coordinates: Upper Left ( , ) (111d58'4.52"W, 42d 6'35.34"N) Lower Left ( , ) (111d57'27.92"W, 41d25'47.74"N) Upper Right ( , ) (110d56'24.38"W, 42d 6'49.98"N) Lower Right ( , ) (110d56'26.64"W, 41d26'2.04"N) Center ( , ) (111d27'5.89"W, 41d46'22.91"N) Band 1 Block=64x64 Type=Byte, ColorInterp=Undefined Description = ASTER_Band1 Min=1.000 Max= Minimum=1.000, Maximum= , Mean=76.339, StdDev= Overviews: 1417x1259, 709x630, 355x315, 178x158, 89x79, 45x40 Band 2 Block=64x64 Type=Byte, ColorInterp=Undefined Description = ASTER_Band2 Min=1.000 Max= Minimum=1.000, Maximum= , Mean=62.817, StdDev= Overviews: 1417x1259, 709x630, 355x315, 178x158, 89x79, 45x40 Band 3 Block=64x64 Type=Byte, ColorInterp=Undefined Description = ASTER_Band3N Min=1.000 Max= Minimum=1.000, Maximum= , Mean=68.693, StdDev= Overviews: 1417x1259, 709x630, 355x315, 178x158, 89x79, 45x4

gdalwarp -of hfa -t_srs EPSG:4326 -r bilinear aster.img astgeo.img gdalwarp Usage: gdalwarp [--help-general] [--formats] [-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"] [-order n] [-tps] [-rpc] [-geoloc] [-et err_threshold] [-te xmin ymin xmax ymax] [-tr xres yres] [-ts width height] [-wo "NAME=VALUE"] [-ot Byte/Int16/...] [-wt Byte/Int16] [-srcnodata "value [value...]"] [-dstnodata "value [value...]"] -dstalpha [-r resampling_method] [-wm memory_in_mb] [-multi] [-q] [-cutline datasource] [-cl layer] [-cwhere expression] [-csql statement] [-cblend dist_in_pixels] [-of format] [-co "NAME=VALUE"] * srcfile * dstfile Available resampling methods: near (default), bilinear, cubic, cubicspline, lanczos.

gdal_merge Usage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]* [-ps pixelsize_x pixelsize_y] [-separate] [-v] [- pct][-ul_lr ulx uly lrx lry] [-n nodata_value] [-init value][-ot datatype] [-createonly] input_files[--help-general] gdal_merge -o mosaic1.tif -of gtiff –co tfw=yes q0519ne.jpg q0520nw.jpg gdal_merge -o mosaic2.tif -of gtiff -co tfw=yes -ul_lr q0519ne.jpg q0520nw.jpg gdal_merge -o mosaic4.tif -of gtiff -co tfw=yes -ps optfile files.txt

import os os.system('gdalwarp -of hfa -t_srs EPSG:4326 -r bilinear aster.img astgeo.img') os.system('ogr2ogr -f "ESRI Shapefile" -t_srs "EPSG:4269" towns_geo.shp towns.shp') GDAL & OGR utilities called from python