org.geotools.styling.Rule.setElseFilter()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(111)

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

Rule.setElseFilter介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

rule.setFilter(filter);
} else if (childName.equalsIgnoreCase("ElseFilter")) {
  rule.setElseFilter(true);
} else if (childName.equalsIgnoreCase("LegendGraphic")) {
  findElements(((Element) child), graphicSt);

代码示例来源:origin: geotools/geotools

public Rule build() {
  if (unset) {
    return null;
  }
  if (symbolizerBuilder == null && symbolizers.size() == 0) {
    symbolizerBuilder = new PointSymbolizerBuilder();
  }
  if (symbolizerBuilder != null) {
    symbolizers.add(symbolizerBuilder.build());
  }
  Rule rule = sf.createRule();
  rule.setName(name);
  // TODO: rule's description cannot be set
  rule.setTitle(title);
  rule.setAbstract(ruleAbstract);
  rule.setMinScaleDenominator(minScaleDenominator);
  rule.setMaxScaleDenominator(maxScaleDenominator);
  rule.setFilter(filter);
  rule.setElseFilter(elseFilter);
  rule.symbolizers().addAll(symbolizers);
  GraphicLegend gl = legend.build();
  if (gl != null) {
    rule.setLegend(gl);
  }
  if (parent == null) {
    reset();
  }
  return rule;
}

代码示例来源:origin: geotools/geotools

copy.setName(rule.getName());
copy.setFilter(filterCopy);
copy.setElseFilter(rule.isElseFilter());
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setMinScaleDenominator(rule.getMinScaleDenominator());

代码示例来源:origin: geotools/geotools

rules[colors.length].setElseFilter(true);

代码示例来源:origin: geotools/geotools

rule.setElseFilter(r.boolOr("else", false));

代码示例来源:origin: org.geoserver/gs-kml

protected final Rule elseRule(Symbolizer... symbolizer) {
  Rule rule = styleFactory.createRule();
  rule.setElseFilter(true);
  for (Symbolizer s : symbolizer) rule.symbolizers().add(s);
  return rule;
}

代码示例来源:origin: org.geotools/gt-main

rule.setFilter(filter);
} else if (childName.equalsIgnoreCase("ElseFilter")) {
  rule.setElseFilter(true);
} else if (childName.equalsIgnoreCase("LegendGraphic")) {
  findElements(((Element) child), graphicSt);

代码示例来源:origin: org.geotools/gt-main

rules[colors.length].setElseFilter(true);

代码示例来源:origin: robward-scisys/sldeditor

Filter filterCopy = null;
copy.setFilter(filterCopy);
copy.setElseFilter(rule.isElseFilter());

代码示例来源:origin: org.geotools/gt-main

copy.setName(rule.getName());
copy.setFilter(filterCopy);
copy.setElseFilter(rule.isElseFilter());
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setMinScaleDenominator(rule.getMinScaleDenominator());

代码示例来源:origin: stackoverflow.com

otherRule.setElseFilter(true);

代码示例来源:origin: org.geotools/gt-ysld

rule.setElseFilter(r.boolOr("else", false));

相关文章