private GeoRaster checkRasterMetadataIO(GeoRaster grSource) { Value v = ValueFactory.createValue(grSource); Value v2 = ValueFactory.createValue(v.getType(), v.getBytes()); GeoRaster gr = v2.getAsRaster(); assertEquals(gr.getMetadata(), grSource.getMetadata()); return gr; }
private void checkIO(Value v) throws IncompatibleTypesException { Value v2 = ValueFactory.createValue(v.getType(), v.getBytes()); assertTrue((v2.equals(v)).getAsBoolean()); }