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
# | |
# @author Cindy Williams | |
# @date 14/11/2014 | |
# | |
# Takes a folder containing deeds data in spreadsheet | |
# format and converts it into a GIS table for further processing. | |
# It must adhere to a specific format. | |
# | |
# For use as a script tool in an ArcGIS Toolbox. | |
# |
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
# | |
# @author Cindy Williams | |
# @date 25/06/2013 | |
# | |
# Loops over an existing spreadsheet with attribute data | |
# and builds up a definition query to apply to the dataset. | |
# | |
# 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
# | |
# @author Cindy Williams | |
# @date 23/08/2013 | |
# | |
# Exports the data driven pages from a folder of | |
# map documents as JPEGs. | |
# | |
# For use as a script tool in an ArcGIS Toolbox. | |
# |
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 25/02/2015 | |
# @author Cindy Williams | |
# | |
# Extracts a list of values from a field in an attribute table | |
# to be used in a coded value domain. | |
# | |
# For use in the Python window in ArcCatalog. | |
# |
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 25/02/2015 | |
# @author Cindy Williams | |
# | |
# Adds a new field to feature classes in a file GDB | |
# and assigns an existing domain to it. If the field | |
# exists, only the domain is assigned. | |
# | |
# For use in the Python window in ArcCatalog. | |
# |
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 31/05/2013 | |
# @author Cindy Williams | |
# | |
# Extracts a unique list of values from an attribute table | |
# and converts it into an coded value domain. | |
# | |
# For use as a script tool in an ArcGIS Toolbox. | |
# |
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 04/03/2015 | |
# @author Cindy Williams | |
# | |
# Returns the ESRI WKT for a given EPSG from epsg.io | |
# Adapted from http://geospatialpython.com/2014/12/wkt-epsg-strings-made-easy.html | |
# | |
def getPRJwkt(epsg): | |
import urllib |
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 06/03/2015 | |
# @author Cindy Williams | |
# | |
# Returns the distance a point is along a line. Assumes that the | |
# existing point and line feature classes have the same spatial reference, | |
# and the points are snapped to the line. | |
# | |
# 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 17/09/2014 | |
# @author Cindy Williams | |
# | |
# Set the label field and switch labels on for | |
# all layers in a 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
import arcpy | |
ftr = r"C://Some//Arb//Folder//work.gdb//ftr" | |
subs = arcpy.da.ListSubtypes(ftr) | |
for k, v in subs.iteritems(): | |
print k, v['Name'] |
OlderNewer