本文介绍了请求了1个要素类型,但找到了2个视图参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i我试图放大那些有情节数字的地块,比如
1
102,103
101& 10
A / 1
2-(A)
和ect.its所有组合号码的工作鳍除101,102& 103组合其trowing错误:
Hi,
i am trying to zoom the plots which having plot numbers like
1
102,103
101&10
A/1
2-(A)
and ect.its working fin for all combination numbers except 101,102&103 combination its trowing error:
1 feature types requested, but found 2 view params specified
geoserver中的视图:
views in geoserver:
select * from plotboundary where nmindar='%nmindar%' and plno='%plno%'
参数:
parametrs:
Name |Default Values|Validation regular expression
nmindar|Hanagawadi I A|^[\w\d\s]+$
plno | 1 | ^[ A-Za-z0-9_ *@.#&+-,()-_\/{,&}]*$
使用ajax传递值:
passing values using ajax:
var nmindar = $("#ddlIndustrialarea").val();
var plno = $('#ddlPlot').val();
$.ajax({
url: 'http://192.168.XX:8089/geoserver/XX/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=XX:vwplot&maxFeatures=5000&outputFormat=text/javascript',
contentType: 'application/json',
dataType: 'jsonp',
jsonpCallback: "parseResponse",
data: {
viewparams: "nmindar:" + nmindar + ";plno:" + plno
},
我的尝试:
i试图改变正则表达式但得到同样的错误
What I have tried:
i have tried to change regex but getting same error
解决方案
使用ajax传递值:
passing values using ajax:
var nmindar =
这篇关于请求了1个要素类型,但找到了2个视图参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!