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

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

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 __init__(self,featureClass):
        self.featureCount = int(GetCount_management(featureClass).getOutput(0))
        SetProgressor("step", "Found {0} features".format(str(self.featureCount)), 0, 100,1)
        AddMessage("Found "+str(self.featureCount)+" features")
        self.percent = 0

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 __init__(self,featureClass):
        self.featureCount = int(GetCount_management(featureClass).getOutput(0))
        SetProgressor("step", "Found {0} features".format(str(self.featureCount)), 0, 100,1)
        AddMessage("Found "+str(self.featureCount)+" features")
        self.percent = 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 __init__(self,featureClass):
        self.featureCount = int(GetCount_management(featureClass).getOutput(0))
        SetProgressor("step", "Found {0} features".format(str(self.featureCount)), 0, 100,1)
        AddMessage("Found "+str(self.featureCount)+" features")
        self.percent = 0

src/g/e/geojson-madness-HEAD/geojson_out.py   geojson-madness(Download)
 
    record_count = int(arcpy.management.GetCount(in_feature_class)[0])
    arcpy.SetProgressor("step", "Writing records", 0, record_count)
 
    with arcpy.da.SearchCursor(in_feature_class, ['SHAPE@', '*'],

src/g/e/geojson-madness-HEAD/geojson_in.py   geojson-madness(Download)
    fields = ["SHAPE@WKT"] + [f[0] for f in reverse_field_name_mapping]
    record_count = len(json_struct['features'])
    arcpy.SetProgressor("step", "Writing rows", 0, record_count)
    with arcpy.da.InsertCursor(out_feature_class, fields) as out_cur:
        for row_index, row_struct in enumerate(json_struct['features']):