object.ListFeatureClasses({wildCard} As String, {FeatureType} As String) As Python List
for anElement in myList: do something ..
object.SearchCursor(InputValue As String, {WhereClause} As String, {SpatialReference} As Object, {FieldList} As String, {SortFields} As String) As Object
import arcgisscripting, sys, os gp = arcgisscripting.create() # Load required toolboxes... gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Data Management Tools.tbx") #workspace gp.Workspace = "P:\\Proj" coordsys = "C:\\Program Files\\ArcGISCoordinate Systems\\Projected Coordinate Systems\\National Grids\\British National Grid.prj" #List all features in gp.workspace fcs = gp.ListFeatureClasses("", "") fc = fcs.Next() for fc in fcs: gp.defineprojection(fcS, coordsys) print fc + " is defined."
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.