| 159 | StacReader::~StacReader(){}; |
| 160 | |
| 161 | void StacReader::addArgs(ProgramArgs& args) |
| 162 | { |
| 163 | //Filter options |
| 164 | args.add("asset_names", "List of asset names to look for in data" |
| 165 | " consumption. Default: 'data'", m_p->m_args->assetNames, {"data"}); |
| 166 | args.add("date_ranges", "Date ranges to include in your search. Dates are" |
| 167 | "formatted according to RFC 3339. Eg. dates'[[\"min1\",\"max1\"],...]'" |
| 168 | , m_p->m_args->dates); |
| 169 | args.add("bounds", "Bounding box to select stac items by. This will " |
| 170 | "propogate down through all readers being used.", m_p->m_args->bounds); |
| 171 | args.add("ogr", "OGR filter geometries to select stac items by.", |
| 172 | m_p->m_args->ogr); |
| 173 | args.add("properties", "Map of STAC property names to regular expression " |
| 174 | "values. ie. {\"pc:type\": \"(lidar|sonar)\"}. Selected items will " |
| 175 | "match all properties.", m_p->m_args->properties); |
| 176 | args.add("items", "List of Item ID regexes to select STAC items based on.", |
| 177 | m_p->m_args->items); |
| 178 | args.add("catalogs", "List of Catalog ID regexes to select STAC items " |
| 179 | "based on.", m_p->m_args->catalogs); |
| 180 | args.add("collections", "List of Collection ID regexes to select STAC " |
| 181 | "items based on.", m_p->m_args->collections); |
| 182 | args.addSynonym("items", "item_ids"); |
| 183 | args.addSynonym("catalogs", "catalog_ids"); |
| 184 | args.addSynonym("collections", "collection_ids"); |
| 185 | |
| 186 | //Reader options |
| 187 | args.add("validate_schema", "Use JSON schema to validate your STAC objects." |
| 188 | " Default: false", m_p->m_args->validateSchema, false); |
| 189 | args.add("reader_args", "Map of reader arguments to their values to pass" |
| 190 | " through.", m_p->m_args->rawReaderArgs); |
| 191 | args.add("requests", "Number of threads for fetching JSON files, Default: 8", |
| 192 | m_p->m_args->threads, 8); |
| 193 | args.addSynonym("requests", "threads"); |
| 194 | |
| 195 | //Schema options |
| 196 | args.add("catalog_schema_url", "URL of catalog schema you'd like to use for" |
| 197 | " JSON schema validation.", m_p->m_args->schemaUrls.catalog, |
| 198 | "https://schemas.stacspec.org/v1.0.0/catalog-spec/json-schema/catalog.json"); |
| 199 | args.add("collection_schema_url", "URL of collection schema you'd like to use for" |
| 200 | " JSON schema validation.", m_p->m_args->schemaUrls.collection, |
| 201 | "https://schemas.stacspec.org/v1.0.0/collection-spec/json-schema/collection.json"); |
| 202 | args.add("feature_schema_url", "URL of feature schema you'd like to use for" |
| 203 | " JSON schema validation.", m_p->m_args->schemaUrls.item, |
| 204 | "https://schemas.stacspec.org/v1.0.0/item-spec/json-schema/item.json"); |
| 205 | } |
| 206 | |
| 207 | |
| 208 | void StacReader::Private::addItem(Item& item) |
nothing calls this directly
no test coverage detected