We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
properties.
1 parent 34fa75d commit bb18e68Copy full SHA for bb18e68
1 file changed
stac_planet_api/request_adaptor.py
@@ -56,7 +56,7 @@ def datetime_filter(date_filter: str):
56
def comparison_filter(comp_filter):
57
return {
58
"type": "RangeFilter",
59
- "field_name": comp_filter["args"][0]["property"],
+ "field_name": comp_filter["args"][0]["property"].lstrip("properties."),
60
"config": {
61
COMPARISONS[comp_filter["op"]]: comp_filter["args"][1],
62
},
@@ -66,7 +66,7 @@ def comparison_filter(comp_filter):
66
def geometry_filter(geometry_filter):
67
68
"type": "GeometryFilter",
69
- "field_name": geometry_filter["args"][0]["property"],
+ "field_name": geometry_filter["args"][0]["property"].lstrip("properties."),
70
71
"type": "Polygon",
72
"coordinates": geometry_filter["args"][1]["coordinates"]
0 commit comments