GdalDataset Class Reference

Represents a light wrapper around GDAL raster dataset which allows to perform some operations without using more advanced classes like RasterSource or GridSource. More...

Collaboration diagram for GdalDataset:
Collaboration graph

Public Member Functions

void Close ()
 Closes the datasource. More...
 
string GetSubDatasetName (int subDatasetIndex)
 
bool Open (string Filename, bool readOnly)
 Opens datasource from the specified filename. More...
 
bool SetGeoTransform (double xLeft, double dX, double yProjOnX, double yTop, double xProjOnY, double dY)
 Sets transformation parameters for GDAL datasource. More...
 
bool SetProjection (string Projection)
 Sets projection of the datasource More...
 

Properties

GdalDriver Driver [get]
 Gets the driver which manages this datasource. More...
 
int SubDatasetCount [get]
 

Detailed Description

Represents a light wrapper around GDAL raster dataset which allows to perform some operations without using more advanced classes like RasterSource or GridSource.

New API 4.9.4:
Added in version 4.9.4

Member Function Documentation

◆ Close()

void GdalDataset.Close ( )

Closes the datasource.

◆ GetSubDatasetName()

string GdalDataset.GetSubDatasetName ( int  subDatasetIndex)

◆ Open()

bool GdalDataset.Open ( string  Filename,
bool  readOnly 
)

Opens datasource from the specified filename.

Parameters
FilenameThe filename.
readOnlyIf set to true the datasource will be opened in read only mode.
Returns
True on success.

◆ SetGeoTransform()

bool GdalDataset.SetGeoTransform ( double  xLeft,
double  dX,
double  yProjOnX,
double  yTop,
double  xProjOnY,
double  dY 
)

Sets transformation parameters for GDAL datasource.

Parameters
xLeftThe x coordinate of the top left pixel.
dXThe width of a pixel.
yProjOnXThe projection of Y on X axis.
yTopThe y coordinate of the top left pixel.
xProjOnYThe projection of X on Y axis.
dYThe height of a pixel.
Returns
Exceptions
System.NotImplementedException

◆ SetProjection()

bool GdalDataset.SetProjection ( string  Projection)

Sets projection of the datasource

Parameters
ProjectionThe projection.
Returns
True on success.

Property Documentation

◆ Driver

GdalDriver GdalDataset.Driver
get

Gets the driver which manages this datasource.

◆ SubDatasetCount

int GdalDataset.SubDatasetCount
get