Skip to content

Commit 9971666

Browse files
committed
Added temporary testing shim to trigger assembly bug without python.
1 parent 238fd34 commit 9971666

File tree

1 file changed

+15
-0
lines changed
  • datasource/src/main/scala/org/locationtech/rasterframes/datasource

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.locationtech.rasterframes.datasource
2+
import _root_.geotrellis.raster._
3+
4+
object Poke extends App {
5+
// import _root_.geotrellis.raster.io.geotiff.TiffType
6+
// val enc = TiffType.tiffTypeEncoder
7+
// println(enc(TiffType.fromCode(43)))
8+
9+
val rnd = new scala.util.Random(42)
10+
val (cols, rows) = (10, 10)
11+
val bytes = Array.ofDim[Byte](cols * rows)
12+
rnd.nextBytes(bytes)
13+
val tile = ArrayTile.fromBytes(bytes, UByteCellType, cols, rows)
14+
println(tile.renderAscii())
15+
}

0 commit comments

Comments
 (0)