Select to view content in your preferred language

Help with the geoprocessing widget.

5215
12
08-10-2011 10:26 AM
SeanCook
Emerging Contributor
Hello all,

I am trying to get the geoprocessing widget working with a simple buffer tool created based on this:

http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/GP_service_st...

However, when I try to run the tool I receive a error:

Possible issues:

1. The tool says the output is a point on the services directory:


Parameter: Output_Polygons

    Data Type: GPFeatureRecordSetLayer
    Display Name: Output Polygons
    Direction: esriGPParameterDirectionOutput
    Default Value:
        Geometry Type: esriGeometryPoint
        Spatial Reference: 4326
       


2. I cannot figure how to run the tool in Arc Desktop from the server. The tool box does not expand. The help file linked to above indicates that it should.

Here is my geprocessing widget code, for a buffer tool. Does it look correct? Any glaring errors?

<?xml version="1.0"?>
<configuration label="Buffer Tool">
    <taskurl>http://nsesribap01vm/ArcGIS/rest/services/BufferService/GPServer/Buffer%20Points</taskurl>
    <inputparams>
        <param name="PointEntry"
               geometrytype="point"
               label="Start location"
               required="true"
               type="featurerecordset"
               visible="true">
            <renderer type="simple">
                <defaultsymbol color="0xBEEFEE"
                               size="15"
                               type="simplemarker">
                    <outline width="2" color="0x00AADD"/>
                </defaultsymbol>
            </renderer>
        </param>
        <param name="Distance"
               defaultvalue="3:Miles"
               label="Buffer Distance"
               required="true"
               type="string"
               visible="false"/>
    </inputparams>
    <outputparams>
        <param name="BufferOuput"
               geometrytype="polygon"
               label="Output Buffer"
               required="true"
               type="featurerecordset"
               visible="true">
            <renderer attribute="Site" type="uniquevalue">
                <defaultsymbol alpha="0.5"
                               color="0xFF00FF"
                               type="simplefill">
                    <outline color="0x000000"/>
                </defaultsymbol>
                <infos>
                    <symbol color="0xFF0000"
                            type="simplefill"
                            value=" ">
                        <outline color="0x000000"/>
                    </symbol>

                </infos>
            </renderer>
        </param>
    </outputparams>
    <layerorder>PointEntry, BufferOutput</layerorder>
</configuration>
Tags (2)
0 Kudos
12 Replies
SeanCook
Emerging Contributor
No luck....are there any requirements for what I feed into Make Feature Layer? Should any .shp or .lyr on the servers drive be fine? Does the layer have to be uploaded to the server in someway? If so, how would it be entered into the tool?
0 Kudos
SeanCook
Emerging Contributor
Nevermind, I got it.....THANK YOU.
0 Kudos
ArokiyaJoseph
Deactivated User
Ok, got the buffer tool running...thanks for the help!

Another question that is driving me crazy: How do I use a layer in a model on the server?! I can create a functional model....in this case one which does a buffer, selects points from a layer, then does summary statistics on those points.

However, I cannot upload this model and have it work. At best I can get it to return an empty record set. I can move the tool to the table of contents and reference a layer in the map, but then my publish fails.

The data extract widget is a good example of one which references multiple layers, but I don't know how it's done and as far as I can tell it is explained nowhere. Any help is very much appreciated!

Thank in advance,

Sean


Here's a Geoprocessing Help doc that takes you step by step to publish a Extract Data geoprocessing service

If you are new to Geoprocessing Services, some of the help docs listed below might help you get started.

GP Service Step By Step: Buffer Points
Key Concepts for Geoprocessing Services
Publishing Geoprocessing Services
0 Kudos