Raster layer object

Tip: After you access the raster layer object, the following methods and properties are applicable on the raster layer.

Properties:

uuid

Returns the universally unique identifier (UUID) of the raster layer.

Returns:

uuid: Returns uuid string.

Example:

const rasterLayerUuid = rasterLayer.uuid;

name

Returns the name of the raster layer.

Returns:

String: Returns raster layer name.

Example:

const rasterLayerName = rasterLayer.name;

display_name

Returns the display name of the raster layer.

Returns:

String: Returns display name of raster layer.

Example:

const rasterLayerDisplayName = rasterLayer.display_name;

description

Returns the description of the raster layer.

Returns:

String: Returns raster layer description.

Example:

const rasterLayerDescription = rasterLayer.description;

created_at

Returns the time and date that the raster layer was created.

Returns:

Date: Returns raster layer created time.

Example:

const rasterLayerCreatedTime = rasterLayer.created_at;

last_modified_at

Returns the time and date that the raster layer is updated.

Returns:

Date: Returns raster layer updated time.

Example:

const rasterLayerModifiedTime = rasterLayer.last_modified_at;

is_shared

Indicates whether the raster layer is shared or not.

Returns:

Boolean: If true, raster layer is shared.

Example:

const isShared = rasterLayer.is_shared;

id

Returns the raster layer id.

Returns:

Number: Returns raster layer id.

Example:

const rasterLayerId = rasterLayer.id;

owner_id

Returns the user ID that the raster layer belongs to.

Returns:

Number: Returns raster layer owner id.

Example:

const rasterLayerOwnerId = rasterLayer.owner_id;

size

Returns the existing raster layer size in byte.

Returns:

Number: Returns raster layer size.

Example:

const rasterLayerSize = rasterLayer.size;

dtype

Returns the existing raster layer data type.

Returns:

String: Returns data type of raster layer.

Example:

const rasterLayerDataType= rasterLayer.dtype;

band_count

Returns number of the raster layer bands.

Returns:

Number: Returns number of the raster layer bands.

Example:

const rasterLayerBandCount= rasterLayer.band_count;

width

Returns the raster layer width in pixel.

Returns:

Number: Returns number of raster layer width in pixel.

Example:

const rasterLayerWidth = rasterLayer.width;

height

Returns the raster layer height in pixel.

Returns:

Number: Returns number of raster layer height in pixel.

Example:

const rasterLayerHeight= rasterLayer.height;

extent

Returns the coordinates of the raster layer extent in the Web Mercator coordinate system.

Returns:

Array: Returns an array contains [southwest x, southwest y,  northeast x, northeast y].

Example:

const rasterLayerExtent = rasterLayer.extent;

Leave a comment

Your email address will not be published. Required fields are marked *