Class GeoPackageRelationResolver

java.lang.Object
nz.org.riskscape.engine.data.BaseBookmarkResolver<T>
nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<BP>
nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.api.data.DataStore,nz.org.riskscape.engine.data.relation.RelationBookmarkParams>
nz.org.riskscape.engine.defaults.data.GeoPackageRelationResolver
All Implemented Interfaces:
nz.org.riskscape.engine.data.BookmarkResolver, nz.org.riskscape.engine.Identified

public class GeoPackageRelationResolver extends nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.api.data.DataStore,nz.org.riskscape.engine.data.relation.RelationBookmarkParams>
  • Nested Class Summary

    Nested classes/interfaces inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver

    nz.org.riskscape.engine.data.BaseBookmarkResolver.ProblemCodes
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<String,String>
     

    Fields inherited from class nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver

    DATA_LAYER, LOCK_DEFEATER

    Fields inherited from class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver

    v2r

    Fields inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver

    engine
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeoPackageRelationResolver(nz.org.riskscape.engine.Engine engine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected nz.org.riskscape.engine.bind.JavaParameterSet<nz.org.riskscape.engine.data.relation.RelationBookmarkParams>
     
    protected org.geotools.api.data.DataStore
    createDataStore(nz.org.riskscape.engine.data.relation.RelationBookmarkParams bookmark)
     
    protected Map<String,String>
     
    protected nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.relation.Relation>
    wrapRelation(nz.org.riskscape.engine.data.relation.RelationBookmarkParams params, org.geotools.api.data.DataStore dataStore, nz.org.riskscape.engine.relation.FeatureSourceRelation relation, org.geotools.api.referencing.crs.CoordinateReferenceSystem crs)
     

    Methods inherited from class nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver

    createFeatureSource, createRawRelationFromBookmark, crsAtAllCosts

    Methods inherited from class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver

    applyFilter, build, getAliasMapping, getV2r, rasterize, setV2r, validateParameters

    Methods inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver

    attemptPrjParse, attemptPrjParse, bindAndValidate, 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

    • EXTENSIONS_TO_FORMATS

      public static final Map<String,String> EXTENSIONS_TO_FORMATS
  • Constructor Details

    • GeoPackageRelationResolver

      public GeoPackageRelationResolver(nz.org.riskscape.engine.Engine engine)
  • Method Details

    • createDataStore

      protected org.geotools.api.data.DataStore createDataStore(nz.org.riskscape.engine.data.relation.RelationBookmarkParams bookmark) throws MalformedURLException, IOException
      Specified by:
      createDataStore in class nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.api.data.DataStore,nz.org.riskscape.engine.data.relation.RelationBookmarkParams>
      Throws:
      MalformedURLException
      IOException
    • getExtensionsToFormats

      protected Map<String,String> getExtensionsToFormats()
      Specified by:
      getExtensionsToFormats in class nz.org.riskscape.engine.data.BaseBookmarkResolver<nz.org.riskscape.engine.data.relation.RelationBookmarkParams>
    • buildParameterSet

      protected nz.org.riskscape.engine.bind.JavaParameterSet<nz.org.riskscape.engine.data.relation.RelationBookmarkParams> buildParameterSet()
      Overrides:
      buildParameterSet in class nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.api.data.DataStore,nz.org.riskscape.engine.data.relation.RelationBookmarkParams>
    • wrapRelation

      protected nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.relation.Relation> wrapRelation(nz.org.riskscape.engine.data.relation.RelationBookmarkParams params, org.geotools.api.data.DataStore dataStore, nz.org.riskscape.engine.relation.FeatureSourceRelation relation, org.geotools.api.referencing.crs.CoordinateReferenceSystem crs)
      Overrides:
      wrapRelation in class nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.api.data.DataStore,nz.org.riskscape.engine.data.relation.RelationBookmarkParams>