Show / Hide Table of Contents

Constructor RasterLayer

RasterLayer(Raster)

Initializes a new instance of the RasterLayer class from a raster.

Declaration
public RasterLayer(Raster raster)
Parameters
Type Name Description
Raster raster

The service URI.

Exceptions
Type Condition
System.ArgumentNullException

source

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
Relevant samples
Raster layer (file): Create and use a raster layer made from a local raster file.

RasterLayer(String)

Initializes a new instance of the RasterLayer class from the specified raster data source.

Declaration
public RasterLayer(string path)
Parameters
Type Name Description
System.String path

Local path to a raster data source.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

RasterLayer(Item)

Initializes a new instance of the RasterLayer class with the given image service portal item.

Declaration
public RasterLayer(Item item)
Parameters
Type Name Description
Item item

Image service portal item.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8
In This Article
Back to top Copyright © 2022 Esri.