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 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
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.

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 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15

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 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 100.15
In This Article
Back to top Copyright © 2022 Esri.