Reputation
5,324
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
8 31
Newest
 python
Impact
~256k people reached

23h
comment Can't write decimal data into shape (shp) attribute table with Python
What happens if you set the field width at 24 (normal default for Esri Shapefile OFTReal)
1d
comment Run model in MXD using Python
Transcribed your traceback, but this is difficult without access to the code of arcpy.ElectricWMtoGDB_WindmilAutomation(), especially D:\Milsoft\WindMilMap\WindMilMapExport\WindmillExportAutomation.py. Apparently there is a way to access the add-in's functionality from a stand-alone script, but it is hard to tell (does the add-in require licensing?)
1d
revised Run model in MXD using Python
Transcribed traceback. Left image in case I had any typos.
Feb
2
answered Keep only the last marker when geolocating
Feb
2
comment Keep only the last marker when geolocating
Are you only tracking a single user at a time? (Since you are using location from the browser)
Feb
2
comment Determining the Thalweg line of a river without bathymetry?
The thalweg is going to be closer to the outside of the bend in a meander, but its exact location can vary. The straight line segments are the bigger issue, where the thalweg can meander considerably (which ultimately creates new meanders in the river). Cross-section stations would help considerably if you can get those, otherwise it is not really a solvable problem with just centerline and boundary.
Feb
2
comment Improving processing time of ArcPy script?
Spatial Join is definitely the better approach. Your current approach is running 35,000 selects by layer and creating 35,000 search cursors with potentially 1.2 billion update row operations. That is why it is so slow.
Jan
6
comment Using row.setValue() function with arcgisscripting?
Have you tried it with a file geodatabase as the target? Oh, and what version is your SDE and what database is it running on? I think you can get the 99999 error from a client/version mismatch for your database client software
Jan
6
comment Using row.setValue() function with arcgisscripting?
Are you certain that you can edit the feature class that you are targeting? My 9.3 is very rusty, but I remember it being quite a bit more complicated to edit SDE classes in 9.3.
Dec
28
comment Creating Flooding depth Rasters at every feet
To add to this, you would be much better off using map algebra to generate a separate flood depth raster and then symbolizing that raster the exact same way every time (e.g. have some maximum depth, I used 10 feet, that is the top of the scale and then symbology every depth raster with the same 0 to 10 symbology)
Dec
28
comment Creating Flooding depth Rasters at every feet
You cannot do this automatically without setting up a template for every permutation of maximum elevation. See more at this question: gis.stackexchange.com/questions/82335/…
Dec
17
comment Reformat Attributes In a Feature Class
Thanks. Fixed. It is not complete code yet, so most of it was done interactively and then I fixed variables as I go :)
Dec
17
revised Reformat Attributes In a Feature Class
added 3 characters in body
Dec
16
answered Reformat Attributes In a Feature Class
Dec
16
comment path in imagepath in image
Also, what is in the image? Roads? Hydrology? Weighted landcover? Patch metrics? This might be a cost surface problem and not a network problem if you are not dealing with networks.
Dec
16
revised Using Python Search Cursor results to Select Features by Attributes
More testing done.
Dec
16
revised Using Python Search Cursor results to Select Features by Attributes
added 214 characters in body
Dec
16
answered Using Python Search Cursor results to Select Features by Attributes
Dec
4
comment arcpy select points - chessboard style
You could also do X_rel%2 == Y_rel%2 to start with the top left point selected. (I think your method will start with the second point in from the top left, which could obviously just be inverted too to get the top left point as the start.)
Dec
3
revised ArcPy - layer.Describe not working across MXDs
added 1896 characters in body