We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 238fd34 commit 9971666Copy full SHA for 9971666
datasource/src/main/scala/org/locationtech/rasterframes/datasource/Poke.scala
@@ -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