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

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

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
        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)
        boxArray.add(ulPoint)        
        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)
        boxArray.add(lrPoint)        
 
        # take point array and make a polygon
        boxArray.add(llPoint)               
        boxPolygon = arcpy.Polygon(boxArray)
 

src/p/o/polar_grid-0.1/polar_grid/polar_grid.py   polar_grid(Download)
            point.Y = coord_pair[1]
            point.ID = unique_id
            array.add(point)
 
        polygon = arcpy.Polygon(array) # Create a polygon object based on the array of points

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFansByFeature.py   defense-and-intel-analysis-toolbox(Download)
            pnt.X = vertex[0]
            pnt.Y = vertex[1]
            lineArray.add(pnt)
            del pnt
        feat = cur.newRow()

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingLimits.py   defense-and-intel-analysis-toolbox(Download)
            pnt.X = vertex[0]
            pnt.Y = vertex[1]
            lineArray.add(pnt)
            del pnt
        feat = cur.newRow()

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingAndTraversal.py   defense-and-intel-analysis-toolbox(Download)
                pnt.X = vertex[0]
                pnt.Y = vertex[1]
                lineArray.add(pnt)
                del pnt
            feat = cur.newRow()

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFan.py   defense-and-intel-analysis-toolbox(Download)
                pnt.X = vertex[0]
                pnt.Y = vertex[1]
                lineArray.add(pnt)
                del pnt
            feat = cur.newRow()