Select to view content in your preferred language

Trying to Get the GeoProcessing Widget to Work

1530
5
Jump to solution
05-21-2013 11:07 AM
by Anonymous User
Not applicable
Original User: geohaskett

[ATTACH=CONFIG]24551[/ATTACH][ATTACH=CONFIG]24552[/ATTACH][ATTACH=CONFIG]24553[/ATTACH][ATTACH=CONFIG]24554[/ATTACH]Hello,

I am trying to run a Python script tool via the Geoprocessing widget in the Viewer for Flex 3.2 software.

On my first attempt last week everything seemed to run well, however instead of overlaying the results of the GP tool onto the screen, the widget provided me a link to download the results instead.  While this was nice, its not what I am trying to do.

I am using Python stand alone code to process 4 tif files via the Weighted Suitability Overlay tool.  The intial output file data type is a raster file.

Can the GP widget overlay a resulting raster file or do I need to convert it to a polygon?

Everything seems to work fine on my desktop, however its not playing happy in the widget.  The error I am currently getting is the "400" fault code "Unable to complete operation".

Also, I seem to always get promoted to log in when I click on my GP widget.  Why is this happening, can I turn it off or do I need to supply the end users with a generic code?

I have plenty of screenshots and code to submit if needed.  Was hoping someone might have a simple answer.

Thanks,

Haskett
0 Kudos
1 Solution

Accepted Solutions
JohnLucotch
Regular Contributor
Hey George,

You are doing nothing wrong.  The raster output will provide you with a link.  The best work around is to convert your raster to a feature class.

View solution in original post

0 Kudos
5 Replies
by Anonymous User
Not applicable
Original User: geohaskett

UPDATE:

Okay, so I now have the download link back in my results tab.

However I want the layer to be added to my web map.

Am I doing something wrong?  Does the raster need to be converted, etc?

Or is it the Synchronous vs Asynchronous (sp?) option?

Any help on this would be great.

Thanks,

Haskett
0 Kudos
JohnLucotch
Regular Contributor
Hey George,

You are doing nothing wrong.  The raster output will provide you with a link.  The best work around is to convert your raster to a feature class.
0 Kudos
by Anonymous User
Not applicable
Original User: geohaskett

Okay, so if I convert my raster into a feature class within the python script and then run it through the geoprocessing widget, the results should automatically be added to the screen?

Thanks,

Haskett
0 Kudos
JohnLucotch
Regular Contributor
Yep it will be added to the web map from the geoprocessing widget.
0 Kudos
by Anonymous User
Not applicable
Original User: geohaskett

Awesome,

Thanks John.

I had to fight with it a bit more to realize I need to change my settings from 1000 to 5000 on the returned features, but it is now finally working.

Thanks again for pointing me in the right direction.

Haskett
0 Kudos