User Tools

Site Tools


lab_point_to_polygon_and_point_to_raster

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
lab_point_to_polygon_and_point_to_raster [2016/04/07 09:03] – extern redigering 127.0.0.1lab_point_to_polygon_and_point_to_raster [2016/04/08 08:23] Stefan Ene
Line 1: Line 1:
-KG2204 Exercise 2: Point to Polygon (and more) +====== KG2204 Exercise 2: Point to Polygon (and more) ====== 
-admin|2014/09/29 13:19:53+
  
 ==Point to Polygon== ==Point to Polygon==
Line 13: Line 13:
   *  Rectangle marking the study area (Study_Area.shp)   *  Rectangle marking the study area (Study_Area.shp)
  
-[[data_exercise2.png]]+{{*:data_exercise2.png}}
  
 ==1. The intensity of monuments and spatial autocorrelation== ==1. The intensity of monuments and spatial autocorrelation==
 Create (20 rows x 20 columns) rectangular polygons covering the study area with the tool: Create (20 rows x 20 columns) rectangular polygons covering the study area with the tool:
  
-:ArcToolbox » Data Management Tools » Feature Class » Create Fishnet+ArcToolbox » Data Management Tools » Feature Class » Create Fishnet
  
 If not open; click ''Show Help >>'' and read through the information about the functions in the tool. The fishnet should have the same extent as the study area, and consist of 20 rows and columns. You want the results to be polygons.  If not open; click ''Show Help >>'' and read through the information about the functions in the tool. The fishnet should have the same extent as the study area, and consist of 20 rows and columns. You want the results to be polygons. 
Line 24: Line 24:
 Give the rectangular polygons values for the number of ancient monuments inside them by right clicking on the layer name of the rectangular polygons in the ''Table of Contents''. Choose: Give the rectangular polygons values for the number of ancient monuments inside them by right clicking on the layer name of the rectangular polygons in the ''Table of Contents''. Choose:
  
-:Joins and Relates » Join…+Joins and Relates » Join…
  
 Do: Join data from another layer based on spatial location Do: Join data from another layer based on spatial location
Line 36: Line 36:
 Go to the tab ''Symbology'' and choose: Go to the tab ''Symbology'' and choose:
  
-:Quantities » Graduated colors+Quantities » Graduated colors
  
 The value we want to visualize is ''Count_'' The value we want to visualize is ''Count_''
 Are there any patterns? Do neighboring polygons tend to be more similar than a random polygon? Check if that is the case by calculating the Moran’s I. Are there any patterns? Do neighboring polygons tend to be more similar than a random polygon? Check if that is the case by calculating the Moran’s I.
  
-:ArcToolbox » Spatial Statistics Tools » Analyzing Patterns » Spatial Autocorrelation (Morans I)+ArcToolbox » Spatial Statistics Tools » Analyzing Patterns » Spatial Autocorrelation (Morans I)
  
 You could use ''CONTIGUITY_EDGES_ONLY'' as conceptualization of spatial relationships. The result of the analysis is found here: You could use ''CONTIGUITY_EDGES_ONLY'' as conceptualization of spatial relationships. The result of the analysis is found here:
Line 55: Line 55:
 For that we use the election districts. Some of the election districts include a lot of water. Erase those parts from the election districts using the tool: For that we use the election districts. Some of the election districts include a lot of water. Erase those parts from the election districts using the tool:
  
-:ArcToolbox » Analysis Tools » Overlay » Erase+ArcToolbox » Analysis Tools » Overlay » Erase
  
 Give the election districts values for the population by joining them with the Excel file. Right click on the layer name of the election district polygons with lakes erased. Choose: Give the election districts values for the population by joining them with the Excel file. Right click on the layer name of the election district polygons with lakes erased. Choose:
  
-:Joins and Relates » Join…+Joins and Relates » Join…
  
 Do: Join attributes from a table using the fields: ''election_d'' and ''election_district_id'' Do: Join attributes from a table using the fields: ''election_d'' and ''election_district_id''
Line 78: Line 78:
 Open Microsoft Excel and open the dbf file (instead of ''All Excel Files'', choose ''dBase Files''). Copy or erase columns in a way that the population density column is to the right of the monument density column. Mark the both columns (include the headers) and choose: Open Microsoft Excel and open the dbf file (instead of ''All Excel Files'', choose ''dBase Files''). Copy or erase columns in a way that the population density column is to the right of the monument density column. Mark the both columns (include the headers) and choose:
  
-:Insert » (Charts) » Scatter » Scatter with only Markers+Insert » (Charts) » Scatter » Scatter with only Markers
  
 ==3. Test of monuments are close to water== ==3. Test of monuments are close to water==
Line 85: Line 85:
 We also want to create a raster file with the distance to water using the tool ''Euclidean Distance'': We also want to create a raster file with the distance to water using the tool ''Euclidean Distance'':
  
-:ArcToolbox » Spatial Analyst Tools » Distance » Euclidean Distance+ArcToolbox » Spatial Analyst Tools » Distance » Euclidean Distance
  
 Calculate the mean distance to water for each rectangular area using the tool: Calculate the mean distance to water for each rectangular area using the tool:
  
-:ArcToolbox » Spatial Analyst Tools » Zonal » Zonal Statistics as Table+ArcToolbox » Spatial Analyst Tools » Zonal » Zonal Statistics as Table
  
 Join this new table to the rectangular polygons and export the joined attribute table and open it in Microsoft Excel. Make a scatter plot for how the count of monuments relates to the mean distance for each rectangle. Join this new table to the rectangular polygons and export the joined attribute table and open it in Microsoft Excel. Make a scatter plot for how the count of monuments relates to the mean distance for each rectangle.
Line 99: Line 99:
 Put your intensity map and the two scatter plots in a Microsoft Word document and export the document as a PDF. Send in the PDF file on Mondo. Put your intensity map and the two scatter plots in a Microsoft Word document and export the document as a PDF. Send in the PDF file on Mondo.
  
-If you have time you can also practice map design using [[^http://gisela.humangeo.su.se:8080/quiz/mapdesign.html|this application]].+If you have time you can also practice map design using [[http://gisela.humangeo.su.se:8080/quiz/mapdesign.html|this application]].
lab_point_to_polygon_and_point_to_raster.txt · Last modified: 2020/03/29 14:23 by Stefan Ene