org.geotools.util.factory.Hints.putAll()方法的使用及代码示例

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

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

Hints.putAll介绍

暂无

代码示例

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

public GridCoverage getGridCoverage(ProgressListener listener, Hints hints) throws IOException {
  // manage projection policy
  if (this.projectionPolicy == ProjectionPolicy.FORCE_DECLARED) {
    final Hints crsHints =
        new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, this.getCRS());
    if (hints != null) hints.putAll(crsHints);
    else hints = crsHints;
  }
  return catalog.getResourcePool().getGridCoverage(this, null, hints);
}

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

public GridCoverage getGridCoverage(
    ProgressListener listener, ReferencedEnvelope envelope, Hints hints)
    throws IOException {
  // manage projection policy
  if (this.projectionPolicy == ProjectionPolicy.FORCE_DECLARED) {
    final Hints crsHints =
        new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, this.getCRS());
    if (hints != null) hints.putAll(crsHints);
    else hints = crsHints;
  }
  return catalog.getResourcePool().getGridCoverage(this, envelope, hints);
}

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

public GridCoverageReader getGridCoverageReader(ProgressListener listener, Hints hints)
    throws IOException {
  // manage projection policy
  if (this.projectionPolicy == ProjectionPolicy.FORCE_DECLARED) {
    final Hints crsHints =
        new Hints(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, this.getCRS());
    if (hints != null) hints.putAll(crsHints);
    else hints = crsHints;
  }
  return catalog.getResourcePool().getGridCoverageReader(this, nativeCoverageName, hints);
}

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

} else {
  Hints mix = userQuery.getHints();
  mix.putAll(securityQuery.getHints());
  result.setHints(mix);

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

/** Adds all hints from the specified factory into the specified set of hints. */
private static void addAll(final AuthorityFactory factory, final Hints hints) {
  if (factory instanceof Factory) {
    hints.putAll(((Factory) factory).getImplementationHints());
  }
}

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

/** Returns a copy of the hints specified by the user at construction time. */
private Hints getHints() {
  if (hints.isEmpty()) {
    return ReferencingFactoryFinder.EMPTY_HINTS;
  } else {
    // Clones EMPTY_HINTS as a trick for getting a StricHints instance.
    final Hints hints = ReferencingFactoryFinder.EMPTY_HINTS.clone();
    hints.putAll(this.hints);
    return hints;
  }
}

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

/** Returns the {@linkplain #hints hints} extented will all hints specified in dependencies. */
private Hints hints() {
  final Hints extended = new Hints(hints);
  addAll(operationFactory, extended);
  addAll(datumFactory, extended);
  addAll(csFactory, extended);
  addAll(crsFactory, extended);
  extended.putAll(hints); // Gives precedence to the hints from this class.
  return extended;
}

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

assert Thread.holdsLock(this);
final Hints sourceHints = new Hints(hints);
sourceHints.putAll(factories.getImplementationHints());
if (datasource != null) {
  return createBackingStore(sourceHints);

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

hints.putAll(firstQuery.getHints());
hints.putAll(secondQuery.getHints());

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

localHints.putAll(hints);
if (symbolizer != null && symbolizer.getColorMap() != null) {
  localHints.put(JAI.KEY_REPLACE_INDEX_COLOR_MODEL, false);

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

query.setHints(hints);
} else {
  query.getHints().putAll(hints);

相关文章