Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(40)  |  Call(37)  |  Derive(0)  |  Import(3)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Concealment.py   defense-and-intel-analysis-toolbox(Download)
    # remove unnecessary fields in veg
    keepFields = ["fcsubtype","f_code"]
    vegDesc = arcpy.Describe(outConcealment)
    keepFields.append(vegDesc.shapeFieldName)
    keepFields.append(vegDesc.OIDFieldName)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
try:
    # Create output, use input as template for SR    
    inputFeaturesDesc = arcpy.Describe(inputFeatures)    
    inputFeaturesShapeName = inputFeaturesDesc.shapeFieldName
    inputFeaturesOID = inputFeaturesDesc.oidFieldName

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
        o = 'ORDER BY ' + str(o)
    else:
        oidname = getattr(arcpy.Describe(tbl), "OIDFieldName", None)
        if oidname is not None:
            o = 'ORDER BY ' + arcpy.AddFieldDelimiters(tbl, oidname) + ' ASC'
    """
    if col != newcol:
        d = arcpy.Describe(tbl)
        dcp = d.catalogPath
        flds = arcpy.ListFields(tbl)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
 
 
    descAOI = arcpy.Describe(inputAOI)
    srAOI = descAOI.SpatialReference
    env.outputCoordinateSystem = srAOI

src/a/r/arc-open-HEAD/arc_open/esri2open/utilities.py   arc-open(Download)
from arcpy import ListFields,Describe,SetProgressorLabel,SetProgressorPosition,GetCount_management, SetProgressor, AddMessage
from os.path import splitext
 
#utility functions we will call more then once
 
def getShp(shp):
    desc = Describe(shp)
    return [desc.ShapeFieldName,desc.shapeType.lower()]
 
#takes the fields object from above, tells you which is the OID 
def zm(shp):
    desc = Describe(shp)
    return [desc.hasZ,desc.hasM]
 
def makeInter(n):

src/e/s/esri2open-HEAD/Install/esri2open/utilities.py   esri2open(Download)
from arcpy import ListFields,Describe,SetProgressorLabel,SetProgressorPosition,GetCount_management, SetProgressor, AddMessage
from os.path import splitext
 
#utility functions we will call more then once
 
def getShp(shp):
    desc = Describe(shp)
    return [desc.ShapeFieldName,desc.shapeType.lower()]
 
#takes the fields object from above, tells you which is the OID 
def zm(shp):
    desc = Describe(shp)
    return [desc.hasZ,desc.hasM]
 
def makeInter(n):

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOS.py   defense-and-intel-analysis-toolbox(Download)
def zfactor(dataset):
    desc = arcpy.Describe(dataset)
    # if it's not geographic return 1.0
    if desc.spatialReference.type != "Geographic":
        return 1.0

src/e/s/esri2topo-HEAD/scripts/esri2open/utilities.py   esri2topo(Download)
from arcpy import ListFields,Describe,SetProgressorLabel,SetProgressorPosition,GetCount_management, SetProgressor, AddMessage
from os.path import splitext
 
#utility functions we will call more then once
 
def getShp(shp):
    desc = Describe(shp)
    return [desc.ShapeFieldName,desc.shapeType.lower()]
 
#takes the fields object from above, tells you which is the OID 
def zm(shp):
    desc = Describe(shp)
    return [desc.hasZ,desc.hasM]
 
def makeInter(n):

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOSdebug.py   defense-and-intel-analysis-toolbox(Download)
def zfactor(dataset):
    desc = arcpy.Describe(dataset)
    # if it's not geographic return 1.0
    if desc.spatialReference.type != "Geographic":
        return 1.0

src/a/g/agol-helper-HEAD/source/agol/common.py   agol-helper(Download)
def get_OID_field(fs):
    """returns a featureset's object id field"""
    desc = arcpy.Describe(fs)
    if desc.hasOID:
        return desc.OIDFieldName
def featureclass_to_json(fc):
    """ converts a feature class to a json dictionary representation """
    featureSet = arcpy.FeatureSet(fc)# Load the feature layer into a feature set
    desc = arcpy.Describe(featureSet)# this will allow us to use the json property of the feature set
    return json.loads(desc.json)
              list of feature objects
        """
        desc = arcpy.Describe(dataset)
        fields = [field.name for field in arcpy.ListFields(dataset) if field.type not in ['Geometry']]
        non_geom_fields = copy.deepcopy(fields)

  1 | 2 | 3  Next