ArcGIS平台对OGC WMS服务功能咨询

WMS服务是否可以支持图层顺序调整,客户端符号化和要素过滤筛选。
已邀请:

马克玲

赞同来自:

【解决办法】:
1、是否支持客户端指定符号?

可以支持。说明和操作步骤:

Using external SLDs from the client side
With WMS services, users are not limited to the styles published on the server. Clients can reference an applicable SLD file in the WMS GetMap request so that the WMS service renders the map using their own styles.
Using an external SLD from the client side involves the following steps:

1)Create a single SLD XML document that defines multiple styles for each layer in the WMS service, or you can use a public SLD XML if it''s applicable to your WMS service.
2)Make the SLD XML accessible through a URL that is accessible to the server (if you use a public SLD XML, make sure it''s accessible as a URL).
3)Change the values of the LAYERS and STYLES parameters in the original WMS HTTP GetMap request to indicate which style the WMS server should use to render each layer.
4)Send the SLD XML to the WMS server and request the map by adding one more key-value parameter pair (SLD=<sld_xml_url>) to the end of a WMS HTTP GetMap request string.

2、是否支持要素过滤?

可以支持。说明和样例参考:

GetFeatureInfo
Filter the country layer by only obtaining information for countries that have a population greater than one million and contain a river named Amazon: layerDefs={country:POP_CNTRY>100000000,rivers:NAME LIKE ''Amazon''}.
Sample request:
http://gisserver.domain.com:60 ... D-180,-90,180,83.604158999999996&WIDTH=660&HEIGHT=318&LAYERS=country,rivers&STYLES=default,default&EXCEPTIONS=xml&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE&QUERY_LAYERS=country,rivers&INFO_FORMAT=text/html&I=50&J=50&layerDefs={country:POP_CNTRY>100000000,rivers:NAME LIKE ''Amazon''}

3、是否支持调整图层顺序?
可以支持。通过调整Layers 参数中图层ID 的顺序即可。示例参考:

http://sampleserver1.arcgisonl ... 17598,18.924782,-66.969271,71.406235&width=760&height=360&layers=2,1&styles=default,default&format=image/png

http://sampleserver1.arcgisonl ... 17598,18.924782,-66.969271,71.406235&width=760&height=360&layers=1,2&styles=default,default&format=image/png

要回复问题请先登录注册