Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 15054

Repeated execution of some groups of code statements.

4 votes

Problems with for iteration in arcpy

As Mr Che and radouxju have said calculate field does all the rows, and that you should be using an update cursor but I would like to add that you're using an older style of cursor.. the arcpy.da curs …
Michael Stimson's user avatar
2 votes

Trying to build a model to get all layers(same name, different folders and different geodata...

This is probably a good place to start learning python. Here is a little script that will do what you want: import os, sys, arcpy BaseFolder = r'c:\your\folder' # change this to match your 'top leve …
Hornbydd's user avatar
  • 44.6k
2 votes
Accepted

Iterating through records specific number at a time using ArcPy?

arcpy.AddMessage("Querying related records in {0}".format(lyr)) arcpy.SelectLayerByAttribute_management(lyr, selectType, whereClause) If the list is shorter than 10000 then the iteration
PolyGeo's user avatar
  • 65.4k
0 votes
Accepted

Calling individual bands from multiband.tif in python perform action and save output in muti...

There's a few burning problems with your code.. Bands are 1 based, and it's better to keep one iterator rather than trying to use two, I suggest loop for band_number in range(1, number_of_bands + 1): …
Michael Stimson's user avatar