spatialdev/geotrellis-chatta-demo

Name: geotrellis-chatta-demo

Owner: SpatialDev

Description: Demo of GeoTrellis - weighted overlay and zonal summary for University of Tennessee at Chattanooga.

Forked from: geotrellis/geotrellis-chatta-demo

Created: 2017-02-06 20:26:13.0

Updated: 2017-10-25 13:31:36.0

Pushed: 2017-02-01 17:59:54.0

Homepage: null

Size: 92865

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

GeoTrellis Chattanooga model demo

This is a demo of GeoTrellis functionality. The demo consists of two parts: the tile ingest process and demo server to query ingested data.

Dependencies
Usage

See the Makefile for full details.

Command | Action ——- | ——- make build | Build ingest/server code make ingest | Ingest data for use by server make ingest-docker | Ingest via docker make server | Start a test server at localhost:8777 make image | Generate a Docker image for deployment

Details

The demo covers Chattanooga with different Byte tiles. (In fact each tile is essentially of type Bit because they only contain the values {0, 1}). Each tile is ingests into it's own layer, and the resulting map consists of layers which consist of combinations of differently-weighted source layers (a weighted overlay).

API routes:
Color Ramps

List of available color ramps to color weighted overlay:

Color Breaks

Get Parameters: layers, weights, numBreaks.

Calculates breaks for combined layers by weights with specified breaks amount.

Weighted Overlay:

Get Parameters: layers, weights, breaks, bbox, colors: [default: 4], colorRamp: [default: "blue-to-red"], mask.

It is a TMS layer service that gets {zoom}/{x}/{y}, passed a series of layer names and weights, and returns PNG TMS tiles of the weighted overlay. It also takes the breaks that were computed using the gt/breaks service. If the mask option is set to a polygon, {zoom}/{x}/{y} tiles masked by that polygon would be returned.

Zonal Summary:

Get Parameters: polygon, layers, weights.

This service takes layers, weights and a polygon. It will compute a weighted summary of the area under the polygon.

Running Demo with GeoDocker Cluster

Quick clarification:

This description is a bit more generic, and describes dependent Spark server run.

To compile and run this demo, we prepared an environment. To run cluster we have a slightly-modified docker-compose.yml file:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.