Examples of view()


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

        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
        reprojected = reprojected.view(ViewType.RENDERED);
       
        ImageViewer.show(gridCoverage, "Normal Grid Coverage");
        ImageViewer.show(reprojected, "Reprojected Grid Coverage");
    }
}
View Full Code Here

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

        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
        reprojected = reprojected.view(ViewType.RENDERED);
       
        ViewerOld.show(gridCoverage, "Normal Grid Coverage");
        ViewerOld.show(reprojected, "Reprojected Grid Coverage");
    }   
}
View Full Code Here

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

                                    GridCoverage2D geodata = null;
                                    CoordinateReferenceSystem fileCrs = null;
                                    if (mapFile.getName().toLowerCase().endsWith(".asc")) {
                                        ArcGridReader arcGridReader = new ArcGridReader(mapFile);
                                        geodata = arcGridReader.read(null);
                                        geodata = geodata.view(ViewType.GEOPHYSICS);
                                        geodata = JGrassCatalogUtilities.removeNovalues(geodata);
                                        fileCrs = arcGridReader.getCrs();
                                    } else if (mapFile.getName().toLowerCase().endsWith(".tif")
                                            || mapFile.getName().toLowerCase().endsWith(".tiff")) {
                                        GeoTiffReader geotiffGridReader = new GeoTiffReader(mapFile);
View Full Code Here

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

                                        fileCrs = arcGridReader.getCrs();
                                    } else if (mapFile.getName().toLowerCase().endsWith(".tif")
                                            || mapFile.getName().toLowerCase().endsWith(".tiff")) {
                                        GeoTiffReader geotiffGridReader = new GeoTiffReader(mapFile);
                                        geodata = geotiffGridReader.read(null);
                                        geodata = geodata.view(ViewType.GEOPHYSICS);
                                        geodata = JGrassCatalogUtilities.removeNovalues(geodata);
                                        fileCrs = geotiffGridReader.getCrs();
                                    }

                                    // if required, reproject
View Full Code Here

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

                                    AbstractGridFormat format = (AbstractGridFormat) new GrassCoverageFormatFactory()
                                            .createFormat();
                                    GridCoverageReader reader = format.getReader(mapEnvironment.getCELL());
                                    GridCoverage2D geodata = ((GridCoverage2D) reader.read(readParams));
                                    geodata = geodata.view(ViewType.GEOPHYSICS);

                                    final ArcGridFormat format1 = new ArcGridFormat();
                                    final ArcGridWriteParams wp = new ArcGridWriteParams();
                                    final ParameterValueGroup paramWrite = format1.getWriteParameters();
                                    paramWrite.parameter(AbstractGridFormat.GEOTOOLS_WRITE_PARAMS.getName().toString()).setValue(
View Full Code Here

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

                GridEnvelope range = reader.getOriginalGridRange();
                GeneralEnvelope env = reader.getOriginalEnvelope();
                GridGeometry2D all = new GridGeometry2D(range, env);
                GridCoverage2D coverage2d = (GridCoverage2D) super.load(all, monitor);
                RenderedImage image = coverage2d.view(ViewType.RENDERED).getRenderedImage();

        RasteringsPlugin
            .log("WARNING.  Loading image fully into memory.  It is about " + size(image) + " MB in size decompressed", null); //$NON-NLS-1$//$NON-NLS-2$

                @SuppressWarnings("rawtypes")
View Full Code Here

Examples of org.grouplens.lenskit.vectors.MutableSparseVector.view()

        if(values.length != getObjectCount()){
            throw new IllegalArgumentException("Value array has incorrect length");
        }

        MutableSparseVector newSparseVector = MutableSparseVector.create(ids);
        for(VectorEntry e : newSparseVector.view(State.EITHER)){
            final int iid = getIndex(e.getKey());
            newSparseVector.set(e, values[iid]);
        }
        return newSparseVector;
    }
View Full Code Here

Examples of org.jboss.on.embedded.ui.SummaryAction.view()

        navAction.setCurrentPath(node.getPath());

        SummaryAction action = new SummaryAction();
        action.setNavigationAction(navAction);

        String outcome = action.view();
        log.debug("Name=[" + node.getName() + ", Path=[" + node.getPath() + "], outcome=[" + outcome + "].");
    }

    @Test(dependsOnMethods = {"testVisitEachNode"})
    // executes NavigationAction.getBreadcrumb for each node
View Full Code Here

Examples of org.jitterbit.integration.client.plugin.ui.pipeline.PipelinePluginInfoDialogViewer.view()

        }

        private void viewPluginInfo(PluginIdentifier id) {
            PipelinePluginInfoDialogViewer dialog = new PipelinePluginInfoDialogViewer();
            dialog.setManifestCache(projectPlugins.getManifestCache());
            dialog.view(id);
        }
    }


    private class CheckAvailabilityAction extends AbstractAction {
View Full Code Here

Examples of org.jitterbit.ui.xml.XmlTextViewer.view()

            @Override
            public void run() {
                if (textArea == null) {
                    textArea = new KongaTextPane();
                    XmlTextViewer viewer = new XmlTextViewer(textArea);
                    viewer.view(xmlFile.getFileObject());
                    textArea.setEditable(false);
                    copyAction = new CopyAction(textArea);
                }
                SwingUtilities.invokeLater(new Runnable() {
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.