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); }
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); }
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); }
} else { Hints mix = userQuery.getHints(); mix.putAll(securityQuery.getHints()); result.setHints(mix);
/** 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()); } }
/** 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; } }
/** 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; }
assert Thread.holdsLock(this); final Hints sourceHints = new Hints(hints); sourceHints.putAll(factories.getImplementationHints()); if (datasource != null) { return createBackingStore(sourceHints);
localHints.putAll(hints); if (symbolizer != null && symbolizer.getColorMap() != null) { localHints.put(JAI.KEY_REPLACE_INDEX_COLOR_MODEL, false);
query.setHints(hints); } else { query.getHints().putAll(hints);