Examples of execute()


Examples of org.geotools.process.vector.LRSMeasureProcess.execute()

        LRSMeasureProcess process = new LRSMeasureProcess();
        SimpleFeatureCollection origional = source.getFeatures();
        Point point = geometryFactory.createPoint(new Coordinate(1.0, 0.0));

        try {
            FeatureCollection result = process.execute(origional, "from_lrs_bad", "to_lrs", point,
                    null);
            Assert.fail("Expected error from bad from_lrs name");
        } catch (ProcessException e) {
            // Successful
        }
View Full Code Here

Examples of org.geotools.process.vector.LRSSegmentProcess.execute()

        SimpleFeatureSource source = featureSource.getFeatureSource("lrssimple");
        LRSSegmentProcess process = new LRSSegmentProcess();
        SimpleFeatureCollection origional = source.getFeatures();

        try {
            FeatureCollection result = process.execute(origional, "from_lrs_bad", "to_lrs", 1.0,
                    2.0);
            Assert.fail("Expected error from bad from_lrs name");
        } catch (ProcessException e) {
            // Successful
        }
View Full Code Here

Examples of org.geotools.process.vector.PointStackerProcess.execute()

       
        SimpleFeatureCollection fc = createPoints(data, bounds);
        ProgressListener monitor = null;

        PointStackerProcess psp = new PointStackerProcess();
        SimpleFeatureCollection result = psp.execute(fc, 100, // cellSize
                null, // normalize
                null, // preserve location
                bounds, // outputBBOX
                1000, // outputWidth
                1000, // outputHeight
View Full Code Here

Examples of org.geotools.process.vector.TransformProcess.execute()

        "name=name\n"+
        "area=area( the_geom )";
   
    TransformProcess process = new TransformProcess();
   
    SimpleFeatureCollection features = process.execute( featureCollection, transform );
    // transform end
}
}
View Full Code Here

Examples of org.geotools.process.vector.UnionFeatureCollection.execute()

            secondArrayGeometry[numFeatures] = gf.createPolygon(shell, null);
            secondFeatures.add(b.buildFeature(numFeatures + ""));

        }
        UnionFeatureCollection process = new UnionFeatureCollection();
        SimpleFeatureCollection output = process.execute(features, secondFeatures);
        assertEquals(5, output.size());

        Geometry[] union = new Geometry[10];
        for (int i = 0; i < firstArrayGeometry.length; i++) {
            union[i] = firstArrayGeometry[i];
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerHelper.execute()

                .rules().get(0).symbolizers().get(0);

        SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(coverage,
                null);
        rsh.visit(symbolizer);
        GridCoverage2D g = ((GridCoverage2D) rsh.execute()).geophysics(false);
        return g;
    }

}
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.SubchainStyleVisitorCoverageProcessingAdapter.execute()

                .rules().get(0).symbolizers().get(0);

        SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(coverage,
                null);
        rsh.visit(symbolizer);
        GridCoverage2D g = ((GridCoverage2D) rsh.execute()).geophysics(false);
        return g;
    }

}
View Full Code Here

Examples of org.gephi.datalab.spi.rows.merge.AttributeRowsMergeStrategy.execute()

        for (int i = 0; i < columns.length; i++) {
            mergeStrategy = mergeStrategies[i];
            if (mergeStrategy != null) {
                mergeStrategy.setup(rows, selectedRow, columns[i]);
                if (mergeStrategy.canExecute()) {
                    mergeStrategy.execute();
                    value = mergeStrategy.getReducedValue();
                } else {
                    value = selectedRow.getValue(columns[i].getIndex());
                }
            } else {
View Full Code Here

Examples of org.gephi.desktop.datalab.general.actions.AddColumnUI.execute()

        addColumnUI.setup(mode);
        addColumnUI.setOkButton(okButton);
        DialogDescriptor dd = new DialogDescriptor(AddColumnUI.createValidationPanel(addColumnUI), addColumnUI.getDisplayName());
        dd.setOptions(new Object[]{okButton, DialogDescriptor.CANCEL_OPTION});
        if (DialogDisplayer.getDefault().notify(dd).equals(okButton)) {
            addColumnUI.execute();
        }
        addColumnUI.unSetup();
    }

    private void showMergeColumnsUI(MergeColumnsUI.Mode mode) {
View Full Code Here

Examples of org.gephi.desktop.datalab.general.actions.MergeColumnsUI.execute()

        mergeColumnsUI.setup(mode);
        mergeColumnsUI.setOkButton(okButton);
        DialogDescriptor dd = new DialogDescriptor(MergeColumnsUI.createValidationPanel(mergeColumnsUI), mergeColumnsUI.getDisplayName());
        dd.setOptions(new Object[]{okButton, DialogDescriptor.CANCEL_OPTION});
        if (DialogDisplayer.getDefault().notify(dd).equals(okButton)) {
            mergeColumnsUI.execute();
        }
    }

    /**************General actions manipulators related methods:***************/
    private void refreshGeneralActionsButtons() {
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.