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

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

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

Hints.isEmpty介绍

暂无

代码示例

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

/**
   * Reports the GeoTools {@linkplain #getVersion version} number to the
   * {@linkplain System#out standard output stream}.
   */
  public static void main(String[] args) {
    final Arguments arguments = new Arguments(args);
    args = arguments.getRemainingArguments(0);
    arguments.out.print("GeoTools version ");
    arguments.out.println(getVersion());
    final Hints hints = getDefaultHints();
    if (hints!=null && !hints.isEmpty()) {
      arguments.out.println(hints);
    }
  }
}

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

/**
   * Reports the GeoTools {@linkplain #getVersion version} number to the
   * {@linkplain System#out standard output stream}.
   *
   * @param args Command line arguments.
   */
  public static void main(String[] args) {
    final Arguments arguments = new Arguments(args);
    args = arguments.getRemainingArguments(0);
    arguments.out.print("GeoTools version ");
    arguments.out.println(getVersion());
    final Hints hints = getDefaultHints();
    if (hints!=null && !hints.isEmpty()) {
      arguments.out.println(hints);
    }
  }
}

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

synchronized (GLOBAL) {
  changed = ensureSystemDefaultLoaded();
  if (!GLOBAL.isEmpty()) {
    extra = new HashMap<Object,Object>(GLOBAL);

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

synchronized (GLOBAL) {
  changed = ensureSystemDefaultLoaded();
  if (!GLOBAL.isEmpty()) {
    extra = new HashMap(GLOBAL);

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

/**
 * Returns a default processor instance.
 * <p>
 * <strong>Note:</strong> this is a temporary method, until we have GeoAPI interface for
 * coverage processor and a factory finder for their implementations.
 */
public static synchronized CoverageProcessor getInstance(final Hints hints) 	{
  if(hints==null||hints.isEmpty()){
    if (DEFAULT == null) {
      DEFAULT = new CacheableCoverageProcessor();
    }
    return DEFAULT;
  }
  if(processorsPool.containsKey(hints))
    return processorsPool.get(hints);
  final CoverageProcessor processor=new CacheableCoverageProcessor(hints);
  processorsPool.put(hints, processor);
  return processor;
}

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

layout.setTileHeight(tileDimensions.width).setTileWidth(tileDimensions.height);
final RenderingHints localHints = new RenderingHints(JAI.KEY_IMAGE_LAYOUT,layout);
if (hints != null && !hints.isEmpty()){
  if (hints.containsKey(JAI.KEY_TILE_CACHE)){
    final Object tc = hints.get(JAI.KEY_TILE_CACHE);

相关文章