AnsweredAssumed Answered

Is there a way to use python get the geometries of the feature classes in sde?

Question asked by RP.CObb on Oct 1, 2019
Latest reply on Oct 3, 2019 by bixb0012

Hi,

 

So I am working on a script to automate a process for populating certain fields in several feature classes, but in order to do so I need to determine what kind of geometries these feature classes are. Depending on what kind of feature classes they are, the script runs a certain way. The issue I am having with the script is I am not getting the list of geometries for the feature classes. The feature classes are in sde (not sure if that makes a difference) and I keep getting a list, but not a list of the geometries. Any help would be greatly appreciated.

 

import arcpy

arcpy.env.workspace = r'Database Connections\Storm Water.sde\STORM.GISADMIN.Storm_Network'

fcs = []
descList = []
fclist = arcpy.ListFeatureClasses()
for fc in fclist:
    fcs.append(fc)
for fc in fcs:
    desc = arcpy.Describe(fc)
    descList.append(desc)

Outcomes