Skip to content

Commit

Permalink
Fix HadoopCOGLayer Writer typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Mar 12, 2018
1 parent 9b460b5 commit a7c1ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Expand Up @@ -78,7 +78,8 @@ lazy val commonSettings = Seq(
"osgeo" at "http://download.osgeo.org/webdav/geotools/"
),
headerLicense := Some(HeaderLicense.ALv2("2017", "Azavea")),
scapegoatVersion in ThisBuild := "1.3.3"
scapegoatVersion in ThisBuild := "1.3.3",
updateOptions := updateOptions.value.withGigahorse(false)
)

lazy val root = Project("geotrellis", file(".")).
Expand Down
Expand Up @@ -82,7 +82,7 @@ class HadoopCOGLayerWriter(
}
.foreach(samplesAccumulator.add)

case Some(merge) if !HdfsUtils.pathExists(path, attributeStore.hadoopConfiguration) =>
case Some(merge) if HdfsUtils.pathExists(path, attributeStore.hadoopConfiguration) =>
val old = tiffMethods.readEntireTiff(path.toUri())
val merged = merge(cog, old)
HdfsUtils.write(path, attributeStore.hadoopConfiguration) { new GeoTiffWriter(merged, _).write(true) }
Expand Down

0 comments on commit a7c1ae1

Please sign in to comment.