Get the extent of a raster data source

Returns the extent of a raster data source, for example to zoom to it on a map.

Required role: ORG_VIEWER, and the current user must have the VIEW permission on the data source.

Data source

The data source must be a raster data source, and READY (400 otherwise).

CRS (crs)

The CRS of the extent, such as EPSG:4326 or EPSG:3857. By default, the CRS of the raster. The extent is computed from the raster's extent in longitude/latitude: in another CRS, it can be slightly larger than the raster.

Response

x1, y1 (minimum) and x2, y2 (maximum) coordinates, in the requested CRS. With EPSG:4326, x is the longitude and y the latitude.

Data sources shared by another organization

organization is the organization that owns the data source, not necessarily yours. To read the extent of a data source shared with your organization, use the owner's organization id (the organizationId returned by the map configuration service's GET /organizations/{organization}/datasources).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Id of the organization that owns the data source (yours, or the one that shared it)

string
required
length ≥ 1

Id of the raster data source

Query Params
string

CRS of the extent, such as EPSG:4326. By default, the CRS of the raster.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json