Skip to content

Commit e0b98d9

Browse files
New initial commit
0 parents  commit e0b98d9

File tree

3,731 files changed

+479514
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,731 files changed

+479514
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.arg binary

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
index.html
2+
index.js
3+
package.html
4+
lib
5+
site/
6+
7+
project/boot
8+
project/plugins/project
9+
project/plugins/target
10+
project/target
11+
target
12+
.ensime
13+
\#*#
14+
*~
15+
.#*
16+
.lib
17+
*.aux.xml
18+
*.jar
19+
*.crc
20+
_SUCCESS
21+
22+
*.pyc
23+
.project
24+
.classpath
25+
.cache
26+
.settings
27+
.history
28+
.idea
29+
.DS_Store
30+
*.iml
31+
*.swp
32+
*.swo
33+
*.sublime-*
34+
.vagrant
35+
36+
lib
37+
index.html
38+
index.js
39+
.ensime*
40+
41+
nohup.out
42+
43+
site/

.locationtech/deploy.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
./sbt "project macros" publish \
7+
&& ./sbt "project vector" publish \
8+
&& ./sbt "project proj4" publish \
9+
&& ./sbt "project raster" publish \
10+
&& ./sbt "project spark" publish \
11+
&& ./sbt "project s3" publish \
12+
&& ./sbt "project accumulo" publish \
13+
&& ./sbt "project cassandra" publish \
14+
&& ./sbt "project hbase" publish \
15+
&& ./sbt "project spark-etl" publish \
16+
&& ./sbt "project geomesa" publish \
17+
&& ./sbt "project geotools" publish \
18+
&& ./sbt "project geowave" publish \
19+
&& ./sbt "project shapefile" publish \
20+
&& ./sbt "project slick" publish \
21+
&& ./sbt "project util" publish \
22+
&& ./sbt "project vectortile" publish \
23+
&& ./sbt "project raster-testkit" publish \
24+
&& ./sbt "project vector-testkit" publish \
25+
&& ./sbt "project spark-testkit" publish

.sbtignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# sbt ignore regexps
2+
Starting sbt with output filtering enabled
3+
^\[info\][ ]+(Resolving|Loading|Done|Attempting|Formatting|Updating)[ ]
4+
^\[info\] Main Scala API documentation
5+
^\[info\].*published[ ]+.*(sources\.jar|javadoc\.jar|\.pom)$
6+
^\[info\].*published ivy to
7+
^\[warn\] Credentials file
8+
^\[info\] Wrote.*[.]pom
9+
^Missing bintray credentials
10+
^SLF4J
11+
Unable to load native-hadoop library
12+
This usage is deprecated
13+
Attempting to overwrite
14+
delivering ivy file to
15+
warnings? found$
16+
re[-]run with [-](unchecked|deprecation|feature) for details
17+
model contains[ ]
18+
[ ]delivering[ ]
19+
^Graphviz dot encountered an error when generating the diagram for:
20+
^These are usually spurious errors, but if you notice a persistant error on
21+
^a diagram, please use the -diagrams-debug flag and report a bug with the output
22+
^Graphviz will be restarted...
23+
^Diagrams will be disabled for this run because the graphviz dot tool
24+
^has malfunctioned too many times. These scaladoc flags may help:
25+
^Please note that graphviz package
26+
^[*]+$
27+
^-diagrams-
28+
^$

.sbtopts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-Djava.awt.headless=true
2+
-Dsun.io.serialization.extendedDebugInfo=true

