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

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

src/a/r/arcapi-HEAD/arcapi.py   arcapi(Download)
    # retrieve values with search cursor
    ret = []
    with arcpy.da.SearchCursor(tbl, cols, where_clause = w, sql_clause=(None, o)) as sc:
        for row in sc:
            if multicols:
    i = 0
    hd = []
    with arcpy.da.SearchCursor(tbl, fieldnames, where_clause = w) as sc:
        for row in sc:
            i += 1
        }
 
    with arcpy.da.SearchCursor(tbl, cols, where_clause = w) as sc:
        for row in sc:
            for ci in cixs:

src/a/g/agol-helper-HEAD/source/agol/common.py   agol-helper(Download)
    """ gets all the data to pass to a feature service """
    ret_rows = []
    with arcpy.da.SearchCursor(attachmentTable,
                               [nameField,
                                blobField,
def get_records_with_attachments(attachment_table, rel_object_field="REL_OBJECTID"):
    """"""
    OIDs = []
    with arcpy.da.SearchCursor(attachment_table,
                               [rel_object_field]) as rows:
            fields.append("SHAPE@JSON")
        del desc
        with arcpy.da.SearchCursor(dataset, fields) as rows:
            for row in rows:
                template = {

src/g/e/geojson-madness-HEAD/geojson_out.py   geojson-madness(Download)
    arcpy.SetProgressor("step", "Writing records", 0, record_count)
 
    with arcpy.da.SearchCursor(in_feature_class, ['SHAPE@', '*'],
                               spatial_reference=spatial_reference) as in_cur:
        col_names = [aliased_fields.get(f, f) for f in in_cur.fields[1:]]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/LLOSProfileGraphAttachments.py   defense-and-intel-analysis-toolbox(Download)
    # Unique sight lines
    sightLineIDs = []
    rows = arcpy.da.SearchCursor(inputFeatures,["SourceOID","OID@"])
    for row in rows:
        thisID = row[0]
        whereclause = (""""SourceOID" = %s""" % currentID)
        tarIsViz = None
        rows = arcpy.da.SearchCursor(inputFeatures,["OID@","SHAPE@", "SourceOID", "TarIsVis","VisCode","ObsZ","TgtZ","OID_OBSERV","OID_TARGET"],whereclause)
        startX = None
        startY = None

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
    if debug == True: arcpy.AddMessage("Building vehicle table...")
    vehicleTable = {}
    vehicleRows = arcpy.da.SearchCursor(inputVehicleParameterTable,["OID@","classname","name","weight","maxkph","onslope","offslope"])
    for vehicleRow in vehicleRows:
        oid = vehicleRow[0]
    tileList = [] # this guys keeps track of the tile outputs we need to merge later
    tileNum = 1 # number of tiles
    fishnetRows = arcpy.da.SearchCursor(fishnet,["OID@","SHAPE@"])
    for tile in fishnetRows:
    #
        OID_SlopeCat_list = {}
 
        rows = arcpy.da.SearchCursor(slopeClip,["OID@","SlopeCat"])
        for row in rows:
            i = row[0] # OID
        arcpy.AddField_management(diagonals,"RNDID","LONG")
        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

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    

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Trajectory_Path.py   defense-and-intel-analysis-toolbox(Download)
    observersWebMerc = {}  
    #rows = arcpy.da.SearchCursor(inputFeature,["OID@","SHAPE@XY","Z"]) # use for interpolated points, not extracted
    rows = arcpy.da.SearchCursor(extractPoints,["OID@","SHAPE@XY","Z"])
    for row in rows:
        OID = row[0]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/AddTravelTimeToRoads.py   defense-and-intel-analysis-toolbox(Download)
    # Read table into dictionary {<TYP>:[<TF>,<FT>],...}
    velocityClasses = {}
    rows = arcpy.da.SearchCursor(inputVelocityTable,["typ","TF_KPH","FT_KPH"])
    for row in rows:
        velocityClasses[row[0]] = [row[1],row[2]]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RasterOffRoad.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage("Building vehicle table...")
    vehicleTable = {}
    vehicleRows = arcpy.da.SearchCursor(inputVehicleParameterTable,["OID@","classname","name","weight","maxkph","onslope","offslope"])
    for vehicleRow in vehicleRows:
        oid = vehicleRow[0]

src/g/e/geoprocessing-tools-for-hadoop-HEAD/JSONUtil.py   geoprocessing-tools-for-hadoop(Download)
    #add fieatures
    ftmp.write(u'"features": [' + NL)
    with arcpy.da.SearchCursor(fc, field_list) as cursor:
        add_comma = False
        row_len_no_geom = len(field_list) - (1 if feature_type else 0) #process geometry separately
 
    #add fieatures
    with arcpy.da.SearchCursor(fc, field_list) as cursor:
        row_len_no_geom = len(field_list) - (1 if feature_type else 0) #process geometry separately
        attributes_json = {}

  1 | 2  Next