AnsweredAssumed Answered

More Code!!!

Question asked by Shiko on Jun 26, 2013
Latest reply on Jul 2, 2013 by Shiko
So now I'm trying to remove buffered roads from the previously selected areas.
    >>> # Remove the buffered roads from the suitable vegetation areas

    >>> erase = arcpy.Erase_analysis(select, "buffer", "in_memory/erase")
    Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\analysis.py", line 205, in Erase raise e ExecuteError: ERROR 000732: Input Features: Dataset in_memory\select does not exist or is not supported

    So then I tried changing the buffer feature, but nothing doing

    >>> erase = arcpy.Erase_analysis(select, buffer, "in_memory/erase")
    Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\analysis.py", line 205, in Erase raise e ExecuteError: ERROR 000732: Input Features: Dataset in_memory\select does not exist or is not supported

    What's strange is that when I selected the vegetation ArcMap created results for that but when I added the buffer code, ArcMap also added it to my list of layers (in addition to showing the results). Could someone help me understand what's going on here.

Outcomes