arcpy.mapping.CreateGISServerConnectionFile("USE_GIS_SERVICES", arcpy.env.scratchFolder, servername + ".ags", "http://" + servername + ".arcgis.com/arcgis/services", "ARCGIS_SERVER", '', '', userName, passWord, "SAVE_USERNAME") # set up image layer from the landscape server connection, and get its spatial reference imageService = os.path.join(arcpy.env.scratchFolder, servername, imageservicename + ".ImageServer") inputImageLayer = arcpy.MakeImageServerLayer_management(imageService,"imageLayer")
rastSpatRef = arcpy.Describe(inputImageLayer).spatialReference arcpy.env.cellSize = arcpy.Describe(inputImageLayer).meanCellWidth theCellSize = arcpy.Describe(inputImageLayer).meanCellWidth
arcpy.MakeRasterLayer_management(inputImageLayer, "temp_raster")
arcpy.sa.Con("junk2g","temp_raster")
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.