nasa / opera-sds-pcm

Observational Products for End-Users from Remote Sensing Analysis (OPERA)
Apache License 2.0
16 stars 12 forks source link

[Bug]: Potential geofilter issue #811

Closed philipjyoon closed 5 months ago

philipjyoon commented 5 months ago

Checked for duplicates

Yes - I've already checked

Describe the bug

@niarenaw is reporting a potential geofilter bug. For the SLC granule S1A_IW_SLC__1SDV_20160728T225204_20160728T225231_012355_0133F4_8423.zip the logs seem to indicate that it's passing the filter. But it shouldn't be

{ "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "type": "S2", "identifier": "10TFP" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -121.7475191278, 44.2465509345, 0.0 ], [ -120.3733540263, 44.2232097399, 0.0 ], [ -120.4161917204, 43.2356009597, 0.0 ], [ -121.7679673, 43.2581553186, 0.0 ], [ -121.7475191278, 44.2465509345, 0.0 ] ] ] ] } }] }

[2024-04-23 20:19:26,928: INFO/_post] Document updated: {'_index': 'slc_spatial_catalog-2024.04', '_type': '_doc', '_id': 'S1A_IW_SLC__1SDV_20160728T225229_20160728T225256_012355_0133F4_4649-SLC', '_version': 1, 'result': 'created', '_shards': {'total': 2, 'successful': 1, 'failed': 0}, '_seq_no': 378, '_primary_term': 2}
[2024-04-23 20:19:26,928: INFO/does_bbox_intersect_region] bbox=[{'lat': 46.255867, 'lon': -76.713303}, {'lat': 44.639988, 'lon': -76.258331}, {'lat': 45.03212, 'lon': -73.094223}, {'lat': 46.648479, 'lon': -73.453896}, {'lat': 46.255867, 'lon': -76.713303}]
[2024-04-23 20:19:26,975: INFO/does_bbox_intersect_region] is_bbox_in_region=True
[2024-04-23 20:19:26,977: INFO/log_request_success] POST http://100.104.62.12:9200/slc_catalog*/_search?size=1000 [status:200 request:0.002s]
[2024-04-23 20:19:26,978: INFO/log_request_success] POST http://100.104.62.12:9200/slc_catalog*/_search?size=1000&from=1000 [status:200 request:0.001s]
[2024-04-23 20:19:26,978: INFO/update_document] update_document **kwargs
[2024-04-23 20:19:26,981: INFO/log_request_success] POST http://100.104.62.12:9200/slc_catalog-2024.04/_update/S1A_IW_SLC__1SDV_20160728T225204_20160728T225231_012355_0133F4_8423.zip-r15 [status:201 request:0.003s]
[2024-04-23 20:19:26,982: INFO/log_request_success] POST http://100.104.62.12:9200/slc_spatial_catalog*/_search?size=1000 [status:200 request:0.001s]
[2024-04-23 20:19:26,984: INFO/log_request_success] POST http://100.104.62.12:9200/slc_spatial_catalog*/_search?size=1000&from=1000 [status:200 request:0.001s]
[2024-04-23 20:19:26,987: INFO/log_request_success] PUT http://100.104.62.12:9200/slc_spatial_catalog-2024.04/_doc/S1A_IW_SLC__1SDV_20160728T225204_20160728T225231_012355_0133F4_8423-SLC [status:201 request:0.003s]
[2024-04-23 20:19:26,987: INFO/_post] Document updated: {'_index': 'slc_spatial_catalog-2024.04', '_type': '_doc', '_id': 'S1A_IW_SLC__1SDV_20160728T225204_20160728T225231_012355_0133F4_8423-SLC', '_version': 1, 'result': 'created', '_shards': {'total': 2, 'successful': 1, 'failed': 0}, '_seq_no': 392, '_primary_term': 2}

What did you expect?

nt

Reproducible steps

1.
2.
3.
...

Environment

- Version of this software [e.g. vX.Y.Z]
- Operating System: [e.g. MacOSX with Docker Desktop vX.Y]
...
philipjyoon commented 5 months ago

This is not a bug. Geofiltering only works in historical processing mode and the user did not specify that mode