2

I have an interesting problem on my hands... I have a generic python script that does a bunch of geoprocessing functions using the standard arcgisscripting module (Yes, I am still at 9.3.1). At one point in this script, I call out to an external exe. This external exe does some heavy duty raster processing using gdal17.dll. After the .exe does its thing, my script continues on doing additional processing using the results from the .exe - still using arcgisscripting functions.

The tool runs beautifully in a desktop environment. However, as soon as I publish it as an ArcGIS Server Geoprocessing Service - it exits abruptly in the first calling of arcgisscripting function AFTER the gdal-based exe is called. I can't log or trap an error - it just plain 'ol quits.

I am very aware that mixing gdal in the arcgis geoprocessing environment is looking for trouble. However, porting the logic from the exe is just not an option at this point - if it is even possible. The fact the script works fine in the desktop environment gives me a glimmer of hope that it may work in a gp service.

Any suggestions greatly appreciated.

3
  • If you rightclick on Start>Arcmap and choose "RunAs" and then choose the ArcSOCuser account, are you able to run the tool successfully? Commented Oct 27, 2011 at 15:26
  • Yes, ran fine under user ArcGISSOC
    – user890
    Commented Oct 27, 2011 at 16:04
  • Can you give us a little more on your setup? Are you running a single machine install of AGS? Are using a local account or domain account? Are you reading/writing locally or to a network?
    – Jamie
    Commented Oct 28, 2011 at 3:10

1 Answer 1

0

I was able to figure out my issue. Before I decided on calling out to the exe I described in my original post, I was experimenting with python.net. There were some remnants of that experimentation - mainly the import clr and a few other .net dll's which were no longer necessary with the exe. After removing those lines from my script, it works fine as both a desktop tool and geoprocessing service.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.