Aggregate Tool input format - Feature layer

2352
6
11-19-2012 12:23 AM
LakshmananVenkatesan
Occasional Contributor II
I want to consume Aggregate Polygons (Cartography) tool for doing some spatial operations using sliverlight application.

This tool takes input Feature Layer and returns feature class as output. In my sliverlight application I have list of geometries, how do i convert geometries/featureset to feature layer ?. This tool as expects input as a feature layer only.

second, I require output as feature set (sliverlight), how to convert feature class to feature set?

Please help me on this

Where Can I get a source code for this aggregate tool?

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00700000000s000000
0 Kudos
6 Replies
nicogis
MVP Frequent Contributor
see input/ouput for gp using ags http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/00930000002n000000.h...

"... Any model that uses a feature class or feature layer as input can be modified to accept a feature set. Any model that uses a table as input can be modified to accept a record set. Feature set or record set variables can be created as new variables, or existing variables can be changed to feature or record sets..."
http://help.arcgis.com/en/arcgisdesktop/10.0/help/002w/002w0000004s000000.htm

so you can change in model input from feature layer to featureset (see my last link) while in output feature class is supported from client web (it is returned: feature set)
0 Kudos
LakshmananVenkatesan
Occasional Contributor II
Thank you. It helped me. But I cannot change the output parameter (which is of type feature class). When I open the model and edit the type - it is freezed. How to change this specifically?.
0 Kudos
nicogis
MVP Frequent Contributor
you shouldn't must change output. At client it returns a feature set
0 Kudos
LakshmananVenkatesan
Occasional Contributor II
you shouldn't must change output. At client it returns a feature set


I want to pass this output to another model  which takes featureset as input, how to go about?
0 Kudos
nicogis
MVP Frequent Contributor
if I have understand your question: when you have featureset on client (from 1° model) you resend featureset to 2° gp. I think that you want do it because you change 1° featureset ? Right?
0 Kudos
LakshmananVenkatesan
Occasional Contributor II
Let me rewrite my question. My sliverlight application I will sending list of geometries as featureset to Aggregate Tool which aggregates the polygon and result will be passed to another Geoprocessing tool  (second tool) which takes input as feature set. Result from aggregate tool is feature class which am not able to edit  the property to change to feature set . I want output of aggregate tool in form feature so that i can send as input and process. is that clear?
0 Kudos