mirror of
https://github.com/dataforcanada/d4c-service-geo-assistant.git
synced 2026-06-15 07:21:02 +02:00
Tool/naip fetcher (#12)
* Add initial NAIP fetcher * Swap to Element84's EarthSearch API for NAIP STAC search and download * clip to bounds of aoi * Swap to Element84's EarthSearch API for NAIP STAC search and download * rename bands and remove dask chunking * Add DS_Store to .gitignore * restrict date range for naip test * Adjust timerange for tests * Add xarray to pyproj * Reduce aoi size * revert test to use tmp path * Update return types for tool to ensure state gets updated * Mark naip test as xfail * Fix geom creation --------- Co-authored-by: lillythomas <lillyelizathomas@gmail.com> Co-authored-by: Daniel Wiesmann <yellowcap@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
from langchain.agents import AgentState
|
||||
from geojson_pydantic import Feature
|
||||
from typing import Optional
|
||||
from pydantic import Field
|
||||
|
||||
|
||||
class GeoAssistantState(AgentState):
|
||||
place: Optional[Feature]
|
||||
search_area: Optional[Feature]
|
||||
naip_png_path: Optional[str] = Field(
|
||||
default=None, description="Path to the saved NAIP RGB PNG image"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user