All Downloads are FREE. Search and download functionalities are using the official Maven repository.

otrellis.geotrellis-server-stac-example_2.12.4.6.0.source-code.application.conf Maven / Gradle / Ivy

Go to download

GeoTrellis Server is a set of components designed to simplify viewing, processing, and serving raster data from arbitrary sources with an emphasis on doing so in a functional style.

The newest version!
wms = {
    parent-layer-meta = {
        name = "Geotrellis WMS Parent Layer"
        title = "WMS Parent Title"
        description = "Top level metadata that is inherited by children layers"
        supported-projections = [
            4326,
            3410,
            3978,
            4617,
            3979,
            3413,
            3857,
            26916
        ]
    }
    service-metadata = {
        name = "WMS"
        title = "GeoTrellis Service"
        online-resource = {}
        keyword-list = {
            keyword = ["geotrellis", "catalog"]
        }
        contact-information = {
            contact-person-primary = {
                contact-person = "Eugene Cheipesh"
                contact-organization = "Azavea"
            }
            contact-position = "Developer"
            contact-address = {
                address-type = "Office"
                address = "990 Spring Garden St."
                city = "Philadelphia"
                state-or-province = "PA",
                post-code = "19087",
                country = "USA"
            }
        }
    }
    layer-definitions = [
        ${layers.nlcd-2011},
        ${layers.addition-house-income},
        ${layers.us-ned},
        ${layers.us-ned-slope},
        ${layers.us-ned-hillshade},
        ${layers.us-census-median-household-income},
        ${layers.markham},
        ${layers.stac-lc8-red},
        ${layers.stac-lc8-green},
        ${layers.stac-lc8-blue},
        ${layers.stac-lc8-rgb}
    ]
}

wcs = {
    service-metadata = {
        identification = {
            title = "WCS"
            description = "Geotrellis WCS Service"
            keywords = []
            profile = ["http://azavea.com/wcs-profile"]
            fees = ""
            access-constraints = []
        }
        provider = {
            name = "Azavea"
            site = "https://www.azavea.com"
        }
    }
    layer-definitions = [
        ${layers.us-ned},
        ${layers.us-ned-slope},
        ${layers.us-ned-hillshade},
        ${layers.us-census-median-household-income},
        ${layers.markham},
        ${layers.stac-lc8-red},
        ${layers.stac-lc8-green},
        ${layers.stac-lc8-blue},
        ${layers.stac-lc8-rgb}
    ]
    supported-projections = [
        4326,
        3410,
        3978,
        4617,
        3979,
        3413,
        3857,
        26916
    ]
}

wmts = {
    service-metadata = {
        identification = {
            title = "WMTS"
            description = "Geotrellis WMTS Service"
            keywords = []
            profile = ["http://azavea.com/wmts-profile"]
            fees = ""
            access-constraints = []
        }
        provider = {
            name = "Azavea"
            site = "https://www.azavea.com"
        }
    }
    layer-definitions = [
        ${layers.us-ned},
        ${layers.us-ned-slope},
        ${layers.us-ned-hillshade},
        ${layers.us-census-median-household-income},
        ${layers.markham},
        ${layers.stac-lc8-red},
        ${layers.stac-lc8-green},
        ${layers.stac-lc8-blue},
        ${layers.stac-lc8-rgb}
    ]
    tile-matrix-sets = [
        {
            identifier = "GoogleMapsCompatible",
            supported-crs = 3857,
            title = "GoogleMapCompatible",
            abstract = "Google Maps compatible tile matrix set",
            well-known-scale-set = "urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible",
            tile-matrix = [
                {
                    identifier = "0",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [1, 1, 256, 256]
                },
                {
                    identifier = "1",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [2, 2, 256, 256]
                },
                {
                    identifier = "2",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [4, 4, 256, 256]
                },
                {
                    identifier = "3",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [8, 8, 256, 256]
                },
                {
                    identifier = "4",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [16, 16, 256, 256]
                },
                {
                    identifier = "5",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [32, 32, 256, 256]
                },
                {
                    identifier = "6",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [64, 64, 256, 256]
                },
                {
                    identifier = "7",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [128, 128, 256, 256]
                },
                {
                    identifier = "8",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [256, 256, 256, 256]
                },
                {
                    identifier = "9",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [512, 512, 256, 256]
                },
                {
                    identifier = "10",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [1024, 1024, 256, 256]
                },
                {
                    identifier = "11",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [2048, 2048, 256, 256]
                },
                {
                    identifier = "12",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [4096, 4096, 256, 256]
                },
                {
                    identifier = "13",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [8192, 8192, 256, 256]
                },
                {
                    identifier = "14",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [16384, 16384, 256, 256]
                },
                {
                    identifier = "15",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [32768, 32768, 256, 256]
                },
                {
                    identifier = "16",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [65536, 65536, 256, 256]
                },
                {
                    identifier = "17",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [131072, 131072, 256, 256]
                },
                {
                    identifier = "18",
                    extent = [-20037508.34278925, -20037508.34278925, 20037508.34278925, 20037508.34278925],
                    tile-layout = [262144, 262144, 256, 256]
                }
            ]
        }
    ]
}

