diff --git a/pyproject.toml b/pyproject.toml index 1523d28..4c0160a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -175,7 +175,7 @@ messages_control.disable = [ [tool.pixi.project] channels = ["conda-forge"] -platforms = ["osx-arm64", "linux-64"] +platforms = ["osx-arm64", "linux-64", "win-64"] [tool.pixi.environments] default = { solve-group = "default" } diff --git a/src/coincident/search/main.py b/src/coincident/search/main.py index 8f06cac..ea50c1e 100644 --- a/src/coincident/search/main.py +++ b/src/coincident/search/main.py @@ -171,7 +171,7 @@ def _validate_spatial_bounds( intersects: gpd.GeoSeries, ) -> None: """ - Validate that the specified area of interest (AOI) within CONUS or Alaska. + Validate that the specified area of interest (AOI) is type GeoDataFrame or GeoSeries Parameters ---------- dataset : _Dataset @@ -181,7 +181,7 @@ def _validate_spatial_bounds( Raises ------ ValueError - If the AOI is not within the bounds of the Continental U.S. or Alaska. + If the AOI is not type GeoDataFrame or GeoSeries """ if not isinstance(intersects, gpd.GeoDataFrame | gpd.GeoSeries): message = f"intersects value must be a GeoDataFrame or GeoSeries, not {type(intersects)}" @@ -191,10 +191,10 @@ def _validate_spatial_bounds( raise ValueError(message) # NOTE: use geopandas to first convert to projected CRS? - aoi = intersects.to_crs("EPSG:4326").geometry.iloc[0] # shapely geometry - CONUS = box(*(-124.84, 24.39, -66.88, 49.38)) - AK = box(*(-179.99, 51.21, -129.63, 71.35)) - if not aoi.within(CONUS) and not aoi.within(AK): - message = "Requested search polygon not within Continental U.S. or Alaska" - raise ValueError(message) + #aoi = intersects.to_crs("EPSG:4326").geometry.iloc[0] # shapely geometry + #CONUS = box(*(-124.84, 24.39, -66.88, 49.38)) + #AK = box(*(-179.99, 51.21, -129.63, 71.35)) + #if not aoi.within(CONUS) and not aoi.within(AK): + # message = "Requested search polygon not within Continental U.S. or Alaska" + # raise ValueError(message) # warnings.warn(f'Requested search polygon not within Continental U.S. or Alaska')