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/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Trajectory_Path.py   defense-and-intel-analysis-toolbox(Download)
        # project to Web Merc and add to separate dictionary
        #pnt2 = arcpy.Geometry("POINT",arcpy.Point(pnt[0],pnt[1],Z),arcpy.Describe(inputFeature).spatialReference,True) # user for interpolated points, not extracted
        pnt2 = arcpy.Geometry("POINT",arcpy.Point(pnt[0],pnt[1],Z),arcpy.Describe(extractPoints).spatialReference,True)
        pntWM = pnt2.projectAs(prjWebMercator)
        observersWebMerc[OID] = [pntWM.firstPoint.X,pntWM.firstPoint.Y,Z] 
 
                path.append([x,y,z,t])
                pathArray.append(arcpy.Point(x,y,z,t)) # add the point to the path array
 
                # compare if the path-point's Z is below the surface, if so stop adding points.
            tHalf = TimeToRange(maxHeight)
            path.append([x,y,z,0.0])
            pathArray.append(arcpy.Point(x,y,z,0.0))
            path.append([x,y,z + maxHeight,tHalf])
            pathArray.append(arcpy.Point(x,y,z + maxHeight,tHalf))
            path.append([x,y,z,2 * tHalf])
            pathArray.append(arcpy.Point(x,y,z,2 * tHalf))

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/FM5-33CCM.py   defense-and-intel-analysis-toolbox(Download)
            rndPt = row[1]
            # if I'm right this is how we add a multipart line feature
            diagArray1 = arcpy.Array([arcpy.Point(rndPt[0] - offset,rndPt[1] + offset),arcpy.Point(rndPt[0] + offset,rndPt[1] - offset)])
            diagArray2 = arcpy.Array([arcpy.Point(rndPt[0] - offset,rndPt[1] - offset),arcpy.Point(rndPt[0] + offset,rndPt[1] + offset)])
            diagArray = arcpy.Array([diagArray1,diagArray2])

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
        for part in currentRead[1]:
            for pnt in part:
                partCoordList.append(arcpy.Point(pnt.X,pnt.Y))
 
        # get critical points
        llX =  startPoint.X + (halfWidth * math.cos(math.radians(Geo2Arithmetic(leftBearing))))
        llY =  startPoint.Y + (halfWidth * math.sin(math.radians(Geo2Arithmetic(leftBearing))))
        llPoint = arcpy.Point(llX,llY)
        boxArray.add(llPoint)
 
        # from llPoint go fanRange by bearing
        ulX = llPoint.X + (fanRange * math.cos(math.radians(Geo2Arithmetic(bearing))))
        ulY = llPoint.Y + (fanRange * math.sin(math.radians(Geo2Arithmetic(bearing))))
        ulPoint = arcpy.Point(ulX,ulY)
        urX = ulPoint.X + (width * math.cos(math.radians(Geo2Arithmetic(rightBearing))))
        urY = ulPoint.Y + (width * math.sin(math.radians(Geo2Arithmetic(rightBearing))))
        urPoint = arcpy.Point(urX,urY)
        boxArray.add(urPoint)
 
        # from urPoint go fanRange by negative bearing
        lrX = urPoint.X + (fanRange * math.cos(math.radians(Geo2Arithmetic(backBearing))))
        lrY = urPoint.Y + (fanRange * math.sin(math.radians(Geo2Arithmetic(backBearing))))
        lrPoint = arcpy.Point(lrX,lrY)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOS.py   defense-and-intel-analysis-toolbox(Download)
    rows = arcpy.InsertCursor(mbgCenterPoint)
    feat = rows.newRow()
    feat.setValue(mbgShapeFieldName,arcpy.Point(mbgCenterX,mbgCenterY))
    rows.insertRow(feat)
    del rows

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOSdebug.py   defense-and-intel-analysis-toolbox(Download)
    rows = arcpy.InsertCursor(mbgCenterPoint)
    feat = rows.newRow()
    feat.setValue(mbgShapeFieldName,arcpy.Point(mbgCenterX,mbgCenterY))
    rows.insertRow(feat)
    del rows

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingLimits.py   defense-and-intel-analysis-toolbox(Download)
        lineArray = arcpy.Array()
        for vertex in outPath:
            pnt = arcpy.Point()
            pnt.X = vertex[0]
            pnt.Y = vertex[1]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFan.py   defense-and-intel-analysis-toolbox(Download)
            lineArray = arcpy.Array()
            for vertex in outPath:
                pnt = arcpy.Point()
                pnt.X = vertex[0]
                pnt.Y = vertex[1]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingAndTraversal.py   defense-and-intel-analysis-toolbox(Download)
            lineArray = arcpy.Array()
            for vertex in outPath:
                pnt = arcpy.Point()
                pnt.X = vertex[0]
                pnt.Y = vertex[1]

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFansByFeature.py   defense-and-intel-analysis-toolbox(Download)
 
        for vertex in path:
            pnt = arcpy.Point()
            pnt.X = vertex[0]
            pnt.Y = vertex[1]

src/p/o/polar_grid-0.1/polar_grid/polar_grid.py   polar_grid(Download)
    :type output:               String
    """
    point = arcpy.Point() # Empty point object
    array = arcpy.Array() # Empty array object