This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
folder_assetarea = r"C:\Assets\AreaA" # The main folder for Area A | |
year = "2015" # The year to create the structure for | |
folder_year = os.path.join(fld_mun, year) | |
folder_list = [["conversion", ["cad_gis", "ftr_shp", "kml_gdb", | |
"pdf_jpg", "shp_gdb", "tbl_xls", | |
"xls_tbl",] "jpg_gis", "gps_gis", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @date 13/05/2015 | |
# @author Cindy Williams | |
# | |
# Creates a point feature class in memory containing | |
# random points within a predefined extent, and posts | |
# the points as ESRI JSON to a REST endpoint. | |
# | |
# For use as a standalone script | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @date 01/07/2015 | |
# @author Cindy Williams | |
# | |
# Generates a file gdb table containing the paths | |
# of photos to be attached to matching points as feature | |
# attachments. | |
# | |
# For use as a standalone script. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @date 26/06/2015 | |
# @author Cindy Williams | |
# | |
# Creates centroids from closed lines by creating temporary | |
# polygons. | |
# | |
# For use as as a standalone script. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @date 24/06/2015 | |
# @author Cindy Williams | |
# | |
# Creates feature classes by looking up the | |
# name in a pandas data frame | |
# | |
# For use as a standalone script | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy | |
import os | |
# Detailed description | |
os_appdata = os.environ['APPDATA'] # Current user's APPDATA folder | |
folder_esri = "ESRI" # ESRI folder name | |
arc_prod = arcpy.GetInstallInfo()['ProductName'] # Get the installed product's name e.g. Desktop | |
arc_ver = arcpy.GetInstallInfo()['Version'] # Get the installed product's version number | |
arc_cat = "ArcCatalog" # ArcCatalog folder name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy | |
arcpy.env.workspace = r"C:\Some\Arb\Folder" | |
# Define spatial reference WGS 84 | |
sr = arcpy.SpatialReference(4326) | |
for shp in arcpy.ListFeatureClasses(): | |
arcpy.management.DefineProjection(shp, sr) | |
print("Defined " + shp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @date 29/05/2015 | |
# @author Cindy Williams | |
# | |
# Checks an attribute field for duplicate values, | |
# and displays them along with the amount of duplicates. | |
# | |
# For use in the Python window in ArcMap. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @date 29/05/2015 | |
# @author Cindy Williams | |
# | |
# Updates a layer name with the name of the group layer | |
# it is in, in an existing mxd. | |
# | |
# For use in the Python window in ArcMap. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @date 27/05/2015 | |
# @author Cindy Williams | |
# | |
# Updates the values for a unique symbology renderer | |
# based on range domain values. The layer must have | |
# the unique symbols renderer enabled manually. | |
# | |
# For use in the Python window in ArcMap. | |
# |