GetImage Service - v1.4
Introduction
The GetImage service delivers a selected image from within a layer at the desired resolution level. Users have the ability of resizing the image if needed. While this service is very similar to ExtractImages; here are some of the main differences:
GetImage is faster because it returns images that are not orthorectified, projected or rotated.
GetImage always returns the full image, even at all variable resolutions.
ExtractImages can return cropped images.
Because of these differences GetImage’s primary function is to produce thumbnail images of discrete images.
Technical Details
The GetImage service is accessed by providing imagename
and layer
. The image resolution can be modified by providing either zoom
or width
/height
. Because the full image is always returned, if the width
/height
aspect ratio differs from the original image, white pixels will be used to fill the discrepancy. GetImage does not utilize a DTM nor require a world-to-pixel polygon to be produced and therefore the returned images are neither orthorectified, projected or rotated. Because imagename
is a mandatory input parameter this service is generally secondary to another service that provides the imagename
(e.g. FindImage).
Output Image Specifications:
jfif (jpeg) file format
Variable image resolution (dependent on input layer and
zoom
orwidth
/height
options
Base URL
This service will answer to requests on following URLs:
Ordered as http REST parameters (mandatory parameters only):
https://api.gic.org/images/GetImage/{imagename}/{layer}?token={token}
Base URL with parameters defined as a mix of REST and Key Value Pairs
zoom
https://api.gic.org/images/GetImage/{imagename}/{layer}/{zoom}&token={token}
width/height
https://api.gic.org/images/GetImage/{imagename}/{layer}?width={width}&height={height}&token={token}
Base URL with all parameters defined:
zoom
https://api.gic.org/images/GetImage?imagename={imagename}&layer={layer}&zoom={zoom}&token={token}
width/height
https://api.gic.org/images/GetImage?imagename={imagename}&layer={layer}&width={width}&height={height}&token={token}
Parameters
Parameter | Parameter Type | Data Type | Description | Example Format | Notes |
---|---|---|---|---|---|
Mandatory: | |||||
| Ordered REST (1st) - or - Key Value Pair (KVP) | string | Only the image referred to by this parameter will be returned. | Ordered REST: | The |
| Ordered REST (2nd) - or - Key Value Pair | string | The layer(s) with which to search for coverage. If no layer is defined, coverage from all layers will be returned.
| Ordered REST: KVP: | It is possible that images from different layers may have the same file name. The imagery/content will be different. |
| Key Value Pair | string | The token used to authenticate the requests. |
| Use the Authenticate Service to receive a token. |
Optional - Method of defining image resolution: | |||||
| |||||
| Ordered REST (3rd) - or - Key Value Pair | integer | The zoom level of the returned image. 0 = Full Resolution | Ordered REST: KVP: | |
| |||||
| Key Value Pair | integer |
|
| |
| Key Value Pair | integer |
|
|
Examples
PJ Hoffmaster State Park, Michigan - Demonstrating zoom
https://api.gic.org//images/GetImage/2020~us-mi-muskegon-2020~images~E_20200821_135253_57_32A6ECB8DE90BF6_rgb/bluesky-ultra/4
Success
Error
JSON Error message.
________________________________________________________________________________________
Holland, Michigan - Demonstrating width
and height
https://api.gic.org//images/GetImage/2019~us-mi-holland_leica-2019~images~NS_20190505_192620_61_32AC703326C02B3_rgb/bluesky-ultra-g?width=800&height=600
Success
Error
JSON Error message.
Need help? Create a support ticket | support@vexcelgroup.com