AscGridSource¶
Namespace: ThinkGeo.Core
A grid read from an ESRI ASCII Grid file (.asc / .grd): its size, extent and no-data value from the header, its values from the rows. The file is opened on each GridSource.FillValues(GridSlot[]) call and only the rows holding requested cells are read, so a large grid costs what the view shows; a renderer that needs every cell - the GPU map's fills and contours - reads the file whole.
public sealed class AscGridSource : GridSource
Inheritance object → GridSource → AscGridSource
Properties¶
ColumnCount¶
How many cells across.
public int ColumnCount { get; }
Property Value¶
RowCount¶
How many cells down.
public int RowCount { get; }
Property Value¶
Extent¶
The ground the grid covers, in GridSource.SourceProjection.
public RectangleShape Extent { get; }
Property Value¶
SourceProjection¶
The coordinate system GridSource.Extent is in, or null when it is the map's.
public Projection SourceProjection { get; }
Property Value¶
Constructors¶
AscGridSource(string, Projection)¶
public AscGridSource(string pathFilename, Projection sourceProjection)
Parameters¶
pathFilename string
Path to the ESRI ASCII Grid file.
sourceProjection Projection
The coordinate system the file's coordinates are in - the file does not say - or null
when it is the map's.
Methods¶
FillValuesCore(GridSlot[])¶
protected void FillValuesCore(GridSlot[] samples)
Parameters¶
samples GridSlot[]
Returns¶
Events¶
Changed¶
Raised when the values change, so the maps drawing the grid draw it again.
public event EventHandler Changed;