{"id":6219,"date":"2023-01-04T11:36:16","date_gmt":"2023-01-04T08:06:16","guid":{"rendered":"https:\/\/en.geobox.ir\/developers\/?post_type=docs&#038;p=6219"},"modified":"2023-01-26T13:37:10","modified_gmt":"2023-01-26T10:07:10","slug":"working-with-raster","status":"publish","type":"docs","link":"https:\/\/en.geobox.ir\/developers\/docs\/raster\/working-with-raster\/","title":{"rendered":"Raster layer object"},"content":{"rendered":"<p>Tip: After you access the <a href=\"https:\/\/en.geobox.ir\/developers\/docs\/raster\/working-with-rasterlayer\/#1-toc-title\">raster layer<\/a> object, the following methods and properties are applicable on the raster layer.<\/p>\n<h2>Properties:<\/h2>\n<h3>uuid<\/h3>\n<p>Returns the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Universally_unique_identifier\">universally unique identifier\u00a0(UUID)<\/a> of the raster layer.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\"><a href=\"https:\/\/www.geobox.ir\/\">uuid<\/a>: Returns uuid string.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerUuid = rasterLayer.uuid;<\/pre>\n<h3>name<\/h3>\n<p>Returns the name of the raster layer.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">String: Returns raster layer name.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerName = rasterLayer.name;<\/pre>\n<h3>display_name<\/h3>\n<p>Returns the display name of the raster layer.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">String: Returns display name of raster layer.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerDisplayName = rasterLayer.display_name;<\/pre>\n<h3>description<\/h3>\n<p>Returns the description of the raster layer.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">String: Returns raster layer description.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerDescription = rasterLayer.description;<\/pre>\n<h3>created_at<\/h3>\n<p>Returns the time and date that the raster layer was created.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Date: Returns raster layer created time.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerCreatedTime = rasterLayer.created_at;<\/pre>\n<h3>last_modified_at<\/h3>\n<p>Returns the time and date that the raster layer is updated.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Date: Returns raster layer updated time.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerModifiedTime = rasterLayer.last_modified_at;<\/pre>\n<h3>is_shared<\/h3>\n<p>Indicates whether the raster layer is shared or not.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Boolean: If true, raster layer is shared.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const isShared = rasterLayer.is_shared;<\/pre>\n<h3>id<\/h3>\n<p>Returns the raster layer id.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Number: Returns raster layer id.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerId = rasterLayer.id;<\/pre>\n<h3>owner_id<\/h3>\n<p>Returns the user ID that the raster layer belongs to.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Number: Returns raster layer owner id.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerOwnerId = rasterLayer.owner_id;<\/pre>\n<h3>size<\/h3>\n<p>Returns the existing raster layer size in byte.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Number: Returns raster layer size.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerSize = rasterLayer.size;<\/pre>\n<h3>dtype<\/h3>\n<p>Returns the existing raster layer data type.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">String: Returns data type of raster layer.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerDataType= rasterLayer.dtype;<\/pre>\n<h3>band_count<\/h3>\n<p>Returns number of the raster layer bands.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Number: Returns number of the raster layer bands.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerBandCount= rasterLayer.band_count;<\/pre>\n<h3>width<\/h3>\n<p>Returns the raster layer width in pixel.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Number: Returns number of raster layer width in pixel.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerWidth = rasterLayer.width;<\/pre>\n<h3>height<\/h3>\n<p>Returns the raster layer height in pixel.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Number: Returns number of raster layer height in pixel.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerHeight= rasterLayer.height;<\/pre>\n<h3>extent<\/h3>\n<p>Returns the coordinates of the raster layer extent in the Web Mercator coordinate system.<\/p>\n<p id=\"zoomin-returns\" class=\"unprose txt-m mb3 anchor mt12\"><strong>Returns:<\/strong><\/p>\n<p class=\"unprose txt-m mb3 anchor mt12\">Array: Returns an array contains [southwest x, southwest y,\u00a0 northeast x, northeast y].<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const rasterLayerExtent = rasterLayer.extent;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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\u00a0(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: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[68],"doc_tag":[],"class_list":["post-6219","docs","type-docs","status-publish","hentry","doc_category-raster"],"_links":{"self":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/comments?post=6219"}],"version-history":[{"count":13,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6219\/revisions"}],"predecessor-version":[{"id":6668,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/docs\/6219\/revisions\/6668"}],"wp:attachment":[{"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/media?parent=6219"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_category?post=6219"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/en.geobox.ir\/developers\/wp-json\/wp\/v2\/doc_tag?post=6219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}