This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[info] com.azavea.geotrellis:geotrellis-geotools_2.10:0.10.0-SNAPSHOT [S] | |
[info] +-com.azavea.geotrellis:geotrellis_2.10:0.10.0-SNAPSHOT [S] | |
[info] | +-com.azavea.geotrellis:geotrellis-macros_2.10:0.10.0-SNAPSHOT [S] | |
[info] | | +-org.scala-lang:scala-reflect:2.10.1 (evicted by: 2.10.2) | |
[info] | | +-org.scala-lang:scala-reflect:2.10.2 [S] | |
[info] | | | |
[info] | +-com.typesafe.akka:akka-actor_2.10:2.2.3 [S] | |
[info] | | +-com.typesafe:config:1.0.2 | |
[info] | | | |
[info] | +-com.typesafe.akka:akka-cluster_2.10:2.2.3 [S] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO: See if this is any good and worth refactoring. From some internal Scala code written by someone at Azavea. | |
package object json { | |
def quote(s:String) = if(s == null) "\"\"" else "\"" + (s.replace("\\", "\\\\").replace("\"", "\\\"")) + "\"" | |
def quote(a:Any):String = if(a == null) "\"\"" else quote(a.toString) | |
def arrayToJson(left:String, as:Array[String], right:String) = if (as.length > 0) { | |
val n = as.foldLeft(0)(_ + _.length + 1) + left.length + right.length | |
val b = new StringBuilder(n) | |
b.append(left) | |
b.append(as(0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package geotrellis.raster.op | |
import geotrellis._ | |
import geotrellis.feature.Extent | |
import geotrellis.process._ | |
import geotrellis.raster.op._ | |
import geotrellis.testkit._ | |
import geotrellis.raster.op.local.Add | |
import org.scalatest._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** GDAL will translate a GeoTIFF with these boundies in EPSG:4326 - | |
* Upper Left ( -85.4969788, 35.4371767) ( 85d29'49.12"W, 35d26'13.84"N) | |
* Lower Left ( -85.4969788, 35.3464955) ( 85d29'49.12"W, 35d20'47.38"N) | |
* Upper Right ( -85.2701788, 35.4371767) ( 85d16'12.64"W, 35d26'13.84"N) | |
* Lower Right ( -85.2701788, 35.3464955) ( 85d16'12.64"W, 35d20'47.38"N) | |
* Center ( -85.3835788, 35.3918361) ( 85d23' 0.88"W, 35d23'30.61"N) | |
* | |
* to these boundry points in EPSG:3857 - | |
* Upper Left (-9517480.140, 4223451.561) ( 85d29'49.12"W, 35d26'13.84"N) | |
* Lower Left (-9517480.140, 4211063.427) ( 85d29'49.12"W, 35d20'47.24"N) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mergequeue | |
class MergeQueue(initialSize: Int = 1) { | |
private var array = if(initialSize <= 1) { Array.ofDim[(Long, Long)](1) } else { Array.ofDim[(Long, Long)](initialSize) } | |
private var _size = 0 | |
def size = _size | |
private def removeElement(i: Int): Unit = { | |
if(i < _size - 1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package geotrellis.spark.io.accumulo | |
import geotrellis.spark._ | |
import geotrellis.spark.io._ | |
import spray.json._ | |
import scala.collection.JavaConversions._ | |
import org.apache.spark.Logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import geotrellis.raster._ | |
import geotrellis.vector._ | |
import geotrellis.spark._ | |
import geotrellis.spark.io.accumulo._ | |
import org.apache.accumulo.core.client.security.tokens.PasswordToken | |
implicit val _sc = sc | |
// Get accumulo instance and the catalog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### INGEST SPATIAL GEOTIFF IN ACCUMULO ### | |
# geotrellis-spark JAR. Shouldn't have to change this one if running in the root folder (remember to run ./sbt "project spark" assembly) | |
JAR=/Users/rob/proj/gt/geotrellis/spark/target/scala-2.10/geotrellis-spark-assembly-0.10.0-SNAPSHOT.jar | |
# Directory with the input tiled GeoTIFF's | |
INPUT=file:/Users/rob/proj/climate/data/one-month-tiles | |
# Table to store tiles | |
TABLE=nexmonth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package geotrellis.spark.io.hadoop | |
import geotrellis.spark._ | |
import geotrellis.raster._ | |
// "com.google.uzaygezen" % "uzaygezen-core" % "0.2" | |
import com.google.uzaygezen.core.CompactHilbertCurve | |
import com.google.uzaygezen.core.MultiDimensionalSpec | |
import com.google.uzaygezen.core.BitVector | |
import com.google.uzaygezen.core.BitVectorFactories |
OlderNewer