arcgis js 3.16调用GP服务,传输点位太多时报错!!

代码如下,功能是调用克里金插值的GP服务。如果传20000个点位之内的数据时不会出错,超过25000个以上时全报错。
我已经检查过数据没有问题,而且将28000个点位对象拆分成2份,分别单独执行都没有问题,所以排除是数据的问题。
然后根据浏览器控制台提示的错误,发现是jquery的错,但是也有arcgis的错,控制台输出的日志没法提示具体哪行报错,
所以不太清楚是什么原因。
 
findTask.execute(findParams, function(queryResult){

var clipFeatures = ;
for (var i = 0; i < queryResult.length; i++) {
var graphic = queryResult[i].feature;
clipFeatures.push(graphic);
}

var gp = new esri.tasks.Geoprocessor(gpServiceUrl1);
var clipFeatureSet = new esri.tasks.FeatureSet();
clipFeatureSet.features = clipFeatures;

var inputFeaturesSet = new esri.tasks.FeatureSet();
inputFeaturesSet.features = inputFeatures;//25000个左右就报错

var params = {
要素图层: clipFeatureSet,
输入点或折线要素: inputFeaturesSet,
Population_字段: "NONE",
输出像元大小:precision
};

gp.submitJob(params,
function(result) {
var jobId = result.jobId;
var status = result.jobStatus;
})
);
});[/i]
报错日志:
[i]VM793:182 SyntaxError: Unexpected token <
at Object.b.fromJson (eval at globalEval (jquery.js:343), <anonymous>:220:426)
at Object.json (eval at globalEval (jquery.js:343), <anonymous>:177:392)
at s (eval at globalEval (jquery.js:343), <anonymous>:182:81)
at c (eval at globalEval (jquery.js:343), <anonymous>:66:221)
at d (eval at globalEval (jquery.js:343), <anonymous>:66:10)
at b.Deferred.resolve.callback (eval at globalEval (jquery.js:343), <anonymous>:67:350)
at eval (eval at globalEval (jquery.js:343), <anonymous>:185:300)
at k (eval at globalEval (jquery.js:343), <anonymous>:189:431)
at q (eval at globalEval (jquery.js:343), <anonymous>:189:357)
at f.resolve (eval at globalEval (jquery.js:343), <anonymous>:191:441)
y @ VM793:182
VM793:199 TypeError: html.replace is not a function
at Function.htmlPrefilter (jquery.js:5325)
at buildFragment (jquery.js:4339)
at domManip (jquery.js:5238)
at jQuery.fn.init.append (jquery.js:5431)
at jQuery.fn.init.<anonymous> (jquery.js:5525)
at access (jquery.js:3614)
at jQuery.fn.init.html (jquery.js:5492)
at eval (eval at globalEval (jquery.js:343), <anonymous>:441:46)
at Object._errorHandler (eval at globalEval (jquery.js:343), <anonymous>:1454:406)
at eval (eval at globalEval (jquery.js:343), <anonymous>:167:296) "TypeError: html.replace is not a function
at Function.htmlPrefilter (http://10.45.41.39:8080/trfx/a ... 325:15)
at buildFragment (http://10.45.41.39:8080/trfx/a ... 339:40)
at domManip (http://10.45.41.39:8080/trfx/a ... 238:14)
at jQuery.fn.init.append (http://10.45.41.39:8080/trfx/a ... 431:10)
at jQuery.fn.init.<anonymous> (http://10.45.41.39:8080/trfx/a ... 525:18)
at access (http://10.45.41.39:8080/trfx/a ... 3614:8)
at jQuery.fn.init.html (http://10.45.41.39:8080/trfx/a ... 492:10)
at eval (eval at globalEval (http://10.45.41.39:8080/trfx/a ... :343:5), <anonymous>:441:46)
at Object._errorHandler (eval at globalEval (http://10.45.41.39:8080/trfx/a ... :343:5), <anonymous>:1454:406)
at eval (eval at globalEval (http://10.45.41.39:8080/trfx/a ... :343:5), <anonymous>:167:296)"
m @ VM793:199[/i]
已邀请:

java2596098860 - 改不完的BUG

赞同来自:

没人知道吗?

goldenlimit - Major in MIS and minor in GIS, graduated from University of Alabama. GIS is not a simply tool but a way of exploring the unknow

赞同来自:

@java2596098860: 你有没有试试call submitJob的时候 外加一个callback 看看返回的有没有什么具体信息?像这样:
gp.submitJob(params, completeCallback, statusCallback);

https://developers.arcgis.com/javascript/3/jshelp/intro_gp_running.html 

Candy_hzh

赞同来自:

请问最后是怎么解决的?我也遇到了这个问题

要回复问题请先登录注册