Skip to content

Instantly share code, notes, and snippets.

View alexfriant's full-sized avatar

Alex alexfriant

View GitHub Profile
@alexfriant
alexfriant / set_global_layer_transparency.py
Created January 6, 2016 20:46
Change the transparency levels on all layers inside of your current ArcMap MXD document in one fell swoop!
##################################################################################################################
#
# Requirements: You'll need ArcGIS Desktop 10.1 or higher with Python 2.7+
#
# If you want to change Transparency for all the layers in your ArcMap MXD quickly, this will do the trick.
#
# 1. Copy / Paste the initial commands and function definitions below into an MXD's Python command shell, one-by-one
# 2. Use the command "setLayerTransparenciesTo(75)" to change every transparency to 75, or whatever you want
# (As a side note, notice that the Group Layers are set to 0 transparency. Play with this if you want!)
#
@alexfriant
alexfriant / attribute_field_data_report.py
Last active September 24, 2019 16:54
Gives you a data report for the contents of an attribute table in arcgis shapefiles or geodatabase feature classes
#################################################################################
#
# Requirements: You'll need ArcGIS Desktop 10.1 or higher with Python 2.7+
#
# Give this script a shapefile or a feature class and it will give you a summary
# report for each field (column) in the attribute table. It helps you get a feel
# for how "complete" the attributes are populated during data assessment. It's
# useful if you need to compare two similar data sources too if you fiddle with
# the results in a spreadsheet program.
#