Skip to main content
Version: 0.13.0

Reproject imagery tool

Introduced 0.13.0

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

ParameterRequiredDescription
indexYesThe index holding the imagery.
search_pipelineYesA search pipeline that includes reproject_raster.
queryNoA phrase that restricts which scenes come back.
sizeNoHow many scenes to return. Default is 5. Maximum is 25.
image_fieldNoField 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"
}
}
]
}