Select to view content in your preferred language

REST API - Intersectiing Point With Raster

1225
2
08-15-2012 08:38 AM
chuckfrank
Frequent Contributor
If the REST API doesn't support querying against a raster service, how can I accomplish the task of having a coordinate and intersecting it against a raster to return a value?  If anybody from ESRI reads this, is this something that might be supported in a future release or does ESRI have a recommended practice for intersecting against raster services?  In the REST API, it's very easy to intersect with a feature layer and I wish it was supported for a raster layer.

Thanks,
Chuck
Tags (2)
0 Kudos
2 Replies
JeffreySwain
Esri Regular Contributor
In REST, you can use the Identify operation to query an individual location and return a value. 
The identify operation is performed on an image service resource. It identifies the content of an image service for a given location and a given mosaic rule. The location can be a point or a polygon.

The identify operation is supported by all kinds of image services (Mosaic Datasets, Raster Datasets).

The result of this operation includes the pixel value of the mosaic for a given mosaic rule, a resolution (pixel size), and a set of catalog items that overlap the given geometry. The single pixel value is that of the mosaic at the centroid of the specified location. If there are multiple rasters overlapping the location, the visibility of a raster is determined by the order of the rasters defined in the mosaic rule. It also contains a set of catalog items that overlap the given geometry. The catalog items are ordered based on the mosaic rule. A list of catalog item visibilities gives the percentage contribution of the item to overall mosaic.


Or Query on a bounding box of coordinates, per the help
The query operation is performed on an image service resource. It queries the raster catalog by applying the filter specified by the user. The result of this operation is either a set of features in the raster catalog or an array of raster ids (if returnIdsOnly is set to true).


Also there are geoprocessing tools that can also be used for specific point locations like, Sample, Extract Values to Point and Add Surface Information.
0 Kudos
chuckfrank
Frequent Contributor
We are trying to identify against a multi-layer cache.  I'm sorry, I was looking all of they way into the raster layer and not at the higher service level.  Querying for dynamic services works at the feature layer level and I was wondering if there was something similar for a raster layer in the REST API.  In the case of a raster, I should bump out one level and try identify and that might be as much as I can do.  We haven't moved to 10.1 yet and we aren't using the image extension, but maybe that would help with performance and offer additional functionality that would help.

Thanks for your advice.
0 Kudos