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

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

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

Rule.hasElseFilter介绍

暂无

代码示例

代码示例来源:origin: org.geoserver.extension/imagemap

if (rule.hasElseFilter()) {
  hasElseFilter = true;
  Rule rule = rules[i];
  if (rule.hasElseFilter()) {
    filtered.add(rule);

代码示例来源:origin: org.geoserver/wms

if (rule.hasElseFilter()) {
  hasElseFilter = true;
  if (rule.hasElseFilter()) {
    filtered.add(rule);

代码示例来源:origin: org.geotools/gt2-render

if (r.hasElseFilter()) {
  elseRuleList.add(r);
} else {

代码示例来源:origin: org.geoserver.extension/imagemap

if (r.getFilter() == null)
  return null; // uh-oh has no filter (want all rows)
if(r.hasElseFilter())
  return null;  // uh-oh has elseRule
filtersToDS.add(r.getFilter());

代码示例来源:origin: org.geotools/gt2-render

if (r.hasElseFilter()) {
  elseRuleList.add(r);
} else {

代码示例来源:origin: org.geoserver/wms

private static List[] getLayerRules(SimpleFeatureType ftype, Style style) {
  List[] result = new List[] { new ArrayList(), new ArrayList() };
  final String typeName = ftype.getTypeName();
  FeatureTypeStyle[] featureStyles = style.getFeatureTypeStyles();
  final int length = featureStyles.length;
  for (int i = 0; i < length; i++) {
    // getting feature styles
    FeatureTypeStyle fts = featureStyles[i];
    // check if this FTS is compatible with this FT.
    if ((typeName != null)
        && FeatureTypes.isDecendedFrom(ftype, null, fts
            .getFeatureTypeName())) {
      // get applicable rules at the current scale
      Rule[] ftsRules = fts.getRules();
      for (int j = 0; j < ftsRules.length; j++) {
        // getting rule
        Rule r = ftsRules[j];
        if (KMLUtils.isWithInScale(r, 1)) {
          if (r.hasElseFilter()) {
            result[ELSE_RULES].add(r);
          } else {
            result[RULES].add(r);
          }
        }
      }
    }
  }
  return result;
}

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

if (r.hasElseFilter()) {
  elseRuleList.add(r);
} else {

代码示例来源:origin: org.geotools/gt2-shapefile-renderer

if (r.hasElseFilter()) {
  elseRuleList.add(r);
} else {

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

copy.setAbstract(rule.getAbstract());
copy.setFilter(filterCopy);
copy.setIsElseFilter(rule.hasElseFilter());
copy.setLegendGraphic(legendGraphicCopy);
copy.setMinScaleDenominator(rule.getMinScaleDenominator());

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

copy.setAbstract(rule.getAbstract());
copy.setFilter(filterCopy);
copy.setIsElseFilter(rule.hasElseFilter());
copy.setLegendGraphic(legendGraphicCopy);
copy.setMinScaleDenominator(rule.getMinScaleDenominator());

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

if (rule.hasElseFilter()) {
  start("ElseFilter");
  end("ElseFilter");

相关文章