Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour authored Feb 19, 2022
1 parent 2c185e5 commit b00e5be
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,19 @@ const result = geowarp({
// optional
// array of band indexes to read from
// use this if your expr function only uses select bands
read_bands: [0, 1, 2]
read_bands: [0, 1, 2],

// optional
// polygon or multi-polygons defining areas to cut out (everything outside becomes no data)
// terminology taken from https://gdal.org/programs/gdalwarp.html
cutline: geojson,

// if you specify a cutline, this is required
cutline_srs: 4326,

// function to reproject [x, y] point from cutline_srs to out_srs
// required if you specify a cutline and the cutline is a different srs than out_srs,
cutline_forward: proj4("EPSG:4326", "EPSG:3857").forward,
});
```
result is
Expand Down

0 comments on commit b00e5be

Please sign in to comment.