.travis.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
sudo: false
2+
3+
env:
4+
global:
5+
- secure: "XAhJXuXqnGlZlU2pGcIQKJ2rF44gIReA0arHwapFII/gR1h+2e6hgqnMXwrZaQa/EvNBaXq7nF3XcTBjrbK+ABeKA/0lOh/7ryIotP0i1YVrca69pSK9BY+Kr1y7ncLMqvoyjBziobOeVZmxbK4RflgUTIO7MKzzb5pNb9SnOK8="
6+
- secure: "UwH3B4k5Nqt2THYYTY7uRxTPaJXZbK1hHrVsyJjZp/H2uFTYtQTxXpNb9aR7wuHuhLjXwKkq3gEXxEqhfy6V8+ZPbee6MUNvoYe/HhaPjsmTzcVihTBbO9e7g0bIQFc9bzwY15Y1ImshLcDAYvaXwXapy4Z/KadLiBheyqMk8Cs="
7+
# Scaladocs
8+
- secure: "FPfJbtXmhyMTh/eh9B/f6JZIv6aw+XZMipYlJsdgMEv+XKzL1tdYbKQv8G4C13lhyBZmOlQAbOhl4mRUBmq0FqG3361Y9SS4o5KfDRkZNErBTb8tveoRgKLkdLPwooAOUmRUeygKmhO4ehdQsMXCZmCk33nDq/ZrNallfnCRdm8="
9+
10+
language: scala
11+
12+
addons:
13+
# Fix OpenJDK builds
14+
# https://github.com/travis-ci/travis-ci/issues/5227
15+
hostname: localhost
16+
17+
services:
18+
- docker
19+
- postgresql
20+
21+
before_script:
22+
- psql -c 'create database slick_tests;' -U postgres
23+
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d slick_tests
24+
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d slick_tests
25+
- docker run -d --restart=always --net=host -m 1G --memory-swap -1 --env="MAX_HEAP_SIZE=500M" --env="HEAP_NEWSIZE=100M" --env="CASSANDRA_LISTEN_ADDRESS=127.0.0.1" cassandra:latest
26+
- .travis/hbase-install.sh
27+
28+
jdk:
29+
- openjdk8
30+
- oraclejdk8
31+
32+
scala:
33+
- "2.11.8"
34+
35+
cache:
36+
directories:
37+
- "$HOME/.ivy2"
38+
- "$HOME/.sbt"
39+
- "$HOME/downloads"
40+
41+
script:
42+
- .travis/build-and-test.sh
43+
44+
notifications:
45+
email:
46+
recipients:
47+
48+
49+
slack:
50+
secure: "RPNymWgr5RXN2LpDERitGAP7pckR19znqAlrcuKE46O7saqlenX6ii8ToRHOe1ba0udJO0B1n2R2OzTlw14AkuETyRKX4X8OtVlU/dtfTHfVMbX6+oRPd1g1mfLrLavR5o2ml/KoIvi9QLbNcVHfqoeA+xxW5TJTm9zayRC9d1M="
51+
52+
before_deploy:
53+
- export GEOTRELLIS_VERSION_SUFFIX="-${TRAVIS_COMMIT:0:7}"
54+
55+
deploy:
56+
- provider: script
57+
script: .travis/scaladocs.sh
58+
skip_cleanup: true
59+
on:
60+
repo: geotrellis/geotrellis
61+
branch: master
62+
jdk: oraclejdk8
63+
scala: "2.11.8"

.travis/build-and-test-set-1.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project doc-examples" compile || { exit 1; }
4+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project spark" test || { exit 1; }
5+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project accumulo" test || { exit 1; }
6+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project hbase" test || { exit 1; }
7+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project proj4" test || { exit 1; }
8+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project geotools" test || { exit 1; }
9+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project shapefile" test || { exit 1; }
10+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project geomesa" test || { exit 1; }

.travis/build-and-test-set-2.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project geowave" compile test:compile || { exit 1; }
4+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project cassandra" test || { exit 1; }
5+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project vector-test" test || { exit 1; }
6+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project raster-test" test || { exit 1; }
7+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project s3-test" test || { exit 1; }
8+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project s3-testkit" test || { exit 1; }
9+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project spark-etl" compile || { exit 1; }
10+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project slick" test || { exit 1; }
11+
./sbt -J-Xmx2G "++$TRAVIS_SCALA_VERSION" "project vectortile" test || { exit 1; }

.travis/build-and-test.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
COMMIT_HASH_NUMBER=`printf %i "'${TRAVIS_COMMIT: -1}"`
4+
SCALA_MINOR_VERSION_NUMBER=`echo $TRAVIS_SCALA_VERSION | cut -d . -f2`
5+
JAVA_VERSION_NUMBER=`echo ${TRAVIS_JDK_VERSION: -1}`
6+
JDK_VERSION_NUMBER=`printf %i "'${TRAVIS_JDK_VERSION:3:3}"` # The 3rd letter in "openjdk" or "oracle", translates to 110 or 99
7+
8+
# Since the whole test suite runs too long for travis,
9+
# we run a subset of the tests based on the mod 2 of
10+
# a number derived from the hash, the scala version and the java jdk version.
11+
12+
RUN_SET=$((($COMMIT_HASH_NUMBER + $SCALA_MINOR_VERSION_NUMBER + $JAVA_VERSION_NUMBER + $JDK_VERSION_NUMBER) % 2))
13+
14+
echo "USING SCALA VERSION: $TRAVIS_SCALA_VERSION";
15+
echo "USING JDK VERSION: $TRAVIS_JDK_VERSION";
16+
echo "RUN SET CALC: ($COMMIT_HASH_NUMBER + $SCALA_MINOR_VERSION_NUMBER + $JAVA_VERSION_NUMBER + $JDK_VERSION_NUMBER) % 2 == $RUN_SET";
17+
18+
if [ $RUN_SET = "1" ]; then
19+
echo "RUNNING SET 1";
20+
.travis/build-and-test-set-1.sh;
21+
else
22+
echo "RUNNING SET 2";
23+
.travis/build-and-test-set-2.sh;
24+
fi

