C# Class MapAround.DataProviders.GDALRasterProvider

Provides access to rasters via GDAL library.

GDAL library is distributed under the terms of X11/ MIT License:

Copyright (c) 2000, Frank Warmerdam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Inheritance: IDisposable, IRasterProvider
Mostrar archivo Open project: gkrsu/maparound.example Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the GdalRasterProvider.

GDALRasterProvider ( string fileName ) : System

Initializes a new instance of the MapAround.DataProviders.GDALRasterProvider.

QueryRaster ( int srcX, int srcY, int srcWidth, int srcHeight, int maxDestWidth, int maxDestHeight, MapAround bounds, MapAround receiver ) : void

Retreives a chunk of the raster.

Private Methods

Method Description
Dispose ( bool disposing ) : void
writePixel ( int x, double intVal, int iPixelSize, int ch, byte row ) : void

Method Details

Dispose() public method

Disposes the GdalRasterProvider.
public Dispose ( ) : void
return void

GDALRasterProvider() public method

Initializes a new instance of the MapAround.DataProviders.GDALRasterProvider.
public GDALRasterProvider ( string fileName ) : System
fileName string Image file name
return System

QueryRaster() public method

Retreives a chunk of the raster.
public QueryRaster ( int srcX, int srcY, int srcWidth, int srcHeight, int maxDestWidth, int maxDestHeight, MapAround bounds, MapAround receiver ) : void
srcX int A minimum X coordinate of the querying area
srcY int A minimum Y coordinate of the querying area
srcWidth int A width of the querying area
srcHeight int A height of the querying area
maxDestWidth int A maximum width in pixels of the resulting raster
maxDestHeight int A maximum height in pixels of the resulting raster
bounds MapAround A bounds of querying area on the map
receiver MapAround An object receiving raster
return void