Examples of geophysics()


Examples of org.geotools.coverage.GridSampleDimension.geophysics()

                sd = defaultSD[i];
            }
            sd = new RenderedSampleDimension(sd, image, i);
            dst[i] = sd;
            if (sd.geophysics(true ) == sd) countGeophysics++;
            if (sd.geophysics(false) == sd) countIndexed++;
        }
        if (countGeophysics == numBands) {
            return true;
        }
        if (countIndexed == numBands) {
View Full Code Here

Examples of org.geotools.coverage.GridSampleDimension.geophysics()

        /*
         * create the categories from the color rules
         */
        GridSampleDimension band = createGridSampleDimension(metaDataTable, range);
        band = band.geophysics(true);

        // create a relationship between the real region in the world and the
        // jai space. N.B. the
        // image dimension is only the real dimension which can be extract to a
        // file.
View Full Code Here

Examples of org.geotools.coverage.GridSampleDimension.geophysics()

        NumberRange.create(0, 0), NumberRange.create((short) -9999,
            (short) -9999));
    final GridSampleDimension band = new GridSampleDimension(
        "digital-elevation", new Category[] { nan }, uom);

    return band.geophysics(true);
  }

}
View Full Code Here

Examples of org.geotools.coverage.grid.GridCoverage2D.geophysics()

          symbolizerGC = (GridCoverage2D) rsp.getOutput();
      } else {
            symbolizerGC = preSymbolizer;
        }
        if (DEBUG) {
            writeRenderedImage( symbolizerGC.geophysics(false).getRenderedImage(),"postSymbolizer");
        }
        return symbolizerGC;
    }             

    /**
 
View Full Code Here

Examples of org.geotools.coverage.grid.GridCoverage2D.geophysics()

            return afterReprojection;
        }finally{
            if (DEBUG) {
                if(afterReprojection!=null){
                    writeRenderedImage(
                            afterReprojection.geophysics(false).getRenderedImage(),
                            "afterReprojection");
                }
            }
        }
    }
View Full Code Here

Examples of org.geotools.coverage.grid.GridCoverage2D.geophysics()

            outputCoverage=inputCoverage;
        }

        if (DEBUG) {
            writeRenderedImage(
                    outputCoverage.geophysics(false).getRenderedImage(),
                    "crop");
        }
        return outputCoverage;
       
    }
View Full Code Here

Examples of org.geotools.coverage.grid.GridCoverage2D.geophysics()

            //////******************Show Source***************************///////

            // coverage.show();
            /* Reproject the image */
            CoverageProcessor processor = CoverageProcessor.getInstance();
            coverage = coverage.geophysics(false);

            final ParameterValueGroup param = processor.getOperation("Resample").getParameters();

            param.parameter("Source").setValue(coverage);
            param.parameter("CoordinateReferenceSystem").setValue(gridCRS);
View Full Code Here

Examples of org.geotools.coverage.grid.GridCoverage2D.geophysics()

            param.parameter("CoordinateReferenceSystem").setValue(gridCRS);
            param.parameter("InterpolationType").setValue("bilinear");

            GridCoverage2D projected = (GridCoverage2D) processor.doOperation(param);
            final RenderedImage image = projected.getRenderedImage();
            projected = projected.geophysics(false);
                       
           
            WorldImageWriter writer = new WorldImageWriter((Object) (new File(
                                "/home/jezekjan/tmp/pp.png")));
                    writer.write(projected, null);
View Full Code Here

Examples of org.geotools.coverage.grid.GridCoverage2D.geophysics()

        param.parameter(arg2).setValue(value2);

        projected = (GridCoverage2D) processor.doOperation(param);

        final RenderedImage image = projected.getRenderedImage();
        projected = projected.geophysics(false);

        String operation = null;

        if (image instanceof RenderedOp) {
            operation = ((RenderedOp) image).getOperationName();
View Full Code Here

Examples of org.geotools.coverage.grid.GridCoverage2D.geophysics()

                    visual.getGridGeometry().getGridToCRS(),
                    bands, new GridCoverage[] { visual }, null);

        if (source != visual) {
            // TODO: needs to select the right type.
            return target.geophysics(true);
        }
        return target;
    }

    /**
 
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.