.travis/deploy-with-scaladocs.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# Deploy
4+
.travis/deploy.sh
5+
6+
# Publish scaladocs
7+
.travis/scaladocs.sh

.travis/hbase-install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/bash
2+
3+
if [ ! -f $HOME/downloads/hbase-1.2.4-bin.tar.gz ]; then sudo wget -O $HOME/downloads/hbase-1.2.4-bin.tar.gz http://www-eu.apache.org/dist/hbase/1.2.4/hbase-1.2.4-bin.tar.gz; fi
4+
sudo mv $HOME/downloads/hbase-1.2.4-bin.tar.gz hbase-1.2.4-bin.tar.gz && tar xzf hbase-1.2.4-bin.tar.gz
5+
sudo rm -f hbase-1.2.4/conf/hbase-site.xml && sudo mv .travis/hbase/hbase-site.xml hbase-1.2.4/conf
6+
sudo hbase-1.2.4/bin/start-hbase.sh

.travis/hbase/hbase-site.xml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0"?>
2+
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
3+
<!--
4+
/**
5+
*
6+
* Licensed to the Apache Software Foundation (ASF) under one
7+
* or more contributor license agreements. See the NOTICE file
8+
* distributed with this work for additional information
9+
* regarding copyright ownership. The ASF licenses this file
10+
* to you under the Apache License, Version 2.0 (the
11+
* "License"); you may not use this file except in compliance
12+
* with the License. You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*/
22+
-->
23+
<configuration>
24+
<property>
25+
<name>hbase.rootdir</name>
26+
<value>/tmp/hbase</value>
27+
</property>
28+
<property>
29+
<name>hbase.zookeeper.property.dataDir</name>
30+
<value>/tmp/zookeeper</value>
31+
</property>
32+
<property>
33+
<name>hbase.zookeeper.property.maxClientCnxns</name>
34+
<value>0</value>
35+
</property>
36+
<property>
37+
<name>zookeeper.session.timeout</name>
38+
<value>1200000</value>
39+
</property>
40+
<property>
41+
<name>hbase.zookeeper.property.tickTime</name>
42+
<value>6000</value>
43+
</property>
44+
</configuration>

.travis/scaladocs.sh

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
set -o errexit -o nounset
4+
5+
if [ "$TRAVIS_BRANCH" != "master" ]
6+
then
7+
echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!"
8+
exit 0
9+
fi
10+
11+
rev=$(git rev-parse --short HEAD)
12+
13+
# Build docs
14+
./sbt "++$TRAVIS_SCALA_VERSION" unidoc
15+
16+
# Set up git
17+
git config --global user.email "[email protected]"
18+
git config --global user.name "azaveaci"
19+
20+
# Inside scaladocs from hereon
21+
rm -rf scaladocs
22+
git clone https://github.com/geotrellis/scaladocs.git
23+
rm -rf scaladocs/latest
24+
mv target/scala-2.11/unidoc scaladocs/latest
25+
cd scaladocs
26+
git remote add originAuth https://$CI_GH_TOKEN@github.com/geotrellis/scaladocs.git
27+
28+
git add -A .
29+
git commit -m "rebuild scaladocs at ${rev}"
30+
git push -q originAuth gh-pages

LICENSE

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
This software is licensed under the Apache 2 license, quoted below.
2+
3+
Copyright 2011-2016 Azavea [http://www.azavea.com]
4+
5+
Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
use this file except in compliance with the License. You may obtain a copy of
7+
the License at
8+
9+
[http://www.apache.org/licenses/LICENSE-2.0]
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
License for the specific language governing permissions and limitations under
15+
the License.
16+

0 commit comments

Comments
 (0)