10,189 reputation
11544
bio website code.google.com/p/…
location -35.302286, 149.134843
age
visits member for 3 years, 11 months
seen 2 mins ago

GIS jack of all trades, master of none...


1h
comment Can multiprocessing with arcpy be run in a script tool?
@Hornbydd, I've edited the example code and added a bit to the 2nd code block which works fine for me when run as a script tool in a tbx toolbox. Note: I'm running 10.2.2 so perhaps there is an issue in 10.3?
1h
revised Can multiprocessing with arcpy be run in a script tool?
added 523 characters in body
13h
revised Replicating result of gdalwarp using gdal Python bindings
Fix syntax error
13h
revised Copy protection via license file for ModelBuilder models?
deleted 1 character in body
18h
revised Can multiprocessing with arcpy be run in a script tool?
added 240 characters in body
20h
answered Can multiprocessing with arcpy be run in a script tool?
1d
revised Copy protection via license file for ModelBuilder models?
deleted 11 characters in body
1d
revised Copy protection via license file for ModelBuilder models?
added 38 characters in body
1d
answered Copy protection via license file for ModelBuilder models?
1d
reviewed No Action Needed Calculating distance from PointGeometry object to polyline in arcpy
1d
reviewed Looks OK How to get the Shape.STLength() value from JSON
2d
revised Spatial Interpolation/Resampling of Point Surface Data - Axes @ Different Resolutions
Untag graticules
2d
answered Iterating through a point layer to create & sum distance rasters
Mar
27
revised dxf-Export is not readable in BricsCad
added 354 characters in body
Mar
27
revised Create Several Feature Layers and add them to a MXD
added 16 characters in body
Mar
27
comment Exporting list of tables contained in *.mdb with ArcPy gives Indentation Error?
Make sure you are not mixing tabs and spaces.
Mar
27
comment Can multiprocessing with arcpy be run in a script tool?
Forgot to mention... Make sure all code is either in a function/class or inside a if__name__=="__main__": block as top level code will be executed each time the module imports itself.
Mar
27
comment Can multiprocessing with arcpy be run in a script tool?
@Hornbydd yes. I have a couple of script tools in a python toolbox that use multiprocessing to do spatial analyst raster calculations in ArcGIS 10.2.2. I'll post some code in an answer when I'm back at work on Monday if no one beats me to it.
Mar
27
comment Can multiprocessing with arcpy be run in a script tool?
You can use multiprocessing. Just make sure each process has it's own separate scratch and work space and you use multiprocessing.set_executable to set python.exe (or pythonw.exe) as the executable instead of ArcMap.
Mar
27
comment Using ArcPy to Read from Excel Spreadsheet to Python Dictionary
Why are you trying to avoid xlrd? It's installed already and is actually what the Excel to Table GP tool uses internally. So if all you need to do is read it there's no point in all the overhead of using ArcPy to read it in, write it out to a table and then reading it in again with a search cursor.