Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: RasterDataSource

require(["esri/layers/RasterDataSource"], function(RasterDataSource) { /* code goes here */ });

Description

(Added at v2.7)
The RasterDataSource class defines and provides information about a file-based raster that resides in a registered raster workspace. Requires ArcGIS Server 10.1 or greater

See also

Samples

Search for samples that use this class.

Class hierarchy

esri/layers/DataSource
|_esri/layers/RasterDataSource

Constructors

NameSummary
new RasterDataSource(json?)Creates a new RasterDataSource object.

Properties

NameTypeSummary
dataSourceNameStringThe name of a raster that resides in the registered workspace.
workspaceIdStringThe workspace id for the registered raster workspace.

Methods

NameReturn typeSummary
toJson()ObjectConverts object to its ArcGIS Server JSON representation.
Constructor Details

new RasterDataSource(json?)

Creates a new RasterDataSource object.
Parameters:
<Object> json Optional JSON object representing the RasterDataSource.
Sample:
require([
  "esri/layers/RasterDataSource", ... 
], function(RasterDataSource, ... ) {
  var dataSource = new RasterDataSource();
  ...
});
Property Details

<String> dataSourceName

The name of a raster that resides in the registered workspace.
Sample:

dataSource.dataSourceName = "sde.SDE.usacatalog"

<String> workspaceId

The workspace id for the registered raster workspace.
Sample:

dataSource.workspaceId = "d203_db";

Method Details

toJson()

Converts object to its ArcGIS Server JSON representation.
Return type: Object
Show Modal