Represents a light wrapper around GDAL raster dataset which allows to perform some operations without using more advanced classes like RasterSource or GridSource.
More...
|
| 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...
|
| |
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
◆ Close()
| void GdalDataset.Close |
( |
| ) |
|
◆ GetSubDatasetName()
| string GdalDataset.GetSubDatasetName |
( |
int |
subDatasetIndex | ) |
|
◆ Open()
| bool GdalDataset.Open |
( |
string |
Filename, |
|
|
bool |
readOnly |
|
) |
| |
Opens datasource from the specified filename.
- Parameters
-
| Filename | The filename. |
| readOnly | If 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
-
| xLeft | The x coordinate of the top left pixel. |
| dX | The width of a pixel. |
| yProjOnX | The projection of Y on X axis. |
| yTop | The y coordinate of the top left pixel. |
| xProjOnY | The projection of X on Y axis. |
| dY | The height of a pixel. |
- Returns
- Exceptions
-
| System.NotImplementedException | |
◆ SetProjection()
| bool GdalDataset.SetProjection |
( |
string |
Projection | ) |
|
Sets projection of the datasource
- Parameters
-
| Projection | The projection. |
- Returns
- True on success.
◆ Driver
Gets the driver which manages this datasource.
◆ SubDatasetCount
| int GdalDataset.SubDatasetCount |
|
get |