fieldname = "Region" gp.workspace = "C:\\Daves_Stuff\\ArcPad_Data\\Standard_Layers\\Clip_Feature" shp = gp.ListFeatureClasses() for shp in shp: if fieldname == 'Murray Inland': gp.Delete_management("C:\\Daves_Stuff\\ArcPad_Data\\Standard_Layers\\Lamberts_Projection\\Pts_Lines\\Contour.shp")
import sys, string, os, arcgisscripting gp = arcgisscripting.create(9.3) Contours = "\\\\Atlas\\data\\geodata\\state\\contour\\arc " Crossings = "\\\\Atlas\\data\\geodata\\state\\crossings\\arc" Contour = "Contour.shp" Crossing = "Crossing.shp" P_L = "C:\\Daves_Stuff\\ArcPad_Data\\Standard_Layers\\Lamberts_Projection\\Pts_Lines" Clip_Feature = "C:\\Daves_Stuff\\ArcPad_Data\\Standard_Layers\\Clip_Feature\\Clip_Feature.shp" gp.FeatureClassToFeatureClass_conversion(Contours, P_L, Contour, "") gp.FeatureClassToFeatureClass_conversion(Crossings , P_L, Crossing, "") gp.workspace = "C:\\Daves_Stuff\\ArcPad_Data\\Standard_Layers\\Clip_Feature" scursor=gp.SearchCursor(Clip_Feature) row=scursor.Next() while row: if row.GetValue("Region") == 'Murray Inland': gp.Delete_management("C:\\Daves_Stuff\\ArcPad_Data\\Standard_Layers\\Lamberts_Projection\\Pts_Lines\\Contour.shp") del scursor
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.