Nadeem,
When I create a Geometry service what should it contain on the server. There is no options or user defined parameters. All you do is create the service and it is done.
how can i pass the name of my input layer to the buffer parameter object. You do not pass layers to the buffer operation you pass geometries and get back geometries.
how can i pass the name of my out put layer to the buffer parameter object. You do not pass layers to the buffer operation you pass geometries and get back geometries.
Use the Buffer sample to understand better:
http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq0000002q000000.htm
Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
Thanks Robert. Please note that my input features for this buffer operation is in a shape file , so in that case how would i pass this shape file as input. This data in this shape file is for polygon having one entry in the attribute table with following fields.
fid, shape, area in hectre and other fields.
Nadeem
Nadeem,
It is not likely that you will be operating with a shapefile on the client, unless you are working with the shapefile that has all of it's related file in a zip or something... When you are working in Flex API code you are dealing mainly with client side code and server calls. I sounds like you might want to start focusing on a GP service or a published model. As far as using a geometry service and making a buffer request to that service you will not get dealing with shapefiles, you will be dealing with individual geometries.
Nadeem,
Well in the scenario you described you would have a mapclick which produces a MapPoint geometry and that is the geometry that is used in the buffer operation and then when the buffer is done it returns you a polygon geometry of the actual buffer and you can use that in a query task to return the features that intersect that polygon. The sample link I provided earlier will get you started using the drawTool and instead of using a polygon you would just use a point. Then there are several API samples for doing queries.