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

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

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
        # 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)        
 
        # from ulPoint go width by negative crossbearing
        urX = ulPoint.X + (width * math.cos(math.radians(Geo2Arithmetic(rightBearing))))
        urY = ulPoint.Y + (width * math.sin(math.radians(Geo2Arithmetic(rightBearing))))
        # 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)        

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFansByFeature.py   defense-and-intel-analysis-toolbox(Download)
        pnt = feat.getPart()
        centerPointX = pnt.X
        centerPointY = pnt.Y
        range = row.getValue(rangeField)
        bearing = row.getValue(bearingField)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingLimits.py   defense-and-intel-analysis-toolbox(Download)
        pnt = feat.getPart()
        centerPointX = pnt.X
        centerPointY = pnt.Y
        centerPoints.append([centerPointX,centerPointY])
    del rows

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingAndTraversal.py   defense-and-intel-analysis-toolbox(Download)
            pnt = feat.getPart()
            centerPointX = pnt.X
            centerPointY = pnt.Y
            centerPoints.append([centerPointX,centerPointY])
        del row

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFan.py   defense-and-intel-analysis-toolbox(Download)
            pnt = feat.getPart()
            centerPointX = pnt.X
            centerPointY = pnt.Y
            centerPoints.append([centerPointX,centerPointY])
        del row