-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #698 from jbouffard/improvement/read-multiplex
Read Multiplex Band Support
- Loading branch information
Showing
10 changed files
with
340 additions
and
37 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
geopyspark-backend/geotrellis/src/main/scala/geopyspark/geotrellis/vlm/SourceInfo.scala
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package geopyspark.geotrellis.vlm | ||
|
||
import scala.collection.JavaConverters._ | ||
|
||
|
||
case class SourceInfo( | ||
source: String, | ||
sourceToTargetBand: Map[Int, Int] | ||
) extends Serializable | ||
|
||
|
||
object SourceInfo { | ||
def apply(source: String, sourceBand: Int, targetBand: Int): SourceInfo = | ||
SourceInfo(source, Map(sourceBand -> targetBand)) | ||
|
||
def apply(source: String, targetBand: Int): SourceInfo = | ||
SourceInfo(source, 0, targetBand) | ||
|
||
def apply(source: String, javaMap: java.util.HashMap[Int, Int]): SourceInfo = | ||
SourceInfo(source, javaMap.asScala.toMap) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.15") | ||
|
||
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.7.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
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
Oops, something went wrong.