0

This is my code which works only with the one raster image. But I need to create the tool that converts the multiple raster to vector in loop with arcpy.

import arcpy
from arcpy.sa import *
arcpy.env.workspace ='in_memory'
arcpy.env.overwriteOutput = True
input = arcpy.GetParameterAsText(0)
output= arcpy.GetParameterAsText(1)
arcpy.RasterToPolygon_conversion(input,output)

2
  • 2
    w3schools.com/python/python_lists_loop.asp Commented Nov 18, 2021 at 11:48
  • It looks like you have a Python Script Tool which let's your user input one raster and a name for your one output feature class. How would you envisage your user interacting with your tool dialog if you introduced a loop? Commented Nov 19, 2021 at 7:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.