Package org.geotools.factory

Examples of org.geotools.factory.Hints.containsKey()


                    Utils.ELEVATION_DOMAIN, indexer));
            configBuilder.setAdditionalDomainAttributes(IndexerUtils.getAttribute(coverageName,
                    Utils.ADDITIONAL_DOMAIN, indexer));

            final Hints runHints = getRunConfiguration().getHints();
            if (runHints != null && runHints.containsKey(Utils.AUXILIARY_FILES_PATH)) {
                String auxiliaryFilePath = (String) runHints.get(Utils.AUXILIARY_FILES_PATH);
                if (auxiliaryFilePath != null && auxiliaryFilePath.trim().length() > 0) {
                    configBuilder.setAuxiliaryFilePath(auxiliaryFilePath);
                }
            }
View Full Code Here


        // Setting of the sources
        param.parameter("Sources").setValue(sources);
        // RenderingHints
        Hints hints = new Hints();
        // Ensure No Layout is set
        Assert.assertTrue(!hints.containsKey(JAI.KEY_IMAGE_LAYOUT));
        // Add a fake Layout for the operation
        ImageLayout il = new ImageLayout();
        hints.put(JAI.KEY_IMAGE_LAYOUT, il);
        // Mosaic operation
        GridCoverage2D mosaic = (GridCoverage2D) processor.doOperation(param, hints);
View Full Code Here

                + finalRes, actual.getMinY() + finalRes);
        result = ((int[]) mosaic.evaluate(point))[0];
        Assert.assertNotEquals(nodata, result, TOLERANCE);

        // Ensure the Layout is already present after the mosaic
        Assert.assertTrue(hints.containsKey(JAI.KEY_IMAGE_LAYOUT));
        // Ensure no additional bound parameter is set
        ImageLayout layout = (ImageLayout) hints.get(JAI.KEY_IMAGE_LAYOUT);
        Assert.assertTrue(!layout.isValid(ImageLayout.MIN_X_MASK));
        Assert.assertTrue(!layout.isValid(ImageLayout.MIN_Y_MASK));
        Assert.assertTrue(!layout.isValid(ImageLayout.WIDTH_MASK));
View Full Code Here

        Hints hints = clone.getHints();
        if (hints == null || hints.isEmpty()) {
            clone.setHints(this.hints);
        } else {
            for (Entry<Object, Object> entry : this.hints.entrySet()) {
                if (!hints.containsKey(entry.getKey())) {
                    hints.put(entry.getKey(), entry.getValue());
                }
            }
        }
View Full Code Here

            //First initialization
            if (executor == null){
              final Hints defHints = GeoTools.getDefaultHints();
             
              //Looking for executor from default Hints
              if (defHints != null && defHints.containsKey(Hints.EXECUTOR_SERVICE)){
                executor = (ThreadPoolExecutor) defHints.get(Hints.EXECUTOR_SERVICE);
              }
            }
            if (executor == null){
                // No Executor found: Create a new one
View Full Code Here

            //First initialization
            if (executor == null){
              final Hints defHints = GeoTools.getDefaultHints();
             
              //Looking for executor from default Hints
              if (defHints != null && defHints.containsKey(Hints.EXECUTOR_SERVICE)){
                executor = (ThreadPoolExecutor) defHints.get(Hints.EXECUTOR_SERVICE);
              }
            }
            if (executor == null){
                // No Executor found: Create a new one
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.