1,704 reputation
1237
bio website au.linkedin.com/pub/…
location Atherton, Australia
age 38
visits member for 3 years, 2 months
seen Jul 1 at 1:23

I am a conservation biologist (with 15 years international experience) who is now working in the Spatial industry. One of my projects was awarded the GITA Australia and New Zealand Spatial Excellence award for 2013 and Highly Commended at QSEA. I have presented at several GIS and Disaster Management conferences in Australia since I moved in 2010.

I am focused on automating large processes using python along with ESRI/Mapinfo and open source GIS tools that complement the strengths of each other. I also work in Disaster Management and risk mitigation.


Sep
22
comment Efficiency of python script using SAGA and arcpy
Sorry about the confusion. I was initially trying to do 2 steps in SAGA and 2 in arcpy and the process worked for small tiles <200mx200m but failed with a "Access Violation error" on the 1kmx1km grids we have. I tried to see if we could work "in memory" not specifically in "in_memory", which I didn't know about. Now in the SAGA cmd line (via python) I import las to spc, reclassify to one type (for example ground=2) and then save as shp -then in arcpy create TIN's etc. The issue is that using the command line is slow (approx 2 hours per tile instead of 5 mins when processed in the SAGA GUI).
Sep
22
comment Efficiency of python script using SAGA and arcpy
It's probably something simple I am doing wrong here. I still get the same error and can't figure out how to get a speciefic error message so that I can fix it...I tried by adding {{print os.error.filename, os.error.args, os.error.errno, }} to the module execution code >>> SAGA Application Programming Interface - Version: 2.0.7 Module Loaded <member 'errno' of 'exceptions.EnvironmentError' objects> <attribute 'message' of 'exceptions.BaseException' objects> <member 'strerror' of 'exceptions.EnvironmentError' objects> module execution failed >>>
Sep
22
comment Setting “REAL” work/scratch workspace in ESRI/ERDAS etc
Great. Have you tried to process a file that has an uncompressed size larger than your c: drive? to check monitor your c:\users\...\AppData\Local\Temp directory while running a process. If this grows then the issue persists...
Sep
22
comment Efficiency of python script using SAGA and arcpy
I do know what sys arg's are but wasn't clear on how they are used in the script you provided. Even with the values put in it still gives the same error. That's why I was inquiring about where to input the names of the files to process. So can we trace why the program gives the error I posted?
Sep
22
revised Setting “REAL” work/scratch workspace in ESRI/ERDAS etc
added 91 characters in body
Sep
22
asked Setting “REAL” work/scratch workspace in ESRI/ERDAS etc
Sep
22
revised Efficiency of python script using SAGA and arcpy
see Update 2 for new info.
Sep
22
revised Efficiency of python script using SAGA and arcpy
added 2950 characters in body
Sep
22
comment Efficiency of python script using SAGA and arcpy
I'm still having issues. Mostly as I don't understand - 1) What do all the sys.arg[1-4] values mean? Is this designed to run as an arcgis tool? 2)I/O where do we feed it the input LAS file and the output etc?
Sep
20
revised Efficiency of python script using SAGA and arcpy
updated code
Sep
20
revised Efficiency of python script using SAGA and arcpy
updated code
Sep
20
comment Efficiency of python script using SAGA and arcpy
thanks. I just wasn't sure how much the autogenerated python needed editing. Anyway I re-wrote it and am getting an error on the SAGA execution. Is there a way to see what exactly the error is? Code and result updated above.
Sep
20
revised Efficiency of python script using SAGA and arcpy
updated questions and code based on answers from forum and further research
Sep
20
revised Efficiency of python script using SAGA and arcpy
added 4573 characters in body
Sep
20
comment Efficiency of python script using SAGA and arcpy
@johanvdw -thanks for your input. I have tried to implement the process using the notes in the wiki but some steps aren't clear. The original question has been updated with this info.
Sep
16
comment Efficiency of python script using SAGA and arcpy
I tried it and it can't save it to this space from the bat. [[C:\SAGA\saga_cmd io_shapes_las "Import LAS Files" -POINTS=in_memory\\%1.spc -FILE=%3\%1_1K_class.las -T -i -a -r -c -u -n -R -G -B -e -d -p -C -VALID -RGB_RANGE=0 PAUSE c:\SAGA\saga_cmd pointcloud_tools "Point Cloud to Shapes" -POINTS=in_memory\\%1.spc -SHAPES=%2\%1_fc.shp ]]
Sep
16
comment Efficiency of python script using SAGA and arcpy
-isn't this only for arcgis? I am calling a SAGA command in 'bat' file from an arcgis python script.
Sep
15
revised Efficiency of python script using SAGA and arcpy
added 218 characters in body
Sep
15
revised Efficiency of python script using SAGA and arcpy
included main code into question
Sep
15
comment Efficiency of python script using SAGA and arcpy
I can't figure out how to use the in_memory workspace to call the in memory spc file into the SAGA point cloud to shape utility. The code text is at sourceforge.net/projects/saga-gis/forums/forum/790705/topic/… and I've updated the question.