@Test @Category(UnitTest.class) public void testCreateColorSwatchVertical() throws Exception { String format = "png"; MrsPyramidService testInstance = new MrsPyramidService(); int width = 20; int height = 200; MrGeoRaster ri = testInstance.createColorScaleSwatch(createRainbowColorScale(), "png", width, height); if (GEN_BASELINE_DATA_ONLY) { testutils.saveBaselineRaster(testname.getMethodName(), ri, format); } else { testutils.compareRasters(testname.getMethodName(), ri, format); } }
public MrGeoRaster createColorScaleSwatch(String name, String format, int width, int height) throws MrsPyramidServiceException { try { ColorScale cs = getColorScaleFromName(name); return createColorScaleSwatch(cs, format, width, height); } catch (Exception e) { log.error("Exception thrown", e); throw new MrsPyramidServiceException("Error creating color scale " + name, e); } }
MrsPyramidService { public MrGeoRaster createColorScaleSwatch(String name, String format, int width, int height) throws MrsPyramidServiceException { try { ColorScale cs = getColorScaleFromName(name); return createColorScaleSwatch(cs, format, width, height); } catch (Exception e) { log.error("Exception thrown", e); throw new MrsPyramidServiceException("Error creating color scale " + name, e); } } }
MrsPyramidService { public MrGeoRaster createColorScaleSwatch(String name, String format, int width, int height) throws MrsPyramidServiceException { try { ColorScale cs = getColorScaleFromName(name); return createColorScaleSwatch(cs, format, width, height); } catch (Exception e) { log.error("Exception thrown", e); throw new MrsPyramidServiceException("Error creating color scale " + name, e); } } MrsPyramidService(); }
MrsPyramidService { public MrGeoRaster createColorScaleSwatch(String name, String format, int width, int height) throws MrsPyramidServiceException { try { ColorScale cs = getColorScaleFromName(name); return createColorScaleSwatch(cs, format, width, height); } catch (Exception e) { log.error("Exception thrown", e); throw new MrsPyramidServiceException("Error creating color scale " + name, e); } } MrsPyramidService(); JobManager getJobManager(); ColorScale getColorScaleFromName(String colorScaleName); ColorScale getColorScaleFromJSON(String colorScaleJSON); List<String> getColorScales(); MrGeoRaster createColorScaleSwatch(String name, String format, int width, int height); MrGeoRaster createColorScaleSwatch(ColorScale cs, String format, int width, int height); MrGeoRaster createColorScaleSwatch(ColorScale cs, String format, int width, int height, double min, double max); boolean isZoomLevelValid(String pyramid, ProviderProperties providerProperties, int zoomLevel); ImageRenderer getImageRenderer(String format); MrGeoRaster applyColorScaleToImage(String format, MrGeoRaster result, ColorScale cs,
    ImageRenderer renderer, double[] extrema); ImageResponseWriter getImageResponseWriter(String format); byte[] getEmptyTile(int width, int height, String format); String getContentType(String format); String getMetadata(String imgName); MrsPyramid getPyramid(String name,
    ProviderProperties providerProperties); String formatValue(Double value, String units); String formatElapsedTime(Double elapsedTime); }
MrsPyramidService { public MrGeoRaster createColorScaleSwatch(String name, String format, int width, int height) throws MrsPyramidServiceException { try { ColorScale cs = getColorScaleFromName(name); return createColorScaleSwatch(cs, format, width, height); } catch (Exception e) { log.error("Exception thrown", e); throw new MrsPyramidServiceException("Error creating color scale " + name, e); } } MrsPyramidService(); JobManager getJobManager(); ColorScale getColorScaleFromName(String colorScaleName); ColorScale getColorScaleFromJSON(String colorScaleJSON); List<String> getColorScales(); MrGeoRaster createColorScaleSwatch(String name, String format, int width, int height); MrGeoRaster createColorScaleSwatch(ColorScale cs, String format, int width, int height); MrGeoRaster createColorScaleSwatch(ColorScale cs, String format, int width, int height, double min, double max); boolean isZoomLevelValid(String pyramid, ProviderProperties providerProperties, int zoomLevel); ImageRenderer getImageRenderer(String format); MrGeoRaster applyColorScaleToImage(String format, MrGeoRaster result, ColorScale cs,
    ImageRenderer renderer, double[] extrema); ImageResponseWriter getImageResponseWriter(String format); byte[] getEmptyTile(int width, int height, String format); String getContentType(String format); String getMetadata(String imgName); MrsPyramid getPyramid(String name,
    ProviderProperties providerProperties); String formatValue(Double value, String units); String formatElapsedTime(Double elapsedTime);  }