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

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
        arcpy.CalculateField_management(tileClip,"FnetID",tileOID)
        deleteme.append(tileClip)
        rs = arcpy.da.InsertCursor(tileClip,["SHAPE@"])
        rs.insertRow([tile[1]])
        del rs
        deleteme.append(diagonals)
        rows = arcpy.da.SearchCursor(randomPoint,["OID@","SHAPE@XY"])
        insert = arcpy.da.InsertCursor(diagonals,["SHAPE@","RNDID"])
        offset = 500.0 # 1/2 km offsets
        for row in rows:

src/a/g/agol-helper-HEAD/source/agol/common.py   agol-helper(Download)
        with arcpy.da.Editor(workspace) as edit:
            date_fields = getDateFields(fc)
            icur = arcpy.da.InsertCursor(fc, fields)
            for feat in features:
                row = [""] * len(fields)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
    # start the cursors
    searchRows = arcpy.da.SearchCursor(inputFeatures,["OID@","SHAPE@","Bearing","Range","LeftAz","RightAz"])
    writeRows = arcpy.da.InsertCursor(outputExtentBoxes,["SHAPE@","RFID","Bearing","Range","Width","LeftAz","RightAz","WeaponX","WeaponY"])
    # for each range fan in the inputFeatures    
    for currentRead in searchRows:

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Trajectory_Path.py   defense-and-intel-analysis-toolbox(Download)
 
    # start a cursor on the output path features.    
    addRows = arcpy.da.InsertCursor(outFeature,["SHAPE@","MaxHeight","Range","TimeImpact","Bearing","ElevAngle","InitV"])
 
    # go through each observer and build a trajectory path

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
    fields = [c[0] for c in cols]
 
    with arcpy.da.InsertCursor(out_tbl, fields) as ic:
        for rw in x:
            if doReplace:

src/g/e/geoprocessing-tools-for-hadoop-HEAD/JSONUtil.py   geoprocessing-tools-for-hadoop(Download)
            geomEmpty = _getEmptyGeom(geomType)
 
        with arcpy.da.InsertCursor(output_fc, field_list + ([u'shape@json'] if geomType else [])) as cursor:
            for feature in _iterLoadUnenclosedJSON(json_file) :
                row = []
            geomEmpty = _getEmptyGeom(geomType)
 
        with arcpy.da.InsertCursor(output_fc, field_list + ([u'shape@json'] if geomType else [])) as cursor:
            for feature in json_fc[u'features'] :
                row = []

src/g/e/geojson-madness-HEAD/geojson_in.py   geojson-madness(Download)
    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']):
            if (row_index % 100 == 1):