Enum stac_cli::Subcommand
source · pub enum Subcommand {
Item {
id_or_href: String,
id: Option<String>,
key: String,
role: Vec<String>,
allow_relative_paths: bool,
disable_gdal: bool,
collect: bool,
},
Search {Show 14 fields
href: String,
max_items: Option<usize>,
limit: Option<String>,
bbox: Option<String>,
datetime: Option<String>,
intersects: Option<String>,
ids: Option<String>,
collections: Option<String>,
fields: Option<String>,
sortby: Option<String>,
filter_crs: Option<String>,
filter_lang: Option<String>,
filter: Option<String>,
stream: bool,
},
Serve {
href: Vec<String>,
pgstac: Option<String>,
},
Sort {
href: Option<String>,
},
Validate {
href: Option<String>,
},
}
Variants§
Item
Creates a STAC Item.
Fields
id: Option<String>
The item id, if the positional argument is an href.
If not provided, will be inferred from the filename in the href.
role: Vec<String>
The asset roles, if the positional argument is an href.
Can be provided multiple times.
allow_relative_paths: bool
Allow relative paths.
If false, all path will be canonicalized, which requires that the files actually exist on the filesystem.
Search
Searches a STAC API.
Fields
intersects: Option<String>
Searches items by performing intersection between their geometry and provided GeoJSON geometry.
All GeoJSON geometry types must be supported.
collections: Option<String>
Comma-delimited list of one or more Collection IDs that each matching Item must be in.
filter_crs: Option<String>
Recommended to not be passed, but server must only accept http://www.opengis.net/def/crs/OGC/1.3/CRS84 as a valid value, may reject any others
Serve
Serves a STAC API.
By default, uses a basic memory backend, which is not suitable for
production. To use the pgstac backend, pass the pgstac connection string
to the --pgstac
argument.
Fields
Sort
Sorts the fields of STAC object.
Fields
Validate
Validates a STAC object or API endpoint using json-schema validation.
Fields
href: Option<String>
The href of the STAC object or endpoint.
The validator will make some decisions depending on what type of data is returned from the href. If it’s a STAC Catalog, Collection, or Item, that object will be validated. If its a collections endpoint from a STAC API, all collections will be validated. Additional behavior TBD.
If this is not provided, will read from standard input.
Trait Implementations§
source§impl Debug for Subcommand
impl Debug for Subcommand
source§impl FromArgMatches for Subcommand
impl FromArgMatches for Subcommand
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§impl Subcommand for Subcommand
impl Subcommand for Subcommand
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommand