Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trailbehind/tilelive-imageserver
Tilelive source for ImageServer endpoints.
https://github.com/trailbehind/tilelive-imageserver
Last synced: 3 days ago
JSON representation
Tilelive source for ImageServer endpoints.
- Host: GitHub
- URL: https://github.com/trailbehind/tilelive-imageserver
- Owner: trailbehind
- License: bsd-3-clause
- Created: 2021-01-12T22:28:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-13T23:01:10.000Z (almost 4 years ago)
- Last Synced: 2023-04-21T10:26:42.534Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tilelive-imageserver
This is a tilelive source for ArcGIS ImageServer endpoints.
The documentation used for implementation is [here](https://developers.arcgis.com/rest/services-reference/image-service.htm).
## Usage
`imageserver:` URIs are supported, with the following parameters available:
- `source`: the ImageServer URL
- `rasterFunction`: the rasterFunction provided by the source server to apply to the data. (Optional)
- `minzoom`: optional, default 0
- `maxzoom`: optional, default 14
- `baseTileSize`: base tile size in pixels (default 256)
- `scale`: integer to scale base tile size (default 1)
- `format`: image format, currently png and jpg are supported.**Examples**:
- USGS 3DEP Multidimensional Hillshade: `imageserver:///?source=https://elevation.nationalmap.gov/arcgis/rest/services/3DEPElevation/ImageServer/&rasterFunction=Hillshade Multidirectional&maxzoom=14`
## Source/Data Testing
**Local testing**:
1. `node test.js` should place a single tile in the root directory if sucessful.
**Testing with tessera**:
1. Install this source globally with `npm install -g .`
2. Install `tessera`
3. Run `tessera` with the tilelive module included: `tessera --require=tilelive-imageserver "imageserver:///?source=https://elevation.nationalmap.gov/arcgis/rest/services/3DEPElevation/ImageServer/&rasterFunction=Hillshade Multidirectional&maxzoom=14"`
4. View `localhost:8080` in browser