Awesome
NOTE
The SWF approach to OAM Server did not work out, so this code is not being used. There's some great stuff here though, so feel free to pull code and components from it.
OpenAerialMap Server: Activities component
The Activities component of OAM Server is a swfr SWF activities worker that processes OAM tiling tasks.
Activities
buildVrt
: This activity takes a list of file URIs (either s3 http URLs or local paths) and builds a VRT to the specified output path.getInfo
: This activity gets the extent and resolution from an input raster.reproject
: This activity reprojects an input raster to a given projection.resampleToPng
: This activity resamples an input raster (VRT) to the specified target window, and outputs a PNG (along with the.aux.xml
that contains geo info for the png)
Usage
The main avenue for developing against the OpenAerialMap (OAM) server is via Docker. To get started, ensure that you have a working Docker environment, with version >=1.7
. In addition, all interactions with Docker and NPM are wrapped within a Makefile
.
In order to build this image, use the activities
target:
$ make activities
Sending build context to Docker daemon 7.68 kB
Sending build context to Docker daemon
...
Successfully built e2666914b094
From there, you can start the server using the start
target:
$ make start
b1d7b15d68632883ba81c6098719036caf3c4e23dff964666a42d736bee96a33
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b1d7b15d6863 oam/server-activities:latest "npm start" 19 seconds ago Up 16 seconds 0.0.0.0:8000->8000/tcp oam-server-activities
Note: For the start
target, contents within the activities
directory gets mounted inside of the container via a volume to ensure that the latest code changes are being tested.