Package it.geosolutions.geobatch.unredd.script.util

Examples of it.geosolutions.geobatch.unredd.script.util.Mosaic


              bbox[0] = Double.valueOf(layerResource.getAttribute(Attributes.RASTERX0));
              bbox[1] = Double.valueOf(layerResource.getAttribute(Attributes.RASTERY0));
              bbox[2] = Double.valueOf(layerResource.getAttribute(Attributes.RASTERX1));
              bbox[3] = Double.valueOf(layerResource.getAttribute(Attributes.RASTERY1));
             
              Mosaic mosaic = new Mosaic(conf.getDstGeoServerConfig(), mosaicDir, getTempDir(), getConfigDir());
              mosaic.add(conf.getDstGeoServerConfig().getWorkspace(), layerName, srcRasterFile, "EPSG:4326", bbox, style, conf.getDatastorePath());
          }

        } catch (PostGisException e) {
            LOGGER.debug("Property settings : [Layer = " + layerName + ", year = " + year + ", month=" + month + "]");
            throw new ActionException(this, "Error while copying features", e );
View Full Code Here


            bbox[0] = Double.valueOf(layer.getAttribute(Attributes.RASTERX0));
            bbox[1] = Double.valueOf(layer.getAttribute(Attributes.RASTERY0));
            bbox[2] = Double.valueOf(layer.getAttribute(Attributes.RASTERX1));
            bbox[3] = Double.valueOf(layer.getAttribute(Attributes.RASTERY1));
           
            Mosaic mosaic = new Mosaic(cfg.getGeoServerConfig(), mosaicDir, getTempDir(), getConfigDir());
            mosaic.add(cfg.getGeoServerConfig().getWorkspace(), layername, rasterFile, "EPSG:4326", bbox, style, cfg.getDatastorePath());
       
        } catch (Exception e) {
            this.listenerForwarder.progressing(60, "Error in ImageMosaic: " + e.getMessage());
            LOGGER.error("Error in ImageMosaic: " + e.getMessage(), e);
            throw new ActionException(this, "Error updating mosaic " + rasterFile.getName(), e);
View Full Code Here

TOP

Related Classes of it.geosolutions.geobatch.unredd.script.util.Mosaic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.