Package nz.org.riskscape.postgis
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/interfaces inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver
nz.org.riskscape.engine.data.BaseBookmarkResolver.ProblemCodes
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.geotools.jdbc.JDBCDataStore
protected nz.org.riskscape.problem.ResultOrProblems<org.geotools.api.data.SimpleFeatureSource>
createFeatureSource
(PostGISResolver.Params params, org.geotools.jdbc.JDBCDataStore dataStore) 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
- 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 classnz.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 classnz.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 classnz.org.riskscape.engine.data.relation.RelationBookmarkResolver<PostGISResolver.Params>
-
getFormat
- Overrides:
getFormat
in classnz.org.riskscape.engine.data.BaseBookmarkResolver<PostGISResolver.Params>
-
getExtensionsToFormats
- Specified by:
getExtensionsToFormats
in classnz.org.riskscape.engine.data.BaseBookmarkResolver<PostGISResolver.Params>
-
getFormats
- Specified by:
getFormats
in interfacenz.org.riskscape.engine.data.BookmarkResolver
- Overrides:
getFormats
in classnz.org.riskscape.engine.data.BaseBookmarkResolver<PostGISResolver.Params>
-
getAliasMapping
- Overrides:
getAliasMapping
in classnz.org.riskscape.engine.data.relation.RelationBookmarkResolver<PostGISResolver.Params>
-