You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,9 @@ await createTile({
61
61
// undefined - same as auto
62
62
tile_array_types_strategy:"untyped",
63
63
64
+
// over-ride default "no data" value in output tile
65
+
tile_no_data:0,
66
+
64
67
// projection of the tile
65
68
// as an EPSG code
66
69
tile_srs:3857,
@@ -76,7 +79,9 @@ await createTile({
76
79
tile_resolution:0.5,
77
80
78
81
// whether to use overviews if available
79
-
use_overview,
82
+
// default is true
83
+
// setting to false will mean the usage of the highest resolution data
84
+
use_overview:false,
80
85
81
86
// optional, default is false
82
87
// enable experimental turbocharging via proj-turbo
@@ -85,7 +90,18 @@ await createTile({
85
90
```
86
91
87
92
## advanced usage
88
-
### Over-riding geotiff srs
93
+
### over-riding geotiff no data value
94
+
If for some reason your geotiff has values that should be treated as no data,
95
+
but this isn't properly set in the metadata, you can over-ride the no data value
96
+
```js
97
+
awaitcreateTile({
98
+
geotiff,
99
+
geotiff_no_data:-32767,
100
+
// rest is the same
101
+
})
102
+
```
103
+
104
+
### over-riding geotiff srs
89
105
If for some reason geotiff-tile can't parse the correct projection from your geotiff, you can manually
90
106
specify the projection via the geotiff_srs parameter.
91
107
```js
@@ -96,7 +112,7 @@ await createTile({
96
112
})
97
113
```
98
114
99
-
### Image Pixel Coordinates and Simple SRS
115
+
### image pixel coordinates and simple srs
100
116
You can also select pixels using a "simple" spatial reference system where the bottom left of your data
101
117
is the origin [0, 0] and the top-right corner is [width, height]. This is inspired by [Leaflet's Simple CRS](https://leafletjs.com/examples/crs-simple/crs-simple.html).
0 commit comments