Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory Pomadchin <gr.pomadchin@gmail.com>
  • Loading branch information
pomadchin committed Mar 13, 2017
1 parent fb01b0b commit c333be3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions s3/src/main/scala/geotrellis/spark/io/s3/S3GeoTiffRDD.scala
Expand Up @@ -37,8 +37,6 @@ import java.nio.ByteBuffer
* The S3GeoTiffRDD object allows for the creation of whole or windowed RDD[(K, V)]s from files on S3.
*/
object S3GeoTiffRDD {
implicit def stringToUri(str: String): URI = new URI(str)

final val GEOTIFF_TIME_TAG_DEFAULT = "TIFFTAG_DATETIME"
final val GEOTIFF_TIME_FORMAT_DEFAULT = "yyyy:MM:dd HH:mm:ss"

Expand Down Expand Up @@ -124,7 +122,7 @@ object S3GeoTiffRDD {
).mapPartitions(
_.map { case (key, bytes) =>
val (k, v) = rr.readFully(ByteBuffer.wrap(bytes), options)
keyTransform(key, k) -> v
keyTransform(new URI(key), k) -> v
},
preservesPartitioning = true
)
Expand Down Expand Up @@ -175,7 +173,7 @@ object S3GeoTiffRDD {

val (k, v) = rr.readWindow(reader, pixelWindow, options)

keyTransform(objectRequest.getKey, k) -> v
keyTransform(new URI(objectRequest.getKey), k) -> v
}
}

Expand Down

0 comments on commit c333be3

Please sign in to comment.