pub enum Command {
Translate {
infile: Option<String>,
outfile: Option<String>,
migrate: bool,
to: Option<String>,
},
Search {Show 13 fields
href: String,
outfile: Option<String>,
use_duckdb: Option<bool>,
max_items: Option<usize>,
intersects: Option<String>,
ids: Option<String>,
collections: Option<String>,
bbox: Option<String>,
datetime: Option<String>,
fields: Option<String>,
sortby: Option<String>,
filter: Option<String>,
limit: Option<String>,
},
Serve {
hrefs: Vec<String>,
addr: String,
pgstac: Option<String>,
load_collection_items: bool,
create_collections: bool,
},
Validate {
infile: Option<String>,
},
}
Expand description
A stacrs subcommand.
Variants§
Translate
Translates STAC from one format to another.
Fields
infile: Option<String>
The input file.
To read from standard input, pass -
or don’t provide an argument at all.
outfile: Option<String>
The output file.
To write to standard output, pass -
or don’t provide an argument at all.
Search
Searches a STAC API or stac-geoparquet file.
Fields
outfile: Option<String>
The output file.
To write to standard output, pass -
or don’t provide an argument at all.
use_duckdb: Option<bool>
Use DuckDB to query the href.
By default, DuckDB will be used if the href ends in parquet
or
geoparquet
. Set this value to true
to force DuckDB to be used,
or to false
to disable this behavior.
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.
datetime: Option<String>
Single date+time, or a range (‘/’ separator), formatted to RFC 3339, section 5.6.
Use double dots ..
for open date ranges.
Serve
Serves a STAC API.
Fields
hrefs: Vec<String>
The hrefs of collections, items, and item collections to load into the API on startup.
Validate
Validates a STAC value.
The default output format is plain text — use --output-format=json
to
get structured output.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more