本文整理了Java中org.geotools.styling.Rule.setMaxScaleDenominator
方法的一些代码示例,展示了Rule.setMaxScaleDenominator
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rule.setMaxScaleDenominator
方法的具体详情如下:
包路径:org.geotools.styling.Rule
类名称:Rule
方法名:setMaxScaleDenominator
[英]The largest value for scale denominator at which symbolizers contained by this rule should be applied.
[中]应应用此规则包含的符号的比例分母的最大值。
代码示例来源:origin: geotools/geotools
public void applyTo(Rule r) {
r.setMaxScaleDenominator(maxDenom);
r.setMinScaleDenominator(minDenom);
}
代码示例来源:origin: geotools/geotools
/**
* create a simple styling rule, see the SLD Spec for more details of scaleDenominators
*
* @param symbolizers - an array of symbolizers to use
* @param minScaleDenominator - the minimim scale to draw the feature at
* @param maxScaleDenominator - the maximum scale to draw the feature at
* @return the new rule
*/
public Rule createRule(
Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator) {
Rule r = sf.createRule();
r.setSymbolizers(symbolizers);
if (!Double.isNaN(maxScaleDenominator)) {
r.setMaxScaleDenominator(maxScaleDenominator);
} else {
r.setMaxScaleDenominator(Double.POSITIVE_INFINITY);
}
if (!Double.isNaN(minScaleDenominator)) {
r.setMinScaleDenominator(minScaleDenominator);
} else {
r.setMinScaleDenominator(0.0);
}
return r;
}
代码示例来源:origin: geotools/geotools
rule.setMinScaleDenominator(Double.parseDouble(getFirstChildValue(child)));
} else if (childName.equalsIgnoreCase("MaxScaleDenominator")) {
rule.setMaxScaleDenominator(Double.parseDouble(getFirstChildValue(child)));
} else if (childName.equalsIgnoreCase("Filter")) {
Filter filter = parseFilter(child);
代码示例来源: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.setFilter(filterCopy);
copy.setElseFilter(rule.isElseFilter());
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setMinScaleDenominator(rule.getMinScaleDenominator());
代码示例来源:origin: geotools/geotools
rule.setMaxScaleDenominator(
((Double) node.getChildValue("MaxScaleDenominator")).doubleValue());
代码示例来源:origin: org.geotools/gt-widgets-swing-pending
private void gui_scaleStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_gui_scaleStateChanged
if(rule != null){
rule.setMaxScaleDenominator(model.getNumber().doubleValue());
}
}//GEN-LAST:event_gui_scaleStateChanged
代码示例来源:origin: org.geotools/gt-ysld
public void applyTo(Rule r) {
r.setMaxScaleDenominator(maxDenom);
r.setMinScaleDenominator(minDenom);
}
代码示例来源:origin: org.geotools/gt2-main
/**
* create a simple styling rule, see the SLD Spec for more details of scaleDenominators
*
* @param symbolizers - an array of symbolizers to use
* @param minScaleDenominator - the minimim scale to draw the feature at
* @param maxScaleDenominator - the maximum scale to draw the feature at
*
* @return the new rule
*/
public Rule createRule(
Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator) {
Rule r = sf.createRule();
r.setSymbolizers(symbolizers);
if (!Double.isNaN(maxScaleDenominator)) {
r.setMaxScaleDenominator(maxScaleDenominator);
} else {
r.setMaxScaleDenominator(Double.MAX_VALUE);
}
if (!Double.isNaN(minScaleDenominator)) {
r.setMinScaleDenominator(minScaleDenominator);
} else {
r.setMinScaleDenominator(0.0);
}
return r;
}
代码示例来源:origin: org.geotools/gt-main
/**
* create a simple styling rule, see the SLD Spec for more details of scaleDenominators
*
* @param symbolizers - an array of symbolizers to use
* @param minScaleDenominator - the minimim scale to draw the feature at
* @param maxScaleDenominator - the maximum scale to draw the feature at
*
* @return the new rule
*/
public Rule createRule(
Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator) {
Rule r = sf.createRule();
r.setSymbolizers(symbolizers);
if (!Double.isNaN(maxScaleDenominator)) {
r.setMaxScaleDenominator(maxScaleDenominator);
} else {
r.setMaxScaleDenominator(Double.POSITIVE_INFINITY);
}
if (!Double.isNaN(minScaleDenominator)) {
r.setMinScaleDenominator(minScaleDenominator);
} else {
r.setMinScaleDenominator(0.0);
}
return r;
}
代码示例来源:origin: org.geotools/gt2-main
rule.setMaxScaleDenominator(Double.parseDouble(child
.getFirstChild().getNodeValue()));
代码示例来源:origin: org.geotools/gt-mbstyle
rule.setMaxScaleDenominator(maxScaleDenominator);
代码示例来源:origin: org.geotools/gt-main
.parseDouble(getFirstChildValue(child)));
} else if (childName.equalsIgnoreCase("MaxScaleDenominator")) {
rule.setMaxScaleDenominator(Double
.parseDouble(getFirstChildValue(child)));
} else if (childName.equalsIgnoreCase("Filter")) {
代码示例来源:origin: robward-scisys/sldeditor
rule.setMaxScaleDenominator(maxScale);
maximumScaleUpdated = false;
if (currentFule != null) {
currentFule.setMinScaleDenominator(minScale);
currentFule.setMaxScaleDenominator(maxScale);
refreshUI = true;
代码示例来源:origin: org.geoserver/gs-kml
style.featureTypeStyles().get(0).rules().get(0).setMaxScaleDenominator(1000);
代码示例来源:origin: org.geotools/gt-main
copy.setFilter(filterCopy);
copy.setElseFilter(rule.isElseFilter());
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setMinScaleDenominator(rule.getMinScaleDenominator());
代码示例来源:origin: org.geotools/gt2-main
copy.setLegendGraphic(legendGraphicCopy);
copy.setMinScaleDenominator(rule.getMinScaleDenominator());
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setName(rule.getName());
copy.setTitle(rule.getTitle());
代码示例来源:origin: org.geotools.xsd/gt-sld
rule.setMaxScaleDenominator(((Double) node.getChildValue("MaxScaleDenominator"))
.doubleValue());
代码示例来源:origin: org.geotools/gt2-main
copy.setLegendGraphic(legendGraphicCopy);
copy.setMinScaleDenominator(rule.getMinScaleDenominator());
copy.setMaxScaleDenominator(rule.getMaxScaleDenominator());
copy.setName(rule.getName());
copy.setTitle(rule.getTitle());
代码示例来源:origin: org.geotools.xsd/gt-xsd-sld
rule.setMaxScaleDenominator(((Double) node.getChildValue("MaxScaleDenominator"))
.doubleValue());
内容来源于网络,如有侵权,请联系作者删除!