Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Initial code for OAM tiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
lossyrob committed Sep 5, 2015
0 parents commit 4bb2efe
Show file tree
Hide file tree
Showing 25 changed files with 2,303 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitignore
@@ -0,0 +1,31 @@


project/boot
project/plugins/project
project/plugins/target
project/target
target
.ensime
\#*#
*~
.#*
.lib
*.aux.xml
*.jar
*.crc
*.log
_SUCCESS

*.pyc
.project
.classpath
.cache
.settings
.history
.idea
.DS_Store
*.iml
*.swp
*.swo
*.sublime-*
.vagrant
8 changes: 8 additions & 0 deletions README.md
@@ -0,0 +1,8 @@
## Notes:

Chunker (step1) generates the reprojected image, in web mercator tiles that are 1024 x 1024.
It passes through the extent, resolution and tile layout.

The Tiler generates an object that, given all images resolution, extents and layouts, can create
filters per image that will allow us to filter only those tiles that require tiling at a specific
zoom level.
18 changes: 18 additions & 0 deletions step1/README.md
@@ -0,0 +1,18 @@
To run this on EMR, do something akin to the following (with buckets changed as appropriate):

```bash
aws emr create-cluster \
--name "NED Conversion" \
--log-uri s3://ned-13arcsec.openterrain.org/logs/ \
--release-label emr-4.0.0 \
--use-default-roles \
--auto-terminate \
--ec2-attributes KeyName=stamen-keypair \
--applications Name=Spark \
--instance-groups \
InstanceCount=1,InstanceGroupType=MASTER,InstanceType=m3.xlarge \
InstanceCount=4,BidPrice=0.200,InstanceGroupType=CORE,InstanceType=c3.2xlarge \
--bootstrap-action Path=s3://ned-13arcsec.openterrain.org/spark/bootstrap.sh \
--steps Name=NED,ActionOnFailure=CONTINUE,Type=Spark,Args=[--deploy-mode,cluster,s3://ned-13arcsec.openterrain.org/spark/chunk.py] \
--configurations file://./emr.json
```
7 changes: 7 additions & 0 deletions step1/bootstrap.sh
@@ -0,0 +1,7 @@
#!/bin/sh -e

sudo yum-config-manager --enable epel
sudo yum -y install geos proj proj-nad proj-epsg
sudo ln -s /usr/lib64/libproj.so.0 /usr/lib64/libproj.so
curl http://data.stamen.com.s3.amazonaws.com/cloudatlas/gdal-1.11.2-amz1.tar.gz | sudo tar zxf - -C /usr/local
sudo GDAL_CONFIG=/usr/local/bin/gdal-config pip-2.7 install boto3 rasterio mercantile psutil

0 comments on commit 4bb2efe

Please sign in to comment.