Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows Temporal Ingests from spark-etl to S3 #2709

Merged
merged 1 commit into from Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions spark-etl/src/main/scala/geotrellis/spark/etl/TemporalIngest.scala
@@ -0,0 +1,34 @@
/*
* Copyright 2016 Azavea
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package geotrellis.spark.etl

import geotrellis.spark._
import geotrellis.raster.Tile
import geotrellis.spark.util.SparkUtils
import geotrellis.spark.TemporalProjectedExtent
import org.apache.spark.SparkConf

object TemporalIngest {
def main(args: Array[String]): Unit = {
implicit val sc = SparkUtils.createSparkContext("GeoTrellis ETL Singleband Temporal Ingest", new SparkConf(true))
try {
Etl.ingest[TemporalProjectedExtent, SpaceTimeKey, Tile](args)
} finally {
sc.stop()
}
}
}
Expand Up @@ -21,8 +21,8 @@ import geotrellis.spark.etl.TypedModule
object S3Module extends TypedModule {
register(new GeoTiffS3Input)
register(new TemporalGeoTiffS3Input)
register(new SpatialS3Output)
register(new SpaceTimeS3Output)
register(new SpatialS3Output)
register(new MultibandGeoTiffS3Input)
register(new TemporalMultibandGeoTiffS3Input)
register(new SpaceTimeMultibandS3Output)
Expand Down