140 likes | 244 Views
More GeoProcessing. Matthew Rosencrans Tom DiLiberto. Outline . What else can we do in QGIS? Geoprocessing Within the GUI. Geoprocessing. Operations that can be done on and to GIS data Analysis methods that are possible because of the geospatial nature of the data Raster/Vector
E N D
More GeoProcessing Matthew Rosencrans Tom DiLiberto
Outline • What else can we do in QGIS? • Geoprocessing • Within the GUI
Geoprocessing • Operations that can be done on and to GIS data • Analysis methods that are possible because of the geospatial nature of the data • Raster/Vector • Bulk Statistics • Zonal Statistics • Vector • Intersections • Dissolves, Clips, Buffers • Joins (Spatial, non-Spatial)
Zonal Statistics • Zonal Statistics • Statistics of a raster over each zone in a vector • How much rain fell in each province? • Gridded precipitation + Maps Provinces
Zonal Statistics Mean - get the Mean of the values, appended to the attributes of the polygons. Other functions available as well
Geoprocessing • Intersections • Deal with areas where spatial data overlap • Roads intersect with Counties • Forecasts intersect with counties/provinces • Can help with impacted facilities, populations • Spatial Join • Joins attributes, based on colocation
Intersections • Determines the spatial reference. Also the spatial reference of the output feature class. Input features are projected into this spatial reference. • Cracks and clusters. Cracking inserts vertices at the intersection of feature edges; clustering snaps together vertices that are within the xy tolerance. • Discovers geometric relationships (intersections) between features from all the feature classes or layers. • Writes these intersections as features (point, line, or polygon) to the output. • Attributes from both input data sources are mapped to the retained features
Intersections • Menu Bar • Vector • Geoprocessing Tools • Intersect
Dissolve, Clip, Merge, Buffer 20km Dissolves 20km Merges Clip
Joins (Spatial and Data) A common GIS task is to join the attributes from one spatial data layer to another. A spatial join involves matching rows in the attribute table from the join layer to the target layer based on a spatial relationship and writing to an output feature class. Like a join based on Data, but based on the location.
Joins (Spatial and Data) GIS data has an inherent spatial attribute, so it can join on that. Coincident points, lines, or polygons inherent the attributes from things that are spatially coincident. 1 2 4 3 5
Coding for Geoprocessing • QGIS • Wasn’t able to get QGIS to work. • ArcGIS is more familiar to me, and has scripting. • Will demo with that.
Aftenoon • FINAL\NatEarth\10m_cultural\10m_cultural • Load file for countries • ne_10m_admin_0_countries.shp • Load file for states and citie • ne_10m_admin_1_states_provinces_shp.shp • ne_10m_populated_places_simple.shp • forecast shapefiles that you made Monday • File has extremes, start, end • Perform intersection, spatial join
Country Climate Outlook • Load shapefile of country • Extract your own country if you wish • Load shapefile of states • Create a new shapefile to contain your climate outlook • Draw a climate outlook • Above Average Precipitation • Below Average Precipitation • Above Average Temperatures • Below Average Temperatures