Skip to content

Commit

Permalink
updates for geowave 0.9.3 release
Browse files Browse the repository at this point in the history
Signed-off-by: Rich Fecher <rfecher@gmail.com>
  • Loading branch information
rfecher committed Dec 21, 2016
1 parent 77348ea commit 66e2e6c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GeometryToSimpleFeatureMethodsSpec
val multiPoint = MultiPoint(Point(0, 0), Point(4, 0), Point(0, 3), Point(0, 0))
val multiLine = MultiLine(Line(Point(0, 0), Point(4, 0)), Line(Point(0, 3), Point(0, 0)))
val multiPolygon = MultiPolygon(
Polygon(Point(0, 0), Point(4, 0), Point(0, 3), Point(0, 0)),
Polygon(Point(0, 0), Point(-4, 0), Point(0, -3), Point(0, 0)),
Polygon(Point(0, 0), Point(5, 0), Point(0, 12), Point(0, 0))
)

Expand Down
12 changes: 6 additions & 6 deletions geowave/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ libraryDependencies ++= Seq(
"org.apache.accumulo" % "accumulo-core" % Version.accumulo
exclude("org.jboss.netty", "netty")
exclude("org.apache.hadoop", "hadoop-client"),
"mil.nga.giat" % "geowave-adapter-raster" % "0.9.3-SNAPSHOT"
"mil.nga.giat" % "geowave-adapter-raster" % "0.9.3"
excludeAll(ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "javax.servlet")),
"mil.nga.giat" % "geowave-adapter-vector" % "0.9.3-SNAPSHOT"
"mil.nga.giat" % "geowave-adapter-vector" % "0.9.3"
excludeAll(ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "javax.servlet")),
"mil.nga.giat" % "geowave-core-store" % "0.9.3-SNAPSHOT"
"mil.nga.giat" % "geowave-core-store" % "0.9.3"
excludeAll(ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "javax.servlet")),
"mil.nga.giat" % "geowave-core-geotime" % "0.9.3-SNAPSHOT"
"mil.nga.giat" % "geowave-core-geotime" % "0.9.3"
excludeAll(ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "javax.servlet")),
"mil.nga.giat" % "geowave-datastore-accumulo" % "0.9.3-SNAPSHOT"
"mil.nga.giat" % "geowave-datastore-accumulo" % "0.9.3"
excludeAll(ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "javax.servlet")),
hadoopClient % "provided"
excludeAll(ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "javax.servlet")),
"org.geoserver" % "gs-wms" % "2.8.2"
"org.geoserver" % "gs-wms" % "2.10.0"
excludeAll(ExclusionRule(organization = "org.mortbay.jetty"),
ExclusionRule(organization = "javax.servlet")),
"org.geotools" % "gt-coverage" % Version.geotools % "provided"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import geotrellis.spark.io.avro._
import geotrellis.spark.io.avro.codecs._
import geotrellis.spark.io.hadoop.formats._
import geotrellis.spark.util.KryoWrapper
import geotrellis.util.annotations.experimental
import geotrellis.vector._

import org.apache.avro.Schema
Expand Down Expand Up @@ -101,8 +100,7 @@ import scala.reflect._
val queryOptions = new QueryOptions(gwDataAdapter, gw2dIndex)
queryOptions.setLimit(queryLimit)

GeoWaveInputFormat.setDataStoreName(jobConf, "accumulo")
GeoWaveInputFormat.setStoreConfigOptions(jobConf, pluginOpts.getFactoryOptionsAsMap)
GeoWaveInputFormat.setStoreOptions(jobConf, pluginOpts)
GeoWaveInputFormat.setQuery(jobConf, query)
GeoWaveInputFormat.setQueryOptions(jobConf, queryOptions)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,9 @@ object GeowaveLayerReader {
@experimental def computeConfiguration()(implicit sc: SparkContext) = {
val pluginOptions = new DataStorePluginOptions
pluginOptions.setFactoryOptions(requiredOptions)
val configOptions = pluginOptions.getFactoryOptionsAsMap
val job = Job.getInstance(sc.hadoopConfiguration)
val config = job.getConfiguration
GeoWaveInputFormat.setDataStoreName(config, "accumulo")
GeoWaveInputFormat.setStoreConfigOptions(config, configOptions)
GeoWaveInputFormat.setStoreOptions(config, pluginOptions)

config
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ import mil.nga.giat.geowave.core.index.sfc.SFCDimensionDefinition
import mil.nga.giat.geowave.core.index.sfc.SFCFactory.SFCType
import mil.nga.giat.geowave.core.index.sfc.tiered.TieredSFCIndexFactory
import mil.nga.giat.geowave.core.store._
import mil.nga.giat.geowave.core.store.adapter.statistics.StatsCompositionTool
import mil.nga.giat.geowave.core.store.data.VisibilityWriter
import mil.nga.giat.geowave.core.store.index.PrimaryIndex
import mil.nga.giat.geowave.core.store.operations.remote.options.DataStorePluginOptions
import mil.nga.giat.geowave.core.store.util.DataStoreUtils
import mil.nga.giat.geowave.datastore.accumulo._
import mil.nga.giat.geowave.datastore.accumulo.metadata._
import mil.nga.giat.geowave.datastore.accumulo.operations.config.AccumuloOptions
Expand All @@ -64,9 +59,13 @@ import javax.media.jai.{ ImageLayout, JAI }
import scala.collection.JavaConversions._
import scala.collection.mutable.ListBuffer
import scala.reflect._
import mil.nga.giat.geowave.core.store.util.DataStoreUtils

import resource._
import spray.json._
import mil.nga.giat.geowave.core.store.operations.remote.options.DataStorePluginOptions
import mil.nga.giat.geowave.core.store.adapter.statistics.StatsCompositionTool
import mil.nga.giat.geowave.core.store.data.VisibilityWriter


/**
Expand Down Expand Up @@ -112,15 +111,11 @@ import spray.json._
val pluginOptions = new DataStorePluginOptions
pluginOptions.setFactoryOptions(as.accumuloRequiredOptions)

val configOptions = pluginOptions.getFactoryOptionsAsMap
val configOptions = pluginOptions.getOptionsAsMap

val geotrellisKvToGeoWaveKv: Iterable[(K, V)] => Iterable[(Key, Value)] = { pairs =>
{
val gwMetadata = new java.util.HashMap[String, String](); gwMetadata.put("cellType", cellType)
configOptions.put(
GeoWaveStoreFinder.STORE_HINT_OPTION.getName(),
"accumulo"
)

/* Produce mosaic from all of the tiles in this partition */
val sources = new java.util.ArrayList(pairs.map(geotrellisKvToGeotools))
Expand Down
2 changes: 1 addition & 1 deletion project/Version.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
object Version {
val geotrellis = "1.0.0" + Environment.versionSuffix
val scala = "2.11.8"
val geotools = "14.4"
val geotools = "16.0"
val akka = "2.4.10"
val spray = "1.3.3"
val sprayJson = "1.3.2"
Expand Down

0 comments on commit 66e2e6c

Please sign in to comment.