This file contains hidden or 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 sys | |
import os | |
import copy | |
import arcpy | |
def get_field_values(fc, field, where=""): | |
''' | |
@return: A list of the values for the given field in the given feature class | |
with the given optional where clause applied. |
This file contains hidden or 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
dict((section, dict(cfg_parser.items(section))) for section in cfg_parser.sections()) |
This file contains hidden or 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
''' | |
1. Open ArcMap and add the desired feature dataset to it. | |
2. Zoom to the extent that you want to export. | |
3. Open the Python prompt. | |
4. Paste the code below into it and hit Enter. | |
5. Go to where out_fgdb points to, then copy the export_fgdb.gdb.zip file and send it out. | |
''' | |
import shutil | |
import os |
This file contains hidden or 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 re | |
import arcpy | |
for toolbox in arcpy.ListToolboxes(): | |
wildcard = re.search(r"\((\w+)\)", toolbox).group(1) | |
for tool in arcpy.ListTools("*_%s"%wildcard): | |
print toolbox, tool, arcpy.Usage(tool) |
NewerOlder