Tag Info

Hot answers tagged

6

I think the easiest way to do this would simply be to use the Table to Domain GeoProcessing tool, which you could run directly within the software or call via arcpy. You can get details about the tool at http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000025000000 but basically it assumes you have a table that in your case would have a ...


4

I would consider two options: Get ArcGIS Explorer. It is a lightweight ESRI GIS Viewer and offered for free. Since it is by ESRI, you will get file geodatabase support. I don't have much experience with it, but it should offer the ability to export the data in another format.http://www.esri.com/software/arcgis/explorer Get QGIS, an open source and ...


4

Another way to search for feature classes, which may or may not be in a dataset is to use the walk function, as mentioned before. It requires only a workspace to search in (i.e. a folder containing hundreds of GDBs). import arcpy, os workspace = "Path/to/folder" search = "name_string_you_are_searching_for" feature_classes = [] for dirpath, dirnames, ...


3

I am not aware of any GP tool that would do that. However, I do this thing quite often by using a tiny procedure written in Python with ArcPy. I usually create a text field ("desc" in this case) in a feature class which has a subtype and then run UpdateCursor to write the description of the subtype code for each feature (the field used for subtype is ...


2

Specifically with regard to "[I want to] add a field in a feature class and copy it to the new one (1.5) without having to load each feature and appending the data" Yes, you can use the Add Field tool in Data Management to add fields to each of the affected feature classes without dropping and reloading features. (That field will be empty for each feature ...


2

This is a long way of doing what you're asking, using some python: You need a list of all the GeoDatabases that you want to search. If there are a lot, use python's walk function on the directory in question. Isolate for any folders with a .gdb in them or .mdb, depending on the database. Find all the datasets within the GeoDatabase. Find all the layers ...


1

http://support.esri.com/em/knowledgebase/techarticles/detail/41763 For ArcGIS 10.1+ from arcpy import da import os inTable = arcpy.GetParameterAsText(0) fileLocation = arcpy.GetParameterAsText(1) with da.SearchCursor(inTable,['DATA','ATT_NAME']) as cursor: for row in cursor: binaryRep = row[0] fileName = row[1] # save to disk ...



Only top voted, non community-wiki answers of a minimum length are eligible