Enum Command

Source
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.

§migrate: bool

Migrate this STAC value to another version.

By default, will migrate to the latest supported version. Use --to to specify a different STAC version.

§to: Option<String>

Migrate to this STAC version.

If not provided, will migrate to the latest supported version. Will only be used if --migrate is passed.

§

Search

Searches a STAC API or stac-geoparquet file.

Fields

§href: String

The href of the STAC API or stac-geoparquet file to search.

§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.

§max_items: Option<usize>

The maximum number of items to return from the search.

§intersects: Option<String>

Searches items by performing intersection between their geometry and provided GeoJSON geometry.

All GeoJSON geometry types must be supported.

§ids: Option<String>

Comma-delimited list of Item ids to return.

§collections: Option<String>

Comma-delimited list of one or more Collection IDs that each matching Item must be in.

§bbox: Option<String>

Requested bounding box, as a comma-delimited string.

§datetime: Option<String>

Single date+time, or a range (‘/’ separator), formatted to RFC 3339, section 5.6.

Use double dots .. for open date ranges.

§fields: Option<String>

Include/exclude fields from item collections, as a comma-delimited string.

§sortby: Option<String>

Fields by which to sort results, as a comma-delimited string.

§filter: Option<String>

CQL2 filter expression.

§limit: Option<String>

The page size to be returned from the server.

§

Serve

Serves a STAC API.

Fields

§hrefs: Vec<String>

The hrefs of collections, items, and item collections to load into the API on startup.

§addr: String

The address of the server.

§pgstac: Option<String>

The pgstac connection string, e.g. postgresql://username:password@localhost:5432/postgis

If not provided an in-process memory backend will be used.

§load_collection_items: bool

After loading a collection, load all of its item links.

§create_collections: bool

Create collections for any items that don’t have one.

§

Validate

Validates a STAC value.

The default output format is plain text — use --output-format=json to get structured output.

Fields

§infile: Option<String>

The input file.

To read from standard input, pass - or don’t provide an argument at all.

Trait Implementations§

Source§

impl Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Command

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Command

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T