Package org.geotools.stac.client
Class STACClient
Object
STACClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
Minimal STAC API client supporting the needs of the STAC datastore. Not currently meant to be a generic STAC client.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Used to indicate how to perform search queries. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Returns the collection description, if a "data" link is available in the home pagegetHttp()
Returns the HTTP client used by the this STAC clientReturns the landing page of the STAC servicesearch
(SearchQuery search, STACClient.SearchMode mode) Retrieves data using the Search APIsearch
(SearchQuery search, STACClient.SearchMode mode, SimpleFeatureType schema) Retrieves data using the Search API
-
Field Details
-
JSON_MIME
- See Also:
-
GEOJSON_MIME
- See Also:
-
-
Constructor Details
-
STACClient
- Throws:
IOException
-
-
Method Details
-
getLandingPage
Returns the landing page of the STAC service- Returns:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getCollections
Returns the collection description, if a "data" link is available in the home page- Returns:
- Throws:
IOException
-
search
public SimpleFeatureCollection search(SearchQuery search, STACClient.SearchMode mode) throws IOException Retrieves data using the Search API- Parameters:
search
- The search requestmode
- The search mode- Throws:
IOException
-
search
public SimpleFeatureCollection search(SearchQuery search, STACClient.SearchMode mode, SimpleFeatureType schema) throws IOException Retrieves data using the Search API- Parameters:
search
- The search requestmode
- The search modeschema
- An optional base schema, can be used to ensure at least those properties are present- Throws:
IOException
-
getHttp
Returns the HTTP client used by the this STAC client
-