Interface FeatureQueryable


public interface FeatureQueryable
A FeatureQueryable provides methods for querying a resource containing geographic features.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.geotools.api.feature.simple.SimpleFeature>
    query(String queryString, String featureCode, int maxResults)
    Retrieves the top results for the given query up to maxResults results.
  • Method Details

    • query

      List<org.geotools.api.feature.simple.SimpleFeature> query(String queryString, String featureCode, int maxResults) throws FeatureQueryException
      Retrieves the top results for the given query up to maxResults results.
      Parameters:
      queryString - a String containing search terms
      featureCode - geonames feature code identifying the type of feature to search for. this can be null and the implementation can choose to ignore it.
      maxResults - the maximum number of results to return
      Returns:
      the top results for the query in descending order of relevance, or an empty List if no results are found
      Throws:
      IllegalArgumentException - if queryString is null or empty, or if maxResults is not a positive integer
      FeatureQueryException - if an exception occurs while querying