org.geoserver.wms.GetLegendGraphicRequest.isStrict()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.geoserver.wms.GetLegendGraphicRequest.isStrict()方法的一些代码示例,展示了GetLegendGraphicRequest.isStrict()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GetLegendGraphicRequest.isStrict()方法的具体详情如下:
包路径:org.geoserver.wms.GetLegendGraphicRequest
类名称:GetLegendGraphicRequest
方法名:isStrict

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();

相关文章