Reproject imagery tool
The ReprojectImageryTool, which an agent sees as FindReprojectedImagery, fetches imagery a search pipeline has already reprojected into target_crs.
This tool names a search pipeline that includes reproject_raster. Set that pipeline's target_crs to EPSG:3857 for Web Mercator. The cluster warps the stored bytes on the way out.
Every answer names the CRS the returned imagery is in and the sampling used. When the named pipeline leaves the imagery in its stored CRS, the answer states that.
The pipeline is where the CRS, mode, and interpolation are configured, so every client — this tool, a GIS app, a search request — shares the same approved transform.
Parameters
| Parameter | Required | Description |
|---|---|---|
index | Yes | The index holding the imagery. |
search_pipeline | Yes | A search pipeline that includes reproject_raster. |
query | No | A phrase that restricts which scenes come back. |
size | No | How many scenes to return. Default is 5. Maximum is 25. |
image_field | No | Field the reprojected image lands in. |
Register a flow agent that runs the ReprojectImageryTool
POST /_plugins/_agent/agents/_register
{
"name": "Map_Imagery_Agent",
"type": "flow",
"description": "fetches imagery in the map projection",
"tools": [
{
"type": "ReprojectImageryTool",
"name": "DemoFindReprojectedImagery",
"parameters": {
"index": "scenes",
"search_pipeline": "imagery_web_mercator"
}
}
]
}
Related
- Processor configuration:
reproject_raster