in parquet_flask/io_logic/parquet_query_condition_management_v3.py [0:0]
def __check_bbox(self):
if self.__query_props.min_lat_lon is not None:
LOGGER.debug(f'setting Lat-Lon min condition as sql: {self.__query_props.min_lat_lon}')
self.__conditions.append(f"{CDMSConstants.lat_col} >= {self.__query_props.min_lat_lon[0]}")
self.__conditions.append(f"{CDMSConstants.lon_col} >= {self.__query_props.min_lat_lon[1]}")
if self.__query_props.max_lat_lon is not None:
LOGGER.debug(f'setting Lat-Lon max condition as sql: {self.__query_props.max_lat_lon}')
self.__conditions.append(f"{CDMSConstants.lat_col} <= {self.__query_props.max_lat_lon[0]}")
self.__conditions.append(f"{CDMSConstants.lon_col} <= {self.__query_props.max_lat_lon[1]}")
if self.__query_props.min_lat_lon is None or self.__query_props.max_lat_lon is None:
self.__is_extending_base = False
return
lat_lon_intervals = SpatialUtils.generate_lat_lon_intervals(tuple(self.__query_props.min_lat_lon), tuple(self.__query_props.max_lat_lon), GEOSPATIAL_INTERVAL)
self.__generate_bbox_list(lat_lon_intervals)
return