geoserver配置SQL图层 cql_filter模糊查询

1.新建图层,选择对应的 数据源

2创建SQL源图层

3、写好SQL,刷新,需要注意设置主键为标识符,设置空间数据为Geometory 4326

4、数据过滤访问地址,支持cql_filter 模糊查询

http://hhzc.hubeiwater.gov.cn/geoserver//ows?service=WFS&version=1.0.0&request=GetFeature&maxFeatures=500000&outputFormat=application%2Fjson&typeName=zbk:wr_int_b_addv_b&cql_filter=INT_EMP_NM%20like%20%27%25%E6%9D%A8%E6%B9%BE%E4%B8%80%E5%8F%B7%25%27

 

 

You may also like...