layers = {
    stac-lc8-red = {
        type = "stacsourceconf"
        with-gdal = false
        name = "stac-lc8-red"
        title = "Landsat LayerUS Red"
        collection = "landsat-8-l1"
        asset = "^B4$"
        asset-limit = 1000
        source = "http://localhost:9090/"
        ignore-time = false
        default-style = "red-to-blue"
        time-default = "oldest"
        compute-time-positions = false
        time-format = "interval"
        parallel-mosaic = false
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-green = {
        type = "stacsourceconf"
        with-gdal = false
        name = "stac-lc8-green"
        title = "Landsat LayerUS Green"
        collection = "landsat-8-l1"
        asset = "^B3$"
        asset-limit = 1000
        source = "http://localhost:9090/"
        ignore-time = false
        default-style = "red-to-blue"
        compute-time-positions = false
        parallel-mosaic = false
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-blue = {
        type = "stacsourceconf"
        with-gdal = false
        name = "stac-lc8-blue"
        title = "Landsat LayerUS Blue"
        collection = "landsat-8-l1"
        asset = "^B2$"
        asset-limit = 1000
        source = "http://localhost:9090/"
        ignore-time = false
        default-style = "red-to-blue"
        compute-time-positions = false
        parallel-mosaic = false
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-rgb = {
        type = "mapalgebrasourceconf"
        name = "stac-lc8-rgb"
        title = "Landsat LayerUS RGB"
        algebra = {
            "args": [
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "stac-lc8-red",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 1.03,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 4120,
                    "oldMax": 18000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "name": "stac-lc8-green",
                                    "symbol": "rasterV"
                                }
                            ],
                            "min": 4000,
                            "max": 14000,
                            "symbol": "clamp"
                        }
                    ],
                    "oldMin": 4000,
                    "oldMax": 14000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "stac-lc8-blue",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 0.925,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 3700,
                    "oldMax": 12950,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                }
            ],
            "symbol": "rgb"
        }
        styles = [{ type = "rgbstyleconf" }]
    }

    lc8-red-mixed = {
        type = "rastersourceconf"
        name = "lc8-red-mixed",
        title = "lc8-red-mixed"
        source = "gdal+https://s3-us-west-2.amazonaws.com/landsat-pds/c1/L8/015/032/LC08_L1TP_015032_20180521_20180605_01_T1/LC08_L1TP_015032_20180521_20180605_01_T1_B4.TIF"

        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-mixed-lc8-rgb = {
        type = "mapalgebrasourceconf"
        name = "stac-mixed-lc8-rgb"
        title = "Landsat LayerUS RGB"
        algebra = {
            "args": [
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "lc8-red-mixed",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 1.03,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 4120,
                    "oldMax": 18000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "name": "stac-lc8-green",
                                    "symbol": "rasterV"
                                }
                            ],
                            "min": 4000,
                            "max": 14000,
                            "symbol": "clamp"
                        }
                    ],
                    "oldMin": 4000,
                    "oldMax": 14000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "stac-lc8-blue",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 0.925,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 3700,
                    "oldMax": 12950,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                }
            ],
            "symbol": "rgb"
        }
        styles = [{ type = "rgbstyleconf" }]
    }

    stac-lc8-red-us = {
        type = "stacsourceconf"
        name = "stac-lc8-red-us"
        title = "Landsat LayerUS Red"
        layer = "layer-us"
        asset = "^B4$"
        asset-limit = 1000
        source = "http://localhost:9090/"
        ignore-time = false
        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-green-us = {
        type = "stacsourceconf"
        name = "stac-lc8-green-us"
        title = "Landsat LayerUS Green"
        layer = "layer-us"
        asset = "^B3$"
        asset-limit = 1000
        source = "http://localhost:9090/"
        default-style = "red-to-blue"
        ignore-time = false
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-blue-us = {
        type = "stacsourceconf"
        name = "stac-lc8-blue-us"
        title = "Landsat LayerUS Blue"
        layer = "layer-us"
        asset = "^B2$"
        asset-limit = 1000
        source = "http://localhost:9090/"
        default-style = "red-to-blue"
        ignore-time = false
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-rgb-us = {
        type = "mapalgebrasourceconf"
        name = "stac-lc8-rgb-us"
        title = "Landsat LayerUS RGB"
        algebra = {
            "args": [
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "stac-lc8-red-us",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 1.03,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 4120,
                    "oldMax": 18000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "name": "stac-lc8-green-us",
                                    "symbol": "rasterV"
                                }
                            ],
                            "min": 4000,
                            "max": 14000,
                            "symbol": "clamp"
                        }
                    ],
                    "oldMin": 4000,
                    "oldMax": 14000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "stac-lc8-blue-us",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 0.925,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 3700,
                    "oldMax": 12950,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                }
            ],
            "symbol": "rgb"
        }
        styles = [{ type = "rgbstyleconf" }]
    }

    stac-lc8-red-pa = {
        type = "stacsourceconf"
        name = "stac-lc8-red-pa"
        title = "Landsat LayerPA Red"
        layer = "layer-pa"
        asset = "^B4$"
        source = "http://localhost:9090/"
        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-green-pa = {
        type = "stacsourceconf"
        name = "stac-lc8-green-pa"
        title = "Landsat LayerPA Green"
        layer = "layer-pa"
        asset = "^B3$"
        source = "http://localhost:9090/"
        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-blue-pa = {
        type = "stacsourceconf"
        name = "stac-lc8-blue-pa"
        title = "Landsat LayerPA Blue"
        layer = "layer-pa"
        asset = "^B2$"
        source = "http://localhost:9090/"
        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }

    stac-lc8-rgb-pa = {
        type = "mapalgebrasourceconf"
        name = "stac-lc8-rgb-pa"
        title = "Landsat LayerPA RGB"
        algebra = {
            "args": [
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "stac-lc8-red-pa",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 1.03,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 4120,
                    "oldMax": 18000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "name": "stac-lc8-green-pa",
                                    "symbol": "rasterV"
                                }
                            ],
                            "min": 4000,
                            "max": 14000,
                            "symbol": "clamp"
                        }
                    ],
                    "oldMin": 4000,
                    "oldMax": 14000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "stac-lc8-blue-pa",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 0.925,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 3700,
                    "oldMax": 12950,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                }
            ],
            "symbol": "rgb"
        }
        styles = [{ type = "rgbstyleconf" }]
    }

    nlcd-2011 = {
        type = "rastersourceconf"
        name = "NLCD 2011",
        title = "National Land Cover Dataset 2011"
        source = "gt+s3://azavea-datahub/catalog?layer=nlcd-2011-epsg3857&zoom=13&band_count=1"

        default-style = "red-to-blue"
        styles = [
            {
                name = "official"
                title = "NLCD Official Color Classes"
                type = "colormapconf"
                color-map = ${color-maps.nlcd}
            },
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            },
            {
                name = "ndvi"
                title = "NDVI colors (for demonstration only)"
                type = "colormapconf"
                color-map = ${color-maps.ndvi}
            },
            {
                name = "interpolated-nlcd"
                title = "Interpolated NLCD colors (for demonstration only)"
                type = "interpolatedcolormapconf"
                color-map = ${interpolated-color-maps.almost-nlcd}
            },
            {
                name = "interpolated-ndvi"
                title = "Interpolated NDVI colors (for demonstration only)"
                type = "interpolatedcolormapconf"
                color-map = ${interpolated-color-maps.ndvi}
            }
        ]
    }
    us-census-median-household-income = {
        type = "rastersourceconf"
        name = "us-census-median-household-income"
        title = "US Sensus Median Household Income 20??"

        source = "gt+s3://azavea-datahub/catalog?layer=us-census-median-household-income-30m-epsg3857&zoom=12&band_count=1"
        styles = [
            {
                name = "interpolated-income"
                title = "Interpolated colors from red (low) to green (high) income"
                type = "interpolatedcolormapconf"
                color-map = ${interpolated-color-maps.income}
            }
        ]
    }
    us-ned = {
        type = "rastersourceconf"
        name = "us-ned"
        title = "US NED"
        source = "gt+s3://azavea-datahub/catalog?layer=us-ned-tms-epsg3857&zoom=14&band_count=1"
        default-style = "elevation-ramp"
        styles = [
            {
                type = "colorrampconf"
                name = "elevation-ramp"
                title = "Elevation Ramp"
                colors = ${color-ramps.elevation}
                stops = 90
            },
            {
                type = "colorrampconf"
                name = "elevation-ramp-clamped"
                title = "Elevation Ramp: 1000 - 3000m"
                colors = ${color-ramps.red-to-blue}
                stops = 90
                min-render = 1000
                max-render = 3000
                clamp-with-color = true
            },

        ]
    }
    addition-house-income = {
        type = "mapalgebrasourceconf"
        name = "addition-house-income"
        title = "test addition"
        algebra = {
            "args" : [
                {
                    "name" : "us-census-median-household-income",
                    "symbol" : "rasterV"
                },
                {
                    "name" : "us-census-median-household-income",
                    "symbol" : "rasterV"
                }
            ],
            "symbol" : "+"
        }
        styles = [
            {
                type = "colorrampconf"
                name = "red-to-blue"
                title = "Red To Blue"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }
    us-ned-slope = {
        type = "mapalgebrasourceconf"
        name = "us-ned-slope"
        title = "US NED Slope"
        algebra = {
            "args" : [
                {
                    "name" : "us-ned",
                    "symbol" : "rasterV"
                }
            ],
            "target" : "all",
            "symbol" : "fslope"
        }
        styles = [
            {
                type = "colorrampconf"
                name = "red-to-blue"
                title = "Red To Blue"
                colors = ${color-ramps.red-to-blue}
                stops = 64
                legends = [
                    {
                        format = "image/png"
                        width = 75
                        height = 10
                        online-resource = {
                            type = "simple"
                            href = "http://services.ga.gov.au/gis/rest/directories/capabilities/Northern_Australia_Land_Tenure/No_Value_Legend.png"
                        }
                    }
                ]
            }
        ]
    }
    us-ned-hillshade = {
        type = "mapalgebrasourceconf"
        name = "us-ned-hillshade"
        title = "US NED Hillshade"
        resample-method = "bilinear"
        overview-strategy = "auto-0"
        algebra = {
            "args" : [
                {
                    "name" : "us-ned",
                    "symbol" : "rasterV"
                }
            ],
            "azimuth" : 315.0,
            "altitude" : 45.0,
            "target" : "data",
            "symbol" : "fhillshade"
        }
        styles = [
            {
                type = "colorrampconf"
                name = "red-to-blue"
                title = "Red To Blue"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }
    markham = {
        type = "rastersourceconf"
        name = "markham"
        title = "1960-1974 - NAPL photos over Markham area"
        source = "gt+s3://geotrellis-demo/catalog/napl?layer=markham&zoom=18&band_count=1"
        default-style = "default"
        styles = [
            {
                type = "colorrampconf"
                name = "red-to-blue"
                title = "Red To Blue"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }
    lc8-blue = {
        type = "rastersourceconf"
        name = "lc8-blue",
        title = "lc8-blue"
        source = "gdal+https://s3-us-west-2.amazonaws.com/landsat-pds/L8/003/017/LC80030172015001LGN00/LC80030172015001LGN00_B2.TIF"

        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }
    lc8-green = {
        type = "rastersourceconf"
        name = "lc8-green",
        title = "lc8-green"
        source = "gdal+https://s3-us-west-2.amazonaws.com/landsat-pds/L8/003/017/LC80030172015001LGN00/LC80030172015001LGN00_B3.TIF"

        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }
    lc8-red = {
        type = "rastersourceconf"
        name = "lc8-red",
        title = "lc8-red"
        source = "gdal+https://s3-us-west-2.amazonaws.com/landsat-pds/L8/003/017/LC80030172015001LGN00/LC80030172015001LGN00_B4.TIF"

        default-style = "red-to-blue"
        styles = [
            {
                name = "red-to-blue"
                title = "Red To Blue"
                type = "colorrampconf"
                colors = ${color-ramps.red-to-blue}
                stops = 64
            }
        ]
    }
    lc8-rgb = {
        type = "mapalgebrasourceconf"
        name = "lc8-rgb"
        title = "lc8-rgb"
        algebra = {
            "args": [
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "lc8-red",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 1.03,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 4120,
                    "oldMax": 18000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "name": "lc8-green",
                                    "symbol": "rasterV"
                                }
                            ],
                            "min": 4000,
                            "max": 14000,
                            "symbol": "clamp"
                        }
                    ],
                    "oldMin": 4000,
                    "oldMax": 14000,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                },
                {
                    "args": [
                        {
                            "args": [
                                {
                                    "args": [
                                        {
                                            "name": "lc8-blue",
                                            "symbol": "rasterV"
                                        }
                                    ],
                                    "min": 4000,
                                    "max": 14000,
                                    "symbol": "clamp"
                                },
                                {
                                    "value": 0.925,
                                    "symbol": "dbl"
                                }
                            ],
                            "symbol": "*"
                        }
                    ],
                    "oldMin": 3700,
                    "oldMax": 12950,
                    "newMin": 0,
                    "newMax": 255,
                    "symbol": "normalize"
                }
            ],
            "symbol": "rgb"
        }
        styles = [{ type = "rgbstyleconf" }]
    }
}

