Arcpy: MakeFeatureLayer_Management: Where is the file?

المشرف العام

Administrator
طاقم الإدارة
I am trying to understand arcpy/python, and am confused about where a layer file is located during the process.

This is my code:

import os, sysimport arcpygdb = "C:\\Example.gdb"featureClass = "C:\\Example.gdb\feature"arcpy.MakeFeatureLayer_Management(featureClass,"OutLayer","\"Field_Name\" = 'Name One'")arpy.CopyFeatures_management("Outlayer","C:\\Example.gdb\\test")This seems to work, but I don't understand where "Outlayer" exists. If I run the code again, I get the message that I can't because "Outlayer" already exists. It is not in the .gdb, or the default.gdb. When I specify a path (e.g. C:\GIS\OutLayer) it isn't there. Finally, when I search for it using Windows Explorer, I can't find the file. It is not important, but just trying to figure out what is going on.



أكثر...
 
أعلى