Select to view content in your preferred language

ImageServer: can't retrieve rasters boundary

485
1
06-23-2023 02:50 AM
NicolasGIS
Frequent Contributor

Hello,

In a webapplication, I using an ImageServer to query pixels values of several rasters through an ImageServer.

I would like to extract the boundaries of the rasters so as to expose them to the end users of the web application (so that they know the area covered by the data they querying). I can't find a way to do so from an ImageServer service. If I publish the mosaic dataset as a MapServer, it's possible but ideally I would to avoid multiplying services for resources optimization.

Did I miss anything ? 

Thanks,

Nicolas

0 Kudos
1 Reply
Zikang
by
Occasional Contributor

 if the source of the image service is a mosaic dataset, which contains multiple images inside, you will be able to use these image service operations:

query boundary to get the boundary of the whole mosaic datset:

https://developers.arcgis.com/rest/services-reference/enterprise/query-boundary.htm

query the geometry of each item that contains the x,y when you query pixel values.

https://developers.arcgis.com/rest/services-reference/enterprise/query-image-service-.htm

0 Kudos