color-ramps = {
    "red-to-blue": [
        0x2A2E7FFF, 0x3D5AA9FF, 0x4698D3FF, 0x39C6F0FF,
        0x76C9B3FF, 0xA8D050FF, 0xF6EB14FF, 0xFCB017FF,
        0xF16022FF, 0xEE2C24FF, 0x7D1416FF
    ]
    "elevation": [
        0x375A91FF, 0x2D82B9FF, 0x78B978FF, 0x91C882FF,
        0xB9DC91FF, 0xFFFFAAFF, 0xE6DC8CFF, 0xCDBE73FF,
        0xB49B55FF, 0x9B7D37FF, 0x6E3C00FF, 0xA59678FF,
        0xD7D7D7FF, 0xFFFFFFFF
    ]
}

color-maps = {
    "nlcd":  {
        11: 0x526095FF,
        12: 0xFFFFFFFF,
        21: 0xD28170FF,
        22: 0xEE0006FF,
        23: 0x990009FF,
        31: 0xBFB8B1FF,
        32: 0x969798FF,
        33: 0x382959FF,
        41: 0x579D57FF,
        42: 0x2A6B3DFF,
        43: 0xA6BF7BFF,
        51: 0xBAA65CFF,
        61: 0x45511FFF,
        71: 0xD0CFAAFF,
        81: 0xCCC82FFF,
        82: 0x9D5D1DFF,
        83: 0xCD9747FF,
        84: 0xA7AB9FFF,
        85: 0xE68A2AFF,
        91: 0xB6D8F5FF,
        92: 0xB6D8F5FF
    }
    "dem":  {
        -200: 0x375A91FF,
        -100: 0x2D82B9FF,
        0: 0x78B978FF,
        20: 0x91C882FF,
        60: 0xB9DC91FF,
        250: 0xFFFFAAFF,
        650: 0xE6DC8CFF,
        800: 0xCDBE73FF,
        1200: 0xB49B55FF,
        1500: 0x9B7D37FF,
        1800: 0x6E3C00FF,
        2000: 0xA59678FF,
        2500: 0xD7D7D7FF,
        3000: 0xFFFFFFFF
    }
    "ndvi": {
        -1.0: 0x1947B0FF,
        -0.7: 0x3961B7FF,
        -0.5: 0x5A7BBFFF,
        -0.4: 0x7B95C6FF,
        -0.3: 0x9CB0CEFF,
        -0.2: 0xBDCAD5FF,
        -0.1: 0xDEE4DDFF,
        "0.0": 0xFFFFE5FF,
        "0.1": 0xDAE4CAFF,
        "0.2": 0xB6C9AFFF,
        "0.3": 0x91AF94FF,
        "0.4": 0x6D9479FF,
        "0.5": 0x487A5EFF,
        "0.7": 0x245F43FF,
        "1.0": 0x004529FF
    }
}

