本文整理了Java中org.geoserver.wms.GetLegendGraphicRequest.isStrict()
方法的一些代码示例,展示了GetLegendGraphicRequest.isStrict()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GetLegendGraphicRequest.isStrict()
方法的具体详情如下:
包路径:org.geoserver.wms.GetLegendGraphicRequest
类名称:GetLegendGraphicRequest
方法名:isStrict
[英]Returns the value for the legacy STRICT parameter that controls whether LAYER is actually required (if not, STYLE shall be provided)
[中]返回旧严格参数的值,该参数控制是否实际需要图层(如果不需要,则应提供样式)
代码示例来源:origin: org.geoserver/gs-wms
@org.junit.Test
public void testStrictParameter() throws Exception {
GetLegendGraphicRequest request;
// default value
request = requestReader.read(new GetLegendGraphicRequest(), allParameters, allParameters);
assertTrue(request.isStrict());
allParameters.put("STRICT", "false");
allParameters.remove("LAYER");
request = requestReader.read(new GetLegendGraphicRequest(), allParameters, allParameters);
assertFalse(request.isStrict());
}
代码示例来源:origin: org.geoserver/gs-wms
rawKvp.containsKey("STRICT")
? Boolean.valueOf((String) rawKvp.get("STRICT"))
: request.isStrict();
request.setStrict(strict);
if (strict && layer == null) {
代码示例来源:origin: org.geoserver/gs-wms
boolean strict = request.isStrict();
代码示例来源:origin: robward-scisys/sldeditor
boolean strict = request.isStrict();
内容来源于网络,如有侵权,请联系作者删除!