Skip to content

An R and ArcPy framework for calculating the symmetry of ESRI shapefile polygons, using the 2010 state legislative district boundaries as an example

Notifications You must be signed in to change notification settings

aaronrkaufman/ShapefileSymmetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The R script takes a shapefile consisting of polygons, finds each polygon's centroid, and writes 2 new shapefiles: one shapefile has all polygons flipped across their x axis, and the other has them all flipped across their y axis.

After this step, go into ArcGIS and define the projections as WGS 1984. Then you can run the python script.

The python script calculates the symmetric difference statistic using both sets of polygons, and prints symmetry.txt. If a polygon's symmetric difference cannot be calculated, it returns NA.

About

An R and ArcPy framework for calculating the symmetry of ESRI shapefile polygons, using the 2010 state legislative district boundaries as an example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published