Select to view content in your preferred language

Geoprocessing Tool only running Default value

560
1
Jump to solution
11-02-2013 07:53 AM
RachelAlbritton
Frequent Contributor
I've created a gepprocessing tool that runs 2 viewsheds for a given address. I gave a defaut value to an address so that the tool would run and have successfully built a choice list of other addresses. When I run the geoprocessing tool I can choose any address from a list, but the viewshed are only being ran on the default address? My code is below and I've attached a jpeg of the model that shows the portion where the parcel is being selected.

Beta URL: http://152.46.17.82/flexviewer/Surf_City/

<?xml version="1.0" ?> <configuration>     <description/>     <taskurl>http://152.46.17.82/arcgis/rest/services/surf_city/Viewshed_Async/GPServer/Viewshed%20Analysis</taskurl>     <helpurl>http://152.46.17.82/arcgis/rest/directories/arcgisoutput/surf_city/Viewshed_Async_GPServer/surf_city_Viewshed_Async/SCWebApp2.htm</helpurl>     <autosubmit>false</autosubmit>     <inputparams>         <param type="string" name="Parcel Address" required="true" visible="true" label="Parcel Address" defaultvalue="hadd = '1 DIVISION AVE'" tooltip = "Select an address to run a viewshed analysis on">   <choicelist>    <choice value = "1 DIVISION AVE"/>    <choice value = "1 S 3RD ST"/>    <choice value = "1017 N OCEAN AVE"/>   </choicelist>  </param>     </inputparams>     <outputparams>         <param type="featurerecordset" name="vs_2005_int_shp" geometrytype="polygon" mode="drawtool" required="true" visible="true" label="2005 Viewshed">             <popup>                 <fields>                     <field name="FID" label="FID" visible="false"/>                     <field name="FID_buffer" label="FID_buffer" visible="false"/>                     <field name="id" label="Parcel ID" visible="true"/>                     <field name="centroid" label="X Coordinate" visible="true"/>                     <field name="y_centroid" label="Y Coordinate" visible="true"/>                     <field name="hadd" label="Parcel Address" visible="true"/>                     <field name="floors" label="Number of Floors" visible="true"/>                     <field name="spot" label="spot" visible="false"/>                     <field name="azimuth1" label="azimuth1" visible="false"/>                     <field name="azimuth2" label="azimuth2" visible="false"/>                     <field name="radius1" label="radius1" visible="false"/>                     <field name="radius2" label="radius2" visible="false"/>                     <field name="offseta" label="offseta" visible="false"/>                     <field name="BUFF_DIST" label="BUFF_DIST" visible="false"/>                     <field name="FID_vs_200" label="FID_vs_200" visible="false"/>                     <field name="ID_1" label="ID_1" visible="false"/>                     <field name="GRIDCODE" label="GRIDCODE" visible="false"/>                     <field name="Shape_Length" label="Shape_Length" visible="false"/>                     <field name="Shape_Area" label="Shape_Area" visible="false"/>                 </fields>                 <medias/>                 <showattachments>false</showattachments>                 <showrelatedrecords>false</showrelatedrecords>             </popup>             <renderer type="uniquevalue" attribute="GRIDCODE">                 <infos>                     <symbol value="1" type="simplefill" alpha="0.5" color="0xCC0033">                         <outline color="0x999999" width="1"/>                     </symbol>                 </infos>                 <defaultsymbol type="simplefill" alpha="0.5" color="0x000000">                     <outline color="0x000000" width="1"/>                 </defaultsymbol>             </renderer>         </param>         <param type="featurerecordset" name="vs_2010_int_shp" geometrytype="polygon" mode="drawtool" required="true" visible="true" label="2010 Viewshed">             <popup>                 <fields>                     <field name="FID" label="FID" visible="false"/>                     <field name="FID_vs_201" label="FID_vs_201" visible="false"/>                     <field name="ID" label="ID" visible="true"/>                     <field name="GRIDCODE" label="GRIDCODE" visible="false"/>                     <field name="FID_buffer" label="FID_buffer" visible="false"/>                     <field name="id_1" label="id_1" visible="true"/>                     <field name="centroid" label="centroid" visible="true"/>                     <field name="y_centroid" label="y_centroid" visible="true"/>                     <field name="hadd" label="hadd" visible="true"/>                     <field name="floors" label="floors" visible="true"/>                     <field name="spot" label="spot" visible="false"/>                     <field name="azimuth1" label="azimuth1" visible="false"/>                     <field name="azimuth2" label="azimuth2" visible="true"/>                     <field name="radius1" label="radius1" visible="false"/>                     <field name="radius2" label="radius2" visible="false"/>                     <field name="offseta" label="offseta" visible="false"/>                     <field name="BUFF_DIST" label="BUFF_DIST" visible="false"/>                     <field name="Shape_Length" label="Shape_Length" visible="false"/>                     <field name="Shape_Area" label="Shape_Area" visible="false"/>                 </fields>                 <medias/>                 <showattachments>false</showattachments>                 <showrelatedrecords>false</showrelatedrecords>             </popup>             <renderer type="uniquevalue" attribute="GRIDCODE">                 <infos>                     <symbol value="1" type="simplefill" alpha="0.5" color="0x0099FF">                         <outline color="0x999999" width="2"/>                     </symbol>                 </infos>                 <defaultsymbol type="simplefill" alpha="0.1" color="0x000000">                     <outline color="0x000000" width="1"/>                 </defaultsymbol>             </renderer>         </param>         <param type="featurerecordset" name="select_point_shp" geometrytype="point" mode="drawtool" required="true" visible="true" label="Selected Home">             <popup>                 <fields>                     <field name="FID" label="FID" visible="false"/>                     <field name="id" label="id" visible="true"/>                     <field name="centroid" label="centroid" visible="false"/>                     <field name="y_centroid" label="y_centroid" visible="false"/>                     <field name="hadd" label="hadd" visible="true"/>                     <field name="floors" label="floors" visible="false"/>                     <field name="spot" label="spot" visible="false"/>                     <field name="azimuth1" label="azimuth1" visible="false"/>                     <field name="azimuth2" label="azimuth2" visible="false"/>                     <field name="radius1" label="radius1" visible="false"/>                     <field name="radius2" label="radius2" visible="false"/>                     <field name="offseta" label="offseta" visible="false"/>                 </fields>                 <medias/>                 <showattachments>false</showattachments>                 <showrelatedrecords>false</showrelatedrecords>             </popup>             <renderer type="simple">                 <defaultsymbol type="simplemarker" alpha="0.5" color="0xFFFF00" size="15">                     <outline color="0x000000" width="1"/>                 </defaultsymbol>             </renderer>         </param>     </outputparams>     <layerorder>select_point_shp,vs_2010_int_shp,vs_2005_int_shp</layerorder> </configuration>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RachelAlbritton
Frequent Contributor
I think I've figured this out. I needed to write a script tool that took a multi-value string when selecting the address.

View solution in original post

0 Kudos
1 Reply
RachelAlbritton
Frequent Contributor
I think I've figured this out. I needed to write a script tool that took a multi-value string when selecting the address.
0 Kudos