|
POST
|
If the field isn't indexed and has a lot of unique variables the sort can take a while. I wouldn't think it would be in the order of 8 minutes though. The 9.3 cursors were not quite as fast if I recall. If you are reading the feature class in the update cursor instead of a layer how you are with the field calculator that can also have an impact.
... View more
06-06-2012
05:24 AM
|
0
|
0
|
1256
|
|
POST
|
Try putting some tests in to see if locks are being held. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v00000024000000 Also it would help to post your error messages. I also find running scripts in functions help clean up problems like this between runs.
... View more
06-05-2012
11:11 AM
|
0
|
0
|
1097
|
|
POST
|
I would suspect it is because you are using the default workspace in ArcMap and setting SDE as your workspace in your stand-alone script.
... View more
06-05-2012
05:10 AM
|
0
|
0
|
1504
|
|
POST
|
What you want is this. Not sure of the exact syntax for 9.3 might be row.SetValue(...) row.setValue(inputField,6)
... View more
06-04-2012
11:36 AM
|
0
|
0
|
802
|
|
POST
|
Yes, that is what you are doing in your code by setting your workspace to SDE and creating the tableview with the same name as the source.
... View more
06-04-2012
10:09 AM
|
0
|
0
|
1504
|
|
POST
|
Have you set your overwriteoutput in your code?
env.overwriteOutput = True
... View more
06-04-2012
10:00 AM
|
0
|
0
|
1504
|
|
POST
|
Try arcpy.Append_management(os.path.join(outputFolder,"KML3"),FC,"NO_TEST")
Edit: You need to import the os module for this method to work of course.
... View more
06-04-2012
09:05 AM
|
0
|
0
|
805
|
|
POST
|
Some geoprocessing tools cannot take in_memory datasets as inputs/outputs.
... View more
06-04-2012
08:32 AM
|
0
|
0
|
1034
|
|
POST
|
Your mysettings.py should be something along these lines, depending on what it does. def main():
myvar = "This is imported."
return myvar
if __name__ == '__main__':
main() Your irp.py should be something like this. import mysettings
def main():
print mysettings.main()
if __name__ == '__main__':
main()
... View more
06-04-2012
08:25 AM
|
0
|
0
|
1381
|
|
POST
|
You need to do something like this in your irp.py mysettings.main() When you import a module it isn't executed as the __main__ so it needs to be called by function if you have it setup that way.
... View more
06-04-2012
08:15 AM
|
0
|
0
|
1381
|
|
POST
|
Cursors are much faster than field calculations, so performance would improve using an UpdateCursor.
... View more
06-04-2012
05:37 AM
|
0
|
0
|
1256
|
|
POST
|
Or even better. Through this method you don't have to worry about what format the variables go through as. Add field/attribute delimiters as needed. Expression = "MER = {0} AND TWP = {1} AND RNG = {2} AND SEC = {3}".format(MER,TWP,RNG,SEC) I should also add this was only implemented in Python 2.6, so ArcGIS 10 and above.
... View more
06-04-2012
05:31 AM
|
0
|
0
|
3501
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2011 10:36 AM | |
| 1 | 08-16-2012 10:48 AM | |
| 1 | 10-31-2012 08:39 AM | |
| 1 | 07-16-2012 01:52 PM | |
| 1 | 03-15-2012 10:57 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2024
11:12 PM
|