Class CoverageFileBookmarkResolver
java.lang.Object
nz.org.riskscape.engine.data.BaseBookmarkResolver<CoverageFileBookmarkResolver.Params>
nz.org.riskscape.engine.data.coverage.CoverageFileBookmarkResolver
- All Implemented Interfaces:
nz.org.riskscape.engine.data.BookmarkResolver
,nz.org.riskscape.engine.Identified
public class CoverageFileBookmarkResolver
extends nz.org.riskscape.engine.data.BaseBookmarkResolver<CoverageFileBookmarkResolver.Params>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
protected static final String
static final String
Fields inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver
engine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected nz.org.riskscape.problem.ResultOrProblems<? extends Object>
protected nz.org.riskscape.problem.ResultOrProblems<org.geotools.util.factory.Hints>
protected org.geotools.coverage.grid.io.AbstractGridFormat
findFormat
(CoverageFileBookmarkResolver.Params params, File file) static void
initTileCacheSize
(BootstrapIniSettings settings) Initializes the size of the tile cache based on the given RiskScape settings.protected void
validateParameters
(CoverageFileBookmarkResolver.Params params, nz.org.riskscape.engine.bind.BindingContext context) Methods inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver
attemptPrjParse, attemptPrjParse, bindAndValidate, buildParameterSet, checkFile, getBookmarkedPath, getBookmarkedPathOr, getEngine, getExtensions, getFormat, getFormats, getParameterSet, getParamsClass, newResolved, resolve, setCrs
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.data.BookmarkResolver
getId, getName, supportedParameters
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
-
Field Details
-
TILE_CACHE_SETTING
- See Also:
-
DEFAULT_TILE_CACHE_PERCENT
public static final double DEFAULT_TILE_CACHE_PERCENT- See Also:
-
EXTENSIONS_TO_FORMATS
-
MEMO_FILE
- See Also:
-
-
Constructor Details
-
CoverageFileBookmarkResolver
public CoverageFileBookmarkResolver(nz.org.riskscape.engine.Engine engine)
-
-
Method Details
-
initTileCacheSize
Initializes the size of the tile cache based on the given RiskScape settings. A larger tile cache means better sampling performance, because loading tiles into the cache is costly.
-
getAliasMapping
- Overrides:
getAliasMapping
in classnz.org.riskscape.engine.data.BaseBookmarkResolver<CoverageFileBookmarkResolver.Params>
-
getExtensionsToFormats
- Specified by:
getExtensionsToFormats
in classnz.org.riskscape.engine.data.BaseBookmarkResolver<CoverageFileBookmarkResolver.Params>
-
build
protected nz.org.riskscape.problem.ResultOrProblems<? extends Object> build(CoverageFileBookmarkResolver.Params params) - Specified by:
build
in classnz.org.riskscape.engine.data.BaseBookmarkResolver<CoverageFileBookmarkResolver.Params>
-
buildHints
protected nz.org.riskscape.problem.ResultOrProblems<org.geotools.util.factory.Hints> buildHints(CoverageFileBookmarkResolver.Params params) -
validateParameters
protected void validateParameters(CoverageFileBookmarkResolver.Params params, nz.org.riskscape.engine.bind.BindingContext context) - Overrides:
validateParameters
in classnz.org.riskscape.engine.data.BaseBookmarkResolver<CoverageFileBookmarkResolver.Params>
-
findFormat
protected org.geotools.coverage.grid.io.AbstractGridFormat findFormat(CoverageFileBookmarkResolver.Params params, File file)
-