@@ -518,6 +518,18 @@ def request(name,
518518@click .option ('--time-range-type' ,
519519 type = click .Choice (["acquired" , "published" ]),
520520 help = "Subscribe by acquisition time or time of publication." )
521+ @click .option (
522+ '--geometry-relation' ,
523+ type = click .Choice (["intersects" , "contains" , "within" ]),
524+ help = # noqa: E251
525+ ('\b \n '
526+ 'The relationship between the subscription geometry and the item geometry.\n '
527+ 'intersects (default): Returns items whose footprint geometry partially or \n '
528+ 'fully overlaps with the subscription geometry.\n '
529+ 'contains: Returns items where the footprint geometry fully encloses the \n '
530+ 'subscription geometry.\n '
531+ 'within: Returns items whose entire footprint geometry is fully contained \n '
532+ 'within the subscription geometry.' ))
521533@pretty
522534def request_catalog (item_types ,
523535 asset_types ,
@@ -528,6 +540,7 @@ def request_catalog(item_types,
528540 filter ,
529541 publishing_stages ,
530542 time_range_type ,
543+ geometry_relation ,
531544 pretty ):
532545 """Generate a subscriptions request catalog source description."""
533546
@@ -540,7 +553,8 @@ def request_catalog(item_types,
540553 rrule = rrule ,
541554 filter = filter ,
542555 publishing_stages = publishing_stages ,
543- time_range_type = time_range_type )
556+ time_range_type = time_range_type ,
557+ geometry_relation = geometry_relation )
544558 echo_json (res , pretty )
545559
546560
0 commit comments