Class PostGISResolver

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.jdbc.JDBCDataStore,PostGISResolver.Params>
nz.org.riskscape.postgis.PostGISResolver
All Implemented Interfaces:
nz.org.riskscape.engine.data.BookmarkResolver, nz.org.riskscape.engine.Identified

public class PostGISResolver extends nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.jdbc.JDBCDataStore,PostGISResolver.Params>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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 org.geotools.data.postgis.PostgisNGDataStoreFactory
     
    static final 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
    PostGISResolver(nz.org.riskscape.engine.Engine engine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.geotools.jdbc.JDBCDataStore
     
    protected nz.org.riskscape.problem.ResultOrProblems<org.geotools.api.data.SimpleFeatureSource>
    createFeatureSource(PostGISResolver.Params params, org.geotools.jdbc.JDBCDataStore dataStore)
     
     
    protected Map<String,String>
     
    getFormat(nz.org.riskscape.engine.data.Bookmark bookmark)
     
     
    protected void
    validateParameters(PostGISResolver.Params params, nz.org.riskscape.engine.bind.BindingContext context)
     

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

    buildParameterSet, createRawRelationFromBookmark, crsAtAllCosts, wrapRelation

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

    applyFilter, build, getV2r, rasterize, setV2r

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

    attemptPrjParse, attemptPrjParse, bindAndValidate, checkFile, getBookmarkedPath, getBookmarkedPathOr, getEngine, getExtensions, 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

    • FORMAT

      public static final String FORMAT
      See Also:
    • FACTORY

      public static final org.geotools.data.postgis.PostgisNGDataStoreFactory FACTORY
  • Constructor Details

    • PostGISResolver

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

    • createDataStore

      protected org.geotools.jdbc.JDBCDataStore createDataStore(PostGISResolver.Params params) throws MalformedURLException, IOException
      Specified by:
      createDataStore in class nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.jdbc.JDBCDataStore,PostGISResolver.Params>
      Throws:
      MalformedURLException
      IOException
    • createFeatureSource

      protected nz.org.riskscape.problem.ResultOrProblems<org.geotools.api.data.SimpleFeatureSource> createFeatureSource(PostGISResolver.Params params, org.geotools.jdbc.JDBCDataStore dataStore)
      Overrides:
      createFeatureSource in class nz.org.riskscape.engine.data.relation.FeatureSourceBookmarkResolver<org.geotools.jdbc.JDBCDataStore,PostGISResolver.Params>
    • validateParameters

      protected void validateParameters(PostGISResolver.Params params, nz.org.riskscape.engine.bind.BindingContext context)
      Overrides:
      validateParameters in class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<PostGISResolver.Params>
    • getFormat

      public String getFormat(nz.org.riskscape.engine.data.Bookmark bookmark)
      Overrides:
      getFormat in class nz.org.riskscape.engine.data.BaseBookmarkResolver<PostGISResolver.Params>
    • getExtensionsToFormats

      protected Map<String,String> getExtensionsToFormats()
      Specified by:
      getExtensionsToFormats in class nz.org.riskscape.engine.data.BaseBookmarkResolver<PostGISResolver.Params>
    • getFormats

      public Set<String> getFormats()
      Specified by:
      getFormats in interface nz.org.riskscape.engine.data.BookmarkResolver
      Overrides:
      getFormats in class nz.org.riskscape.engine.data.BaseBookmarkResolver<PostGISResolver.Params>
    • getAliasMapping

      public Map<String,String> getAliasMapping()
      Overrides:
      getAliasMapping in class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<PostGISResolver.Params>