Tag Info

New answers tagged

0

If you want to be extra safe, check to make sure all of the original and copied feature classes have identical attributes and geometry before you delete the originals. Here is a simple Python utility to do that. You can also configure the tool to produce a csv report on the differences. import arcpy, os # The original and the duplicate workspaces ws1 = ...


0

Found the problem. I moved the edit declarations to just before the with statement and changed the edit workspace by adding to the describe layer andb = desc.path. I then made andb the workspace for the edit session. Wish this had occurred to me days ago. Of course it didn't until after I posted.


2

You can use rgdal to access feature classes in Esri file geodatabases. require(rgdal) # The input file geodatabase fgdb = "C:/path/to/your/filegeodatabase.gdb" # List all feature classes in a file geodatabase subset(ogrDrivers(), grepl("GDB", name)) fc_list = ogrListLayers(fgdb) print(fc_list) # Read the feature class fc = ...


1

This cannot be done with ArcGIS. I asked a similar question here: Symbolizing File Geodatabase feature class with Layer File created from AutoCAD drawing? Personally, I was at least hoping to create a layer file from the CAD drawing that was added to ArcMap (similar symbology to what it appears like in AutoCAD but not identical). Although saving CAD layer ...


2

I disagree with @PolyGeo. I think your approach of using field mappings is the best approach, assuming the structure of all 100 tables are identical. Here's an example of how you may create your field map: fms = arcpy.FieldMappings() fms.addTable(fc) nfields = len(arcpy.ListFields(fc)) # skip fields 0,1 (OID, Shape), next 10, and the last two ...



Top 50 recent answers are included