I use a python script tool in ArcMap which has two input parameters. The tool only allows to use shapefiles as input. My problem is, that the data I use is organized in feature classes within a geodatabase. Is there a possibility to change the code so that the tool works either with shapefiles and also with (polygon) feature classes? I thought, maybe if the tool recognizes that the input data is a feature class it can automatically convert it like with FeatureClassToShapefile_conversion.
Thanks in advance.
python arcpy arcmap 10.6 tool parameters #parameter invalid
Although there are some, there are very few Esri geoprocessing tools that only accept shape files and not feature classes. What geoprocessing tools is the Python script tool using?
Im not sure because there are a great deal of geoprocessing tools implemented into my tool. May I ask which tools you know that do not take shapefiles?
or... Copy Features and save it as a shapefile
that works, but it is not very convenient for a big amount of data
perhaps, but that only leaves you the option of writing your own implementation
Can you share more information about the script tool? Or even the tool itself?