-
Notifications
You must be signed in to change notification settings - Fork 2
/
geowarp.d.ts
69 lines (68 loc) · 2.34 KB
/
geowarp.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
type bbox = Readonly<[number, number, number, number]> | Readonly<[string, string, string, string]> | number[] | string[];
type srs = number | string;
type reproject = (pt: [number, number]) => [number, number];
type data = number[] | number[][] | number[][][] | any;
export default function geowarp(options: {
debug_level?: number;
forward?: reproject;
inverse?: reproject;
in_data: data;
in_bbox: bbox;
in_geotransform?: number[] | Readonly<[number, number, number, number, number, number]> | undefined;
in_layout?: string;
in_no_data?: number | number[] | readonly number[] | null | undefined;
in_srs?: srs | undefined;
in_width: number;
in_height: number;
out_array_types?:
| ReadonlyArray<
| "Array"
| "Int8Array"
| "Uint8Array"
| "Uint8ClampedArray"
| "Int16Array"
| "Uint16Array"
| "Float32Array"
| "Float64Array"
| "BigInt64Array"
| "BigUint64Array"
>
| undefined;
out_bands?: number[] | Readonly<number[]> | undefined;
out_bbox?: bbox | undefined;
out_data?: data;
out_layout?: string | undefined;
out_no_data?: number | null | undefined;
out_resolution?: number[] | [number, number] | Readonly<number[]> | Readonly<[number, number]>;
out_srs?: srs | undefined;
out_pixel_depth?: number | undefined;
out_height: number;
out_width: number;
method?: string | ((arg: { values: number[] }) => number) | undefined;
round?: boolean | undefined;
row_start?: number | undefined;
row_end?: number | undefined;
theoretical_min?: number | undefined;
theoretical_max?: number | undefined;
expr?: ((arg: { pixel: number[] }) => number[]) | undefined;
read_bands?: number[] | undefined;
cutline?: any;
cutline_bbox?: bbox | undefined;
cutline_srs?: number | string | undefined;
cutline_forward?: reproject | undefined;
cutline_strategy?: "inside" | "outside" | string | undefined;
insert_null_strategy?: "skip" | "insert" | undefined;
skip_no_data_strategy?: "any" | "all" | undefined;
cache_process?: true | false | boolean | undefined;
turbo?: boolean | undefined;
}): {
data: number[] | number[][] | number[][][];
out_bands: number[];
out_height: number;
out_layout: string;
out_pixel_depth: number | undefined;
out_pixel_height: number;
out_pixel_width: number;
read_bands: number[];
out_width: number;
};