/** * 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); } } }
/** * 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); } } }
synchronized (GLOBAL) { changed = ensureSystemDefaultLoaded(); if (!GLOBAL.isEmpty()) { extra = new HashMap<Object,Object>(GLOBAL);
synchronized (GLOBAL) { changed = ensureSystemDefaultLoaded(); if (!GLOBAL.isEmpty()) { extra = new HashMap(GLOBAL);
/** * 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; }
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);