Class WFSFeatureSourceHelper

java.lang.Object
org.tailormap.api.geotools.featuresources.FeatureSourceHelper
org.tailormap.api.geotools.featuresources.WFSFeatureSourceHelper

public class WFSFeatureSourceHelper extends FeatureSourceHelper
  • Constructor Details

    • WFSFeatureSourceHelper

      public WFSFeatureSourceHelper()
  • Method Details

    • getWFSVersion

      public static String getWFSVersion(String url)
      Get the WFS version to use for a feature source URL. This is SimpleWFSHelper.DEFAULT_WFS_VERSION, unless the URL has a VERSION parameter with a version GeoTools supports, for example to force WFS 1.1.0 for a server with a broken WFS 2.0.0 implementation.
      Parameters:
      url - the feature source URL
      Returns:
      the WFS version
    • createDataStore

      public org.geotools.api.data.DataStore createDataStore(TMFeatureSource tmfs, Integer timeout) throws IOException
      Description copied from class: FeatureSourceHelper
      Create a GeoTools DataStore for the given TMFeatureSource.
      Specified by:
      createDataStore in class FeatureSourceHelper
      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
    • getFeatureTypeInfo

      protected TMFeatureTypeInfo getFeatureTypeInfo(TMFeatureType pft, org.geotools.api.data.ResourceInfo info, org.geotools.api.data.SimpleFeatureSource gtFs)
      Overrides:
      getFeatureTypeInfo in class FeatureSourceHelper