jiayuasu commented on code in PR #1282: URL: https://github.com/apache/sedona/pull/1282#discussion_r1535086121
########## common/src/test/java/org/apache/sedona/common/raster/RasterEditorsTest.java: ########## @@ -172,6 +172,57 @@ public void testSetGeoReferenceWithEmptyRasterSRID() throws FactoryException { assertEquals(expected, actual); } + @Test + public void testInterpolate() throws FactoryException { + double[] values = new double[15 * 15]; + double[] values2 = new double[15 * 15]; + for (int i = 0; i < values.length; i++) { + values[i] = Double.NaN; + values2[i] = -9999; + } + values[1] = 37; values[7] = 20; values[20] = 14; values[29] = 24; values[48] = 10; values[54] = 16; values[90] = 30; + values[92] = 27; values[97] = 20; values[110] = 22; values[133] = 34; values[141] = 19; values[159] = 30; values[163] = 21; + values[177] = 14; values[182] = 10; values[189] = 15; values[201] = 30; values[215] = 23; values[219] = 12; values[224] = 30; + values2[1] = 37; values2[7] = 20; values2[110] = 22; values2[133] = 34; values2[215] = 23; values2[219] = 12; + + GridCoverage2D raster = RasterConstructors.makeEmptyRaster(1, 15, 15, 0, 0, 1); Review Comment: Please add a test that use a multi-band raster with non-equal width and height. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@sedona.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org