Constructors
constructor
- new Grid(MBR, data): Grid
-
Properties
MBR
bands
bands: number
cols
cols: number
data
data: number[][][]
rows
rows: number
shape
shape: number[]
Accessors
bandCount
- get bandCount(): number
-
Returns number
height
- get height(): number
-
Returns number
width
- get width(): number
-
Returns number
Methods
ConvertToGridMBR
- ConvertToGridMBR(MBR): null | MBR
-
Returns null | MBR
binarization
- binarization(band, threshold): number[][]
-
Parameters
-
band: number
-
threshold: number
Returns number[][]
fillInvalidValue
- fillInvalidValue(band): void
-
Returns void
getBand
- getBand(band): number[][]
-
Returns number[][]
getBandStatistics
- getBandStatistics(band): {
max: number;
mean: number;
min: number;
}
-
Returns {
max: number;
mean: number;
min: number;
}
-
max: number
-
mean: number
-
min: number
getCoordByGridCoord
- getCoordByGridCoord(GridCoord): [number, number]
-
Parameters
-
GridCoord: [number, number]
Returns [number, number]
getCoutourCode
- getCoutourCode(band, threshold, isPadding?): number[][]
-
Parameters
-
band: number
-
threshold: number
-
Optional
isPadding: boolean
Returns number[][]
getGridCoord
- getGridCoord(Point): null | [number, number]
-
Returns null | [number, number]
- 返回网格坐标,格式为:[row, col] 若输入点不在网格范围内,则返回 null
getMean
- getMean(band): number
-
Returns number
getShape
- getShape(): number[]
-
Returns number[]
getSorted1DArray
- getSorted1DArray(band): number[]
-
Returns number[]
getSubGrid
- getSubGrid(GridMBR, band?): number[][][]
-
Parameters
-
GridMBR: MBR
-
band: number[] = ...
Returns number[][][]
- 返回网格数据,格式为:[band][row][col]
getSubGridObj
- getSubGridObj(GridMBR, band?): Grid
-
Parameters
-
GridMBR: MBR
-
band: number[] = ...
- 返回网格数据,格式为:[band][row][col]
网格类(本质是三维数组):
WGS84
坐标系