arcgis api for js添加gp服务结果图层

我前端用api调用gp服务,执行完之后,生成了结果影像数据,但是在添加到地图上时,报400错误,Bad Request,影像无法加载到地图中,下面贴代码及错误请求url。
var gp = new Geoprocessor("http://192.168.58.95:6080/arcg ... 6quot;);
gp.processSpatialReference = this.map.spatialReference;
//gp.outSpatialReference = this.map.spatialReference;
gp.setOutSpatialReference(this.map.spatialReference);
var params = {FeatureSet: featureSet};
gp.submitJob(params, lang.hitch(this, function (e) {
console.log("succeed", e);
var jobId = e.jobId;
var imageParams = new ImageParameters();
imageParams.format = "PNG";
imageParams.imageSpatialReference = this.map.spatialReference;
imageParams.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW;

gp.getResultImageLayer(jobId, "", null, lang.hitch(this, function(gpLayer) {
gpLayer.spatialReference = this.map.spatialReference;
this.map.addLayer(gpLayer);
}))
}), function (gpmessage) {
console.log("working", gpmessage);
}, function (err) {
console.log("failed", err);
})
错误请求url是http://192.168.58.95:6080/arcgis/rest/services/heatmap/GPServer/Model_Denstity/jobs/ja56b606f537e4463a277a61aa9497b2a/results/?dpi=96&transparent=true&format=png8&f=image&bbox=%7B%22xmin%22%3A482334.4088152147%2C%22ymin%22%3A3088857.5017494606%2C%22xmax%22%3A534541.004462281%2C%22ymax%22%3A3108998.699338043%2C%22spatialReference%22%3A%7B%22wkt%22%3A%22PROJCS%5B%5C%22wenzhou2000%5C%22%2CGEOGCS%5B%5C%22GCS_China_Geodetic_Coordinate_System_2000%5C%22%2CDATUM%5B%5C%22D_China_2000%5C%22%2CSPHEROID%5B%5C%22CGCS2000%5C%22%2C6378137.0%2C298.257222101%5D%5D%2CPRIMEM%5B%5C%22Greenwich%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Degree%5C%22%2C0.0174532925199433%5D%5D%2CPROJECTION%5B%5C%22Gauss_Kruger%5C%22%5D%2CPARAMETER%5B%5C%22False_Easting%5C%22%2C500000.0%5D%2CPARAMETER%5B%5C%22False_Northing%5C%22%2C0.0%5D%2CPARAMETER%5B%5C%22Central_Meridian%5C%22%2C120.666666666667%5D%2CPARAMETER%5B%5C%22Scale_Factor%5C%22%2C1.0%5D%2CPARAMETER%5B%5C%22Latitude_Of_Origin%5C%22%2C0.0%5D%2CUNIT%5B%5C%22Meter%5C%22%2C1.0%5D%5D%22%7D%7D&size=1366%2C527 
url在浏览器中输入,报的也是400错误,见图
url.jpg


生成的影像在arcmap中能加载
已邀请:

周家富

赞同来自:

我也遇到了相同的问题,请问下您解决了嘛?

要回复问题请先登录注册