Examples of UNREDDStatsDef


Examples of it.geosolutions.unredd.geostore.model.UNREDDStatsDef

    private void reprocessStat(Resource statsDefRes, float min, float max) throws GeoStoreException, FlowException {
        String statsDefName = statsDefRes.getName();
        LOGGER.info("Starting reprocessing StatsDef '" + statsDefName+ "'");
        this.listenerForwarder.progressing(rescale(min, max, 0), "Starting reprocessing StatsDef '" + statsDefName+ "'");

        UNREDDStatsDef statsDef = new UNREDDStatsDef(statsDefRes);
        List<String> layerNames = statsDef.getReverseAttributesInternal(UNREDDStatsDef.ReverseAttributes.LAYER);

        if( layerNames.isEmpty()) {
            LOGGER.warn("No layers defined for StatsDef '" + statsDefName+ "'");
        }
View Full Code Here

Examples of it.geosolutions.unredd.geostore.model.UNREDDStatsDef

   * @param layers
   * @return
   */
  public static RESTResource createStatsDefResource(String name, String xml, String... layers) {

        UNREDDStatsDef statsDef = new UNREDDStatsDef();

        statsDef.addReverseAttribute(UNREDDStatsDef.ReverseAttributes.LAYER, layers);

        RESTResource res = statsDef.createRESTResource();
        res.setName(name);
        res.setData(xml);

        return res;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.