Hi there,I am trying to replicate the Clip and Ship Geoprocessing sample using my own data and I am having trouble getting the data to export. I am using ArcGIS Server 10.I am getting a zip file exported and downloaded but the shapefile is empty although the .DBF does have the column names.My data is held in Oracle in British National Grid (SRID 27700) and the map uses web mercator (102100). I am setting the geoprocessing output spatial refernce but this does not seem to affect anything.gp = new esri.tasks.Geoprocessor("http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGLTools/GPServer/Extract%20Data%20Task");
gp.setOutSpatialReference({wkid:27700});
This is what I am doing to get the AOI for the Extract Data Geoprocessing Task:function showTResults(results){
dojo.forEach(results, function(result) {
var graphic = result.feature;
var fMarkerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 1), new dojo.Color([0, 255, 0, 0.25]));
var fLineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 3);
var fPolygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NONE, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
switch (graphic.geometry.type) {
case "point":
graphic.setSymbol(fMarkerSymbol);
break;
case "polyline":
graphic.setSymbol(fLineSymbol);
break;
case "polygon":
graphic.setSymbol(fPolygonSymbol);
break;
}
map.graphics.add(graphic);
});
ext = esri.graphicsExtent(graphic);
};
Then passing it in like this:var dlFormat = 'Shapefile - SHP - .shp';
var params2 = {
"Layers_to_Clip": clipLayers,
"Area_of_Interest": ext,
"Feature_Format": dlFormat
}
esri.show(loading);
gp.submitJob(params2, completeCallback, statusCallback, function(error){
alert(error);
esri.hide(loading)
});
Does anyone have any idea what I need to do to fix this?