Permalink
Browse files

Fix gdal compare test case

Signed-off-by: liufang <lfangcat@gmail.com>
  • Loading branch information...
Frophie authored and echeipesh committed Jun 7, 2018
1 parent c0c4128 commit 01552768290e66a8379b7235b49bf327c8de3991
BIN +0 Bytes (100%) raster/data/data/aspect.arg
Binary file not shown.
@@ -1 +1 @@
{ "layer": "aspect", "type": "arg", "datatype": "float32", "rows": 1400, "cols": 979, "xmin": 557815.0, "ymax": 5121985.0, "cellwidth": 10.0, "cellheight": 10.0, "xmax": 567605.0, "ymin": 5107985.0, "xskew": 0.0, "yskew": 0.0, "epsg": 26710 }
{"layer":"aspect","type":"arg","datatype":"float32","rows":1400,"cols":979,"xmin":557815.000000,"ymax":5121985.000000,"cellwidth":10.000000,"cellheight":10.000000,"xmax":567605.000000,"ymin":5107985.000000,"xskew":0.000000,"yskew":0.000000,"epsg":26710}
@@ -48,10 +48,10 @@ class AspectSpec extends FunSpec with Matchers with RasterMatchers with TileBuil
val rgc = rg.convert(DoubleConstantNoDataCellType).crop(rasterExtent.extent, cropExtent)
val rc = aspectComputed.crop(rasterExtentElevation.extent, cropExtent)
assertEqual(rgc, rc, 0.1)
// '1.1' is because gdal's flat area is 0, and our flat area is -1
assertEqual(rgc, rc, 1.1)
}
it("should calculate edge cases correctly") {
val r = createTile(
Array[Int](

0 comments on commit 0155276

Please sign in to comment.