Skip to content
Create and use COG mosaic based on mosaicJSON
Python Shell Dockerfile
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 8 commits behind developmentseed:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
bin
cogeo_mosaic
demo
doc
tests
.gitignore
.pre-commit-config.yaml
Dockerfile
LICENSE
README.md
docker-compose.yml
package.json
serverless.yml
setup.py
tox.ini

README.md

cogeo-mosaic

CircleCI

Create and use COG mosaic based on mosaicJSON.

mosaicJSON

Install

$ pip install http://github.com/developmentseed/cogeo-mosaic

Create Mosaic definition

$ cogeo-mosaic create --help
Usage: cogeo-mosaic create [OPTIONS] [INPUT_FILES]

  Create mosaic definition file.

Options:
  -o, --output PATH  Output file name
  --threads INTEGER  threads
  --help             Show this message and exit.

[INPUT_FILES] must be a list of valid Cloud Optimized GeoTIFF.

$ cogeo-mosaic create list.txt -o mosaic.json

# or 

$ cat list.txt | cogeo-mosaic create - | gzip > mosaic.json.gz

Serverless Stack

A AWS Lambda function handler is included in this module.

See /doc/API.md for the documentation.

Deployment

Package Lambda

Create package.zip

$ docker-compose build --no-cache
$ docker-compose run --rm package

Deploy to AWS

This project uses Serverless to manage deploy on AWS.

# Install and Configure serverless (https://serverless.com/framework/docs/providers/aws/guide/credentials/)
$ npm install serverless -g 

$ sls deploy --region us-east-1 --bucket a-bucket-where-you-store-data

DEMO

see /demo

Contribution & Development

Issues and pull requests are more than welcome.

Dev install & Pull-Request

$ git clone http://github.com/developmentseed/cogeo-mosaic.git
$ cd cogeo-mosaic
$ pip install -e .[dev]

Python >=3.6 only

This repo is set to use pre-commit to run flake8, pydocstring and black ("uncompromising Python code formatter") when committing new code.

$ pre-commit install
$ git add .
$ git commit -m'my change'
black....................................................................Passed
Flake8...................................................................Passed
Verifying PEP257 Compliance..............................................Passed
$ git push origin

About

Created by Development Seed

You can’t perform that action at this time.