What a stupid error 😛I was too tired. Ty 😉 any way...I'm trying to run a geoprocessor but I can't make it works.After setting the parameters and submitting the job I don't get any message back.No didSubmitJobWithId or jobDidFail or jobDidSucceed.How can I find the problem? is there a way to get the error message?Here there is my code:
AGSGraphic *punto = [[AGSGraphic alloc] initWithGeometry:[[AGSPoint alloc] initWithX:1024282 y:5694813 spatialReference:sr]
symbol:nil
attributes:[NSDictionary dictionaryWithObjectsAndKeys:
@"1", @"ID",
nil]
infoTemplate:nil];
NSMutableArray *features = [[NSMutableArray alloc] init];
[features addObject:punto];
AGSFeatureSet *fset = [[AGSFeatureSet alloc] initWithDisplayFieldName:@"ID"
features:features
fieldAliases:nil
spatialReference:sr
geometryType:AGSGeometryPoint];
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
@"1200", @"Drive_Time_Value",
@"Length", @"Impedance_attribute",
fset,@"Input_Facilities",
@"TRAVEL_FROM",@"Travel_from_or_to_facility",
@"NO_MERGE",@"Merge_polygons_with_similar_ranges",
@"RINGS",@"Polygon_nest_option",
@"ALLOW_UTURNS",@"U-turn_policy",
@"Oneway",@"Restrictions",
nil];
// submit the job
[agp submitJobWithParameters:params];
// cleanup alloc'd objects
[sr release];
[agp release];
thanks 🙂Marco