Raster Thumbnail

URL:
https://<rastercatalogitem-url>/info/thumbnail
Methods:
GET
Required Capability:
Catalog
Version Introduced:
10.1

Description

The thumbnail resource returns a thumbnail for a single raster catalog item. This resource streams the thumbnail contents to the client.

Request parameters

ParameterDetails

width

(Optional)

The width of the thumbnail in pixels.

Syntax

Use dark colors for code blocksCopy
1
width=<width>

Example

Use dark colors for code blocksCopy
1
width=200

height

(Optional)

The height of the thumbnail in pixels.

Syntax

Use dark colors for code blocksCopy
1
height=<height>

Example

Use dark colors for code blocksCopy
1
height=200

adjustAspectRatio

(Optional)

This parameter indicates whether to adjust the aspect ratio. By default, adjustAspectRatio is false. When set to true, the thumbnail will honor the width/height ratio of the source image, and the thumbnail may be padded with NoData pixels (and the response thumbnail will be a PNG file).

Values: true| false

native

(Optional)

This indicates that your thumbnail is a view of the native image, without any rotation, transformation, or projections. The default is false .

Values: true | false

Example usage

The following is a sample request URL used to access the thumbnail resource for raster ID 8:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/Portland/CascadeLandsat/ImageServer/8/thumbnail

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.