Hi,Here's the code. But I did not see any way to specify the geometry type. The method just passes along a geometry to the parameter object such as it receives it, and I would like to keep it that way.
public IEnumerable<IdentifyResult>IdentifyComponents(string url,Geometry geometry){
var task = new IdentifyTask(url);
var parameters = new IdentifyParameters
{
LayerOption = LayerOption.all,
Tolerance = 0,
MaxAllowableOffset = 0,
DPI = 96,
Width = 600,
Height = 500,
MapExtent = geom.Extent,
SpatialReference = geom.SpatialReference,
Geometry = geometry,
ReturnGeometry = true,
};
var results = task.Execute(parameters);
}
I also join an image of the situation on the map. The geometry passed to the function is that of the red boomerang, but the returned geometries correspond to those visible in the lower part of the red rectangle (which is the bounding box of the boomerang)[ATTACH=CONFIG]22960[/ATTACH]Thanks for your time!