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/CreateRangeFanBoxes.py   defense-and-intel-analysis-toolbox(Download)
    tempGeoPoints = os.path.join(scratch,"tempGeoPoints")
    deleteme.append(tempGeoPoints)
    arcpy.Project_management(outputWeaponPositions,tempGeoPoints,GCS_WGS_1984)
    arcpy.AddXY_management(tempGeoPoints)
    tempCCNPoints = os.path.join("in_memory","tempCCNPoints")

src/a/r/arc-open-HEAD/arc_open/convert.py   arc-open(Download)
        if convert_to_wgs84:
            AddMessage('Converting spatial reference to WGS84...')
            arcpy.Project_management(temp_shapefile, shapefile, "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433],METADATA['World',-180.0,-90.0,180.0,90.0,0.0,0.0174532925199433,0.0,1262]]", "WGS_1984_(ITRF00)_To_NAD_1983", "PROJCS['NAD_1983_StatePlane_Pennsylvania_South_FIPS_3702_Feet',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Lambert_Conformal_Conic'],PARAMETER['False_Easting',1968500.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-77.75],PARAMETER['Standard_Parallel_1',39.93333333333333],PARAMETER['Standard_Parallel_2',40.96666666666667],PARAMETER['Latitude_Of_Origin',39.33333333333334],UNIT['Foot_US',0.3048006096012192]]")
            AddMessage('Projection conversion completed.')
        else:

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOS.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage("Recentering Azimuthal Equidistant to centroid ...")
    mbgCenterWGS84 = os.path.join(env.scratchWorkspace,"mbgCenterWGS84")
    arcpy.Project_management(mbgCenterPoint,mbgCenterWGS84,GCS_WGS_1984)
    arcpy.AddXY_management(mbgCenterWGS84)
    pointx = 0.0
        surfaceSR = arcpy.Describe(input_surface).spatialReference
        mbgBufferPrj = os.path.join(env.scratchWorkspace,"mbgBufferPrj")
        arcpy.Project_management(mbgBuffer,mbgBufferPrj,surfaceSR)
        delete_me.append(mbgBufferPrj)
        mbgBufferPrjExtent = arcpy.Describe(mbgBufferPrj).extent
        surfaceSR = arcpy.Describe(input_surface).spatialReference
        mbgBufferPrj = os.path.join(env.scratchWorkspace,"mbgBufferPrj")
        arcpy.Project_management(mbgBuffer,mbgBufferPrj,surfaceSR)
        delete_me.append(mbgBufferPrj)
        # clip surface to projected buffer
    obs_prj = os.path.join(env.scratchWorkspace,"obs_prj")
    arcpy.AddMessage("Projecting observers ...")
    arcpy.Project_management(observers,obs_prj,strAZED)
    delete_me.append(obs_prj)
 
    #else:
    #    arcpy.Project_management(mbgBufferPrj,obs_buf,strAZED)
    arcpy.Project_management(mbgBufferPrj,obs_buf,strAZED)
    delete_me.append(obs_buf)
 

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RLOSdebug.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage("Recentering Azimuthal Equidistant to centroid ...")
    mbgCenterWGS84 = os.path.join(envscratchworkspace,"mbgCenterWGS84")#(envscratchworkspace,"mbgCenterWGS84")
    arcpy.Project_management(mbgCenterPoint,mbgCenterWGS84,GCS_WGS_1984)
    arcpy.AddXY_management(mbgCenterWGS84)
    pointx = 0.0
        surfaceSR = arcpy.Describe(input_surface).spatialReference
        mbgBufferPrj = os.path.join(envscratchworkspace,"mbgBufferPrj")#(envscratchworkspace,"mbgBufferPrj")
        arcpy.Project_management(mbgBuffer,mbgBufferPrj,surfaceSR)
        delete_me.append(mbgBufferPrj)
        mbgBufferPrjExtent = arcpy.Describe(mbgBufferPrj).extent
        surfaceSR = arcpy.Describe(input_surface).spatialReference
        mbgBufferPrj = os.path.join(envscratchworkspace,"mbgBufferPrj")
        arcpy.Project_management(mbgBuffer,mbgBufferPrj,surfaceSR)
        delete_me.append(mbgBufferPrj)
        # clip surface to projected buffer
    obs_prj = os.path.join(envscratchworkspace,"obs_prj")
    arcpy.AddMessage("Projecting observers ...")
    arcpy.Project_management(observers,obs_prj,strAZED)
    delete_me.append(obs_prj)
 
    #else:
    #    arcpy.Project_management(mbgBufferPrj,obs_buf,strAZED)
    arcpy.Project_management(mbgBufferPrj,obs_buf,strAZED)
    delete_me.append(obs_buf)
 

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/Concealment.py   defense-and-intel-analysis-toolbox(Download)
        arcpy.AddMessage("AOI features are Geographic, projecting to Web Mercator...")
        newAOI = os.path.join(scratch,"newAOI")
        arcpy.Project_management(input_AOI_Feature,newAOI,prjWebMercator)
        input_AOI_Feature = newAOI
        deleteme.append(newAOI)
    prjAOIveg = os.path.join(scratch,"AOIVeg")
    srVeg = arcpy.Describe(baseVegetation).SpatialReference
    arcpy.Project_management(input_AOI_Feature,prjAOIveg,srVeg)
        # clip veg (clip veg_poly from base_veg_poly using envelope)
    vegPoly = os.path.join(scratch,"vegPoly")    
    # project clipped vegetation back to AOI SR
    if debug == True: arcpy.AddMessage("Projecting clipped veg back to AOI...")
    arcpy.Project_management(vegPoly,outConcealment,prjAOI)
 
    # remove unnecessary fields in veg

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFansByFeature.py   defense-and-intel-analysis-toolbox(Download)
    prjInFeature = os.path.join(scratch,"prjInFeature")
    arcpy.AddMessage("Projecting input point to Web Mercator" + str(prjInFeature))
    arcpy.Project_management(inFeature,prjInFeature,webMercator)
    deleteme.append(prjInFeature)
    shapefieldname = arcpy.Describe(prjInFeature).ShapeFieldName

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingLimits.py   defense-and-intel-analysis-toolbox(Download)
    srInputPoints = arcpy.Describe(copyInFeatures).spatialReference
    arcpy.AddMessage("Projecting input points to Web Mercator ...")
    arcpy.Project_management(copyInFeatures,prjInFeature,webMercator)
    deleteme.append(prjInFeature)
    tempFans = os.path.join(scratch,"tempFans")
 
    arcpy.AddMessage("Projecting Range Fans back to " + str(srInputPoints.name))
    arcpy.Project_management(tempFans,outFeature,srInputPoints)
 
    arcpy.SetParameter(4,outFeature)

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFanByBearingAndTraversal.py   defense-and-intel-analysis-toolbox(Download)
    srInputPoints = arcpy.Describe(copyInFeatures).spatialReference
    arcpy.AddMessage("Projecting input points to Web Mercator ...")
    arcpy.Project_management(copyInFeatures,prjInFeature,webMercator)
    deleteme.append(prjInFeature)
    tempFans = os.path.join(scratch,"tempFans")
 
    arcpy.AddMessage("Projecting Range Fans back to " + str(srInputPoints.name))
    arcpy.Project_management(tempFans,outFeature,srInputPoints)
 
 

src/d/e/defense-and-intel-analysis-toolbox-HEAD/toolboxes/scripts/RangeFan.py   defense-and-intel-analysis-toolbox(Download)
    arcpy.AddMessage(str(webMercator) + "\n" + prjInFeature)
    arcpy.AddMessage("Projecting input points to Web Mercator ...")
    arcpy.Project_management(inFeature,prjInFeature,webMercator)
    deleteme.append(prjInFeature)