ul.setAttribute(Attributes.RASTERPIXELHEIGHT, "3562");
ul.setAttribute(Attributes.RASTERPIXELWIDTH, "3876");
ul.setAttribute(Attributes.RASTERDATATYPE, "byte");
GDALRasterize rasterize = new GDALRasterize( rasterizeConfig, rasterizeConfigDir, getTempDir());
// File errorFile = File.createTempFile("error", ".xml", getTempDir());
File shp = loadFile("shp/layer1/layer1_2012.shp");
String shpPath = shp.getAbsolutePath();
LOGGER.info("ShapeFile path is " + shpPath);
// options.setSrc(shpPath);
File outfile = new File(getTempDir(), "output.tif");
LOGGER.info("Output tif path is " + outfile);
File outputFile = null;
try {
outputFile = rasterize.run(ul, ulu, shp);
} catch (Exception e) {
e.printStackTrace();
fail(e.toString());
}