About 404,000 results
Open links in new tab
  1. adding feature class to file gdb - Esri Community

    Mar 19, 2012 · Here is an example on how to add your coordinate system using python: arcpy.CreateFeatureclass_management(r"C:\temp\python\test.gdb", "parcels", "POLYGON", "", "", "", "Coordinate Systems\Projected Coordinate Systems\UTM\NAD 1983\NAD 1983 …

  2. Solved: Append feature class datasets within gdb to a copi... - Esri ...

    Feb 4, 2025 · I've got this script tool for ArcPro and I'm trying to add to it so it takes all feature classes within a gdb and appends to a copied template which is located in a different gdb before dissolving.

  3. Append to hosted Feature layer from local gdb, Python - Esri …

    Sep 11, 2020 · Here's the code you can use to append to a hosted feature layer from a gdb feature class. You just need to change/update, add/delete the attributes based on your hosted feature layer and your gdb feature class attributes and change other variables too.

  4. arcpy - Appending feature classes from one geodatabase to …

    I am attempting to write a stand alone python script which will loop through the first GDB and append each feature class to its corresponding feature class in the second GDB. The error code that I...

  5. How do you copy feature classes into a new geodatabase in ArcGIS/Python ...

    Mar 8, 2016 · #uses CopyFeatures_management function to copy feature classes in the list to the data folder. fcdesc=arcpy.Describe(fc) #copies the features using a function that saves the new feature class with the basename. Your output file path is missing a delimiter.

  6. Python Script to Add Fields to Feature Classes

    Nov 30, 2016 · You can use a loop to work through each feature class in the current workspace. featureClasses = arcpy.ListFeatureClasses(): for fc in featureClasses: arcpy.AddField_management(fc,"Name","TEXT") That would create a text field called "Name" in each feature class in your current workspace.

  7. Accessing feature classes in file geodatabases using Python and …

    When accessing a FileGDB feature class I would assume using the commands: driver = ogr.GetDriverByName('FileGDB') ds = driver.Open('myfilegdb.gdb/feature_class', 0) but this doesn't seem to work since it cannot identify/locate the data set.

  8. Trying to add Feature Classes from SQL Server based .gdb with Python

    #Path to an MXD file you want to add data to. Use "CURRENT" if running from inside ArcMap. #Put a list of feature classes you wish to add to the map. for fc in arcpy.ListFeatureClasses(feature_dataset=ds): if fc in listOfLayersToAdd: fcFullPath = os.path.join(sdeConn, fc) layerToAdd = arcpy.mapping.Layer(fcFullPath)

  9. python - How to iterate multiple Gdb's and their Feature classes to add

    Apr 13, 2023 · arcpy.env.workspace = "C:/some/folder" for gdb in arcpy.ListWorkspaces(workspace_type="FileGDB"): arcpy.env.workspace = gdb for fc in arcpy.ListFeatureClasses("*"): # Add fields to the feature class

  10. Accessing Feature Class Objects from a Geodatabase ... - Esri …

    Jul 28, 2019 · This tool takes a table, feature class, feature layer, or raster dataset as its first argument and a list of attribute names to be deleted as its second argument. The problem is, I don't know how to access the FGDB Feature Classes in order to pass them to this function.

Refresh