Skip to content

gijs/isprs-potsdam-viz

 
 

Repository files navigation

ISPRS Potsdam data viewer

This is an application for viewing the ISPRS Potsdamn dataset and results from Azavea's Raster Vision project.

Requirements

  • Vagrant 1.8+
  • VirtualBox 4.3+
  • Ansible 2.2+

Getting Started

Quick setup

Make sure you have a geotrellis profile in your aws-cli profiles, with keys that can access your data on S3.

Clone the project, cd into the directory, then run ./scripts/setup.sh to create the Vagrant VM and then build the Docker container(s).

setup.sh can also be used to restore the project to its initial state: it will re-provision the VM, then remove and rebuild the Docker container(s).

Note: this will destroy the VM's existing Docker container before rebuilding it.

To run just the UI server

./scripts/setup.sh
vagrant up
vagrant ssh
./scripts/server.sh

Downloading test data

make load-local will download the necessary data.

Using Docker in the VM

The other project scripts are meant to execute in the VM in the /vagrant directory. To run the container during development use the following commands:

vagrant up
vagrant ssh
./scripts/server.sh

Scripts

Name Description
cibuild.sh Build the project for CI server TODO
clean.sh Clean up unused Docker resources to free disk space. TODO
console.sh Run docker-compose exec app /bin/sh TODO
lint.sh Run ESLint TODO
server.sh Run docker-compose up and start a server on port 8284
setup.sh Bring up the VM, and then destroy and rebuild the Docker container
test.sh Run tests TODO
update.sh Update the app container with npm dependencies TODO

Makefile

Command Description
local-run Run benchmark job locally
upload-code Upload code and scripts to S3
create-cluster Create EMR cluster with configurations
ingest-dsm IDW ingest with or without pyramiding
ingest-labels Raw PointCloud ingest without pyramiding yet
ingest-rgbir Local IDW ingest with or without pyramiding
ingest-unet Run server on EMR master
ingest-fcn TIN ingest with or without pyramiding
wait Wait for last step to finish
proxy Create SOCKS proxy for active cluster
ssh SSH into cluster master
get-logs Get spark history logs from active cluster
clean Clean local project

Running on EMR

Requires: Reasonably up to date aws-cli.

Configuration

You will need to modify config-aws.mk to reflect your credentials and your VPC configuration. config-emr.mk and config-ingest.mk have been configured with an area over Japan. Be especially aware that as you change instance types config-emr.mk parameters like EXECUTOR_MEMORY and EXECUTOR_CORES need to be reviewed and likely adjusted.

EMR pipeline example

make upload-code && make create-cluster
make ingest-rgbir

Licence

About

Viewer for Azavea's work on the ISPRS Potsdam image segmentation contest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.5%
  • Scala 12.6%
  • CSS 10.0%
  • Shell 8.3%
  • HTML 4.6%
  • Makefile 2.6%
  • HCL 1.4%