Sunday, April 28, 2013

How to calculate covariates as aggregates of neighborhood buffer of points in ArcGIS 10.0

If we have point levels data, we often want to calculate the value of certain covariates that can depict it's influence within neighborhood(or distance buffer) as environmental risk factors on an outcomes. These covariates are simply the aggregates a covariates value of each points, whithin neighborhood/a circle of buffer for example.

Then the steps are:
1. Make sure we have shape file point feature with relevant attributes (covariates) table within.
2. Create buffer (In Geoprocessing Toolbox) of whatever radius we want from the point feature.
3. Perform "Spatial Joint" from Analysis toolbox - Overlay-Spatial Joint.
4. Choose the new buffer polygon feature you just created as target feature.
5. Choose our point feature as joint feature.
6. Name the output shape file and set the directory we would like to save it.
7. Choose one to one relationship.
8. Looking the variables we would like to aggregate but with sign like "...._1" (because the buffer polygon also contain the same variable that taken from the original point feature, so ArcGIS try to make it different by adding 1).
9. Right click on it and look for merge rule "sum" ( I assume that we need a sum within the buffer)
10. Set the match option as "Contain.
11. Click OK

Tips: When you work with big data, you better try it first with small number of point features and check the result out whether that's what you really want.

Tuesday, January 29, 2013

Creating Neighborhood Polygon using QGIS

Steps:
Creating Shape File:
  1. Open project file
  2. Click main menu "Layer"
  3. Mouse over "New"
  4. Select "New Shapefile layer"
  5. Select "Polygon"
  6. Select appropriate projection by "Specify CRS"
  7. Add attributes field as necessary
  8. OK
  9. Save with the name in our directory
Creating Polygon for neighborhood:
  1. Select the new shape file just created
  2. Right click on it
  3. Click "Togle editing"
  4. Click "Capture polygon"
  5. Make polygon
  6. Right click on the last point
  7. Write the id number
  8. OK
  9. Continue...

Creating Projected Coordinates for a Centroid using QGIS

Steps:
  1. Open project file
  2. Click main menu "Vector"
  3. Click "Geometry tools"
  4. Click "Export/add geometry column"
  5. Select input layer
  6. Browse and name output layer
  7. OK

Creating Centroid from a Polygon using QGIS

Steps:
  1. Open project file
  2. Click main menu "Vector"
  3. Click "Geometry tools"
  4. Click "Polygon centroid"
  5. Select input layer
  6. Browse and name output layer
  7. OK

Creating Polygon from Points Using QGIS

Steps:
1. Open the project file
2. Click Main Menu "Vector"
3. Click "Geoprocessing tool"
4. Click "Convex Hull"
5. Select input layer
6. Browse and name the output layer as you want
7. OK