GithubHelp home page GithubHelp logo

winnerlbm / imagemosaic-stac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshfix/imagemosaic-stac

0.0 0.0 0.0 2.18 MB

A GeoServer plugin for dynamic STAC services

License: Apache License 2.0

Java 98.86% HTML 1.14%

imagemosaic-stac's Introduction

STAC Image Mosaic Store for GeoTools/GeoServer

About

The STAC plugin allows GeoTools to create a raster store backed by a dynamic STAC catalog and publish GeoServer layers to dynamically render the imagery returned from STAC queries. The plugin additionally supports a vector store. This is very much a prototype and work in progress. This project would not be possible without major contributions from Niels Charlier, Devon Tucker, and Torben Barsballe. Any and all issues, feature requests, and contributions are welcome.

Several of the key enabling components in GeoTools that allow dynamic mosaics have only recently been added. There are more enhancements on the horizon that will overcome many of the assumptions made in GeoTools that configuration and imagery are located on a file system local to the GeoServer deployment. As the underlying code evolves to be more cloud friendly, so will this plugin.

Alt Text

Usage

Simply include the imagemosaic-stac jar file in your geoserver deployment. The raster store and vector store will become available from the GeoServer admin UI. When selecting a new data source for a new store, you should see both the "STAC VectorStore" and the "STAC Mosaic Store".

alt text

STAC Mosaic Store Configuration

The mosaic store is quite simple to configure. You simply need to point to a valid STAC search endpoint. Various STAC implementations can be found here. The store requires one sample point to use as the basis of the layer. Simply enter a valid STAC search endpoint, along with an item ID from the collection against you wish to build mosaics. To date, this plugin has been developed against the Staccato endpoint. Staccato is an open source implementation of the STAC specification provided by Planet Labs.

alt text

The next step is to publish a layer backed by the store.

alt text

Starting out the Bounding Boxes section, ensure the "Native Bounding Box" and the "Lat/Lon Bounding Box" are set to global extents: -180.0, -90.0, 180.0, 90.0.

The Coverage Parameters section contains several custom fields which are detailed below:

  • Asset ID - This is the ID of the asset belonging to each item that will be used for each mosaic granule.
  • Filter - This generally should not be used in the layer configuration. It's presence allows a CQL_FILTER parameter to be supplied in the WMS/WCS/WFS request to define custom queries.
  • Grid height/width (pixels) - The maximum height and width of the grid in pixels.
  • Include request BBOX in STAC request - By default, the bbox used for the OGC request will be passed along to STAC.
    If this box is unchecked, the bbox will not be passed along and the results from STAC will not be bound to the originating OGC request.
  • Input Transparent Color - The input color that should be transparent.
  • Maximum number of granules to load - The total number of images that will be used to create the mosaic.
  • Maximum resolution pixel size X/Y - This value should be calculated using the imagery CRS and grid height/width. For EPSG:4326, the unit of resolution is degrees/pixel. The x default is 360.0 / GRID_WIDTH and the y default is 180.0 / GRID_HEIGHT.
  • STAC collection (optional) - If specified, STAC results will be restricted to items within this collection.
  • STAC query (optional) - If specified, a query filter value will be applied to the search. Note that STAC has not yet decided on a query filter language. Requests against Staccato currently support CQL.
  • Suggested Tile Size - Controls the tile size of the input granules as well as the tile size of the output mosaic. It consists of two positive integers separated by a comma, like 512,512.

STAC Vector Store Configuration

forthcoming

Dynamic Requests

When making an OGC request to GeoServer, a CQL_FILTER parameter may be supplied. The plugin currently supports two CQL parameters that directly correspond to STAC query parameters: ids and query. The ids parameter accepts a comma separated string of STAC item IDs. The query parameter will be passed directly to the STAC service. Note that STAC has not yet decided on a query filter language. Requests against Staccato currently support CQL.

Caveats

Remote imagery takes time to retrieve. The larger the value of max granules specified, the greater the number of images that need to be fetched and mosaicked. If the size of the imagery in the dataset is large, the number of max granules should be smaller. If the size of the imagery is small, a larger number of max granules can be specified.

imagemosaic-stac's People

Contributors

joshfix avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.