New answers tagged python27
You don't want copy, you want Select. You'll select the layer you want from the Solve and carry on with that. The Solve output is a group of layers. After you select it out, I believe it's still a layer, as such you wont need to MakeFeatureLayer. You should just be able to do your SelectByLocation with it.
There is no ready-made solution, you need to program but it is a simple problem of analytical geometry (Nearest neighbor) and the solution was given by Paul Bourke in 1998 (Points, lines, and planes). Several versions of his algorithm have been proposed in various languages including Python: Measuring distance from a point to a line segment in ...
It looks like you are missing another zone = cursor.next() within the While loop You need to increment the cursor to the next feature after you're done with it or the loop starts over on the same feature. incidents = r"c:\users\documents\arcgis\arcgis tutorials\psu tutorials\project3\policedata.gdb\GraffitiIncidents" patrol_zones = ...
Multipatch feature are supported 3D building. So you can try to do this method. plz refer to this link. http://resources.arcgis.com/en/help/main/10.1/index.html#//00q80000007n000000
If you are talking about doing fuzzy text comparisons, check out the answers to this question on StackOverflow. Particularly, the built-in difflib module can do this.
There is no need to use code to find the mismatched village names so I am going to assume that doing that is not a requirement. I am also going to assume that you are comparing village name fields from two shapefiles. First Join the two shapefiles based on their village name field (I have used Name and did this from the Attribute Table). Make sure that ...
An alternate approach to that suggested by Matthias is to create the memory layer, then set the layer projection afterwards. vpoi = QgsVectorLayer("Point?crs=EPSG:4326", "vectpoi", "memory") # create memory layer in WGS84 vpoi.setCrs(votherpoly.crs()) # change the coordinate reference system If you don't specify any CRS initially (i.e. no "crs=") QGIS ...
This code would work for you. import arcpy arcpy.env.workspace = r"C:\GIS\93_data\93" workspaces = arcpy.ListWorkspaces("*", "FileGDB") for workspace in workspaces: desc = arcpy.Describe(workspace) if desc.release != '3,0,0': arcpy.UpgradeGDB_management(workspace, "PREREQUISITE_CHECK", "UPGRADE")
Top 50 recent answers are included