have planet orders request take in a series of item descriptions to create an order #944
Labels
2024-revisit
SDK committee reviewed and marked for follow-up
CLI/SDK Interface
Update the CLI and SDK to the finalized interface
proposal
Milestone
Uh oh!
There was an error while loading. Please reload this page.
To support the common use case of creating an order from a search, have planet orders request take in a series of item descriptions to create an order.
Usage:
planet data search --limit 5 PSScene | planet orders request - --name test --clip aoi.geojson --bundle analytic
Implementation notes: ids and item type are taken from the input. There is a check for more than one item type, which at this point results in a failure (the ability to order multiple types could come in a future improvement)
Changes required:
Below is a working example of extracting item type and id from the output of
planet data search
.Note:
MultiJSON
is a hacked up version ofJSON
, which is in thecli/types.py
module. There is more work here in defining a type that can handle both comma separated strings and multiple lines of json.ml.py
The text was updated successfully, but these errors were encountered: