Class FeatureSourceHelper

java.lang.Object
org.tailormap.api.geotools.featuresources.FeatureSourceHelper
Direct Known Subclasses:
JDBCFeatureSourceHelper, WFSFeatureSourceHelper

public abstract class FeatureSourceHelper extends Object
  • Constructor Details

    • FeatureSourceHelper

      public FeatureSourceHelper()
  • Method Details

    • createDataStore

      public org.geotools.api.data.DataStore createDataStore(TMFeatureSource tmfs) throws IOException
      Throws:
      IOException
    • createDataStore

      public abstract org.geotools.api.data.DataStore createDataStore(TMFeatureSource tmfs, Integer timeout) throws IOException
      Create a GeoTools DataStore for the given TMFeatureSource.
      Parameters:
      tmfs - The feature source for which to create the datastore
      timeout - Optional timeout in milliseconds for datastore operations, if supported by the datastore implementation
      Returns:
      The created DataStore
      Throws:
      IOException - If an error occurs while creating the DataStore
    • openGeoToolsFeatureSource

      public org.geotools.api.data.SimpleFeatureSource openGeoToolsFeatureSource(TMFeatureType tmft, Integer timeout) throws IOException
      Throws:
      IOException
    • openDatastore

      public org.geotools.api.data.DataStore openDatastore(Map<String,Object> params, String passwordKey) throws IOException
      Throws:
      IOException
    • openDatastore

      public org.geotools.api.data.DataStore openDatastore(Map<String,Object> params, String passwordKey, org.geotools.api.data.DataStoreFactorySpi factory) throws IOException
      Open a datastore with the given parameters.
      Parameters:
      params - the datastore parameters
      passwordKey - the key of the password parameter, which is masked in log messages
      factory - the factory to create the datastore with, or null to find one with DataStoreFinder
      Returns:
      the datastore
      Throws:
      IOException - if the datastore can't be opened
    • loadCapabilities

      public void loadCapabilities(TMFeatureSource tmfs, Integer timeout, CapabilitiesLoadingProgressReporting reporter, CapabilitiesLoadingEvent event) throws IOException
      Throws:
      IOException
    • getFeatureTypeInfo

      protected TMFeatureTypeInfo getFeatureTypeInfo(TMFeatureType pft, org.geotools.api.data.ResourceInfo info, org.geotools.api.data.SimpleFeatureSource gtFs)