interpolated-color-maps = {
    "ndvi": {
        "poles": {
            "-1.0": 0x770000FF,
            "0.0": 0xFF0000FF,
            "0.5": 0xFFFF00FF,
            "1.0": 0x006600FF
        }
        "clip-definition": "clip-none"
    }
    "almost-nlcd": {
        "poles": {
            "0.0": 0x0000FFFF,
            "50.0": 0x00FF00FF
            "100.0": 0xFF0000FF,
        }
        "clip-definition": "clip-both"
    }
    "income": {
        "poles": {
            "0.0": 0xFF0000FF,
            "75000.0": 0x777700FF
            "200000.0": 0x00FF00FF,
        }
        "clip-definition": "clip-both"
    }
}

geotrellis {
    blocking-thread-pool.threads = default

    raster.gdal {
        acceptable-datasets = ["SOURCE", "WARPED"]
        number-of-attempts = 1048576

        options {
            # GDAL_DISABLE_READDIR_ON_OPEN     = "YES"
            # CPL_VSIL_CURL_ALLOWED_EXTENSIONS = ".tif"
            # CPL_VSIL_GZIP_WRITE_PROPERTIES   = "NO"
            GDAL_MAX_DATASET_POOL_SIZE = "256"
            GDAL_CACHEMAX = "1000" # 500 for 20 nodes cluster
            # CPL_VSIL_CURL_CHUNK_SIZE         = "1048576"
            # VRT_SHARED_SOURCE                = "0"
            # CPL_DEBUG = "ON"
            # GDAL_HTTP_MAX_RETRY              = "10"
        }
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy