[GIS] Using Flex to display single rasters from raster catalog in ArcSDE/ArcGIS server

arcgis-flex-apiarcgis-serverenterprise-geodatabaserasterraster-catalog

One of the front end develoeprs here is having issues displaying, or working out how to display a single raster held in a raster catalog in ArcSDE using the Flex 2.2 API

the Raster Catalog holds about 30 images and he wants to search for one of these images, based on either the name of the raster, or some attribution tied to each raster, but can't figure out how.

Has anyone done this before?

Best Answer

If you publish your raster catalog as an ImageService (not MapService) using ArcGIS Server 10, then you can query the raster catalog using the same Query/QueryTask that is used to query a layer inside a Map Service. (Note that in the case of a Map Service, you would point the QueryTask url to a layer within a MapService, but for an Image Service you use the url to the service itself.)

There is a sample that shows how to query the raster catalog of an Image Service layer: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=QueryImageService

The REST documentation on ImageService might also be helpful - http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/index.html?imageserver.html

Related Question