Package org.opengis.util

Examples of org.opengis.util.ProgressListener


            IGeoResource scratch = CatalogPlugin.getDefault().getLocalCatalog().createTemporaryResource( featureType );
            final SimpleFeatureStore store = scratch.resolve(SimpleFeatureStore.class, SubMonitor.convert(monitor,Messages.ReshapeOperation_createTempSpaceTask, 10));
           
            store.setTransaction( transaction );
           
            ProgressListener progessListener = GeoToolsAdapters.progress( SubMonitor.convert(monitor,"processing "+source.getName(), 90));         //$NON-NLS-1$

            output.accepts(new FeatureVisitor(){
                boolean warning = true;
                public void visit( Feature rawFeature ) {
                    SimpleFeature feature = (SimpleFeature) rawFeature;
View Full Code Here


    public final static int CANCEL_ID = 38;

    StyleLayer selectedLayer;

    public ProgressListener getProgressListener() {
        ProgressListener cancelProgress = new NullProgressListener();
        return cancelProgress ;
    }
View Full Code Here

            IGeoResource scratch = CatalogPlugin.getDefault().getLocalCatalog().createTemporaryResource( featureType );
            final SimpleFeatureStore store = scratch.resolve(SimpleFeatureStore.class, SubMonitor.convert(monitor,Messages.ReshapeOperation_createTempSpaceTask, 10));
           
            store.setTransaction( transaction );
           
            ProgressListener progessListener = GeoToolsAdapters.progress( SubMonitor.convert(monitor,"processing "+source.getName(), 90));         //$NON-NLS-1$

            output.accepts(new FeatureVisitor(){
                boolean warning = true;
                public void visit( Feature rawFeature ) {
                    SimpleFeature feature = (SimpleFeature) rawFeature;
View Full Code Here

                    }
                   
          if (createClassifier) {
            function = (ClassificationFunction) ff.function(fn.getFunctionName(), new Expression[fn.getArgumentCount()]);
           
            ProgressListener cancelProgress = ((StyleEditorDialog) getContainer()).getProgressListener();
            function.setProgressListener((org.geotools.util.ProgressListener) cancelProgress);
            numClasses = new Integer(getCombo(COMBO_CLASSES).getText()).intValue();

            if (getCombo(COMBO_ELSE).getSelectionIndex() == 0) {
              // function.setNumberOfClasses(numClasses);
View Full Code Here

                    //count the number of unique attributes
                    int uniqueCount = -1;
                    try {
                        Expression attr = ff.property(attribute);
                        UniqueVisitor uniques = new UniqueVisitor(attr);
                        ProgressListener progress = new NullProgressListener();
                        collection.accepts(uniques, progress);
                        uniqueCount = uniques.getUnique().size();
                    } catch (IOException e1) {
                        SLDPlugin.log("unique values calculation failed", e1); //$NON-NLS-1$
                    }
View Full Code Here

     * Executes process and returns results as Java data types
     *
     * @return
     */
    public Map<String, Object> execute() throws ProcessException {
        ProgressListener progress = null;

        Map<String, Object> outputs = this.process.execute(this.inputs, progress);

        this.checkOutputs(outputs);

View Full Code Here

          ReferencedEnvelope bounds = new ReferencedEnvelope(rasterx0, rasterx1, rastery0, rastery1,crs);

              Dimension gridDim = new Dimension(rasterpixelwidth, rasterpixelheight);

              String covName = layername;
              ProgressListener monitor = null;

              GridCoverage2D cov = VectorToRasterProcess.process(features, rasterAttribName, gridDim, bounds, covName, monitor);
              LOGGER.debug("CRS :"+cov.getCoordinateReferenceSystem().toWKT());
//              System.out.println(cov.toString());
View Full Code Here

          ReferencedEnvelope bounds = new ReferencedEnvelope(rasterx0, rasterx1, rastery0, rastery1,crs);

              Dimension gridDim = new Dimension(rasterpixelwidth, rasterpixelheight);

              String covName = layername;
              ProgressListener monitor = null;

              GridCoverage2D cov = VectorToRasterProcess.process(features, rasterAttribName, gridDim, bounds, covName, monitor);
              LOGGER.debug("CRS :"+cov.getCoordinateReferenceSystem().toWKT());
//              System.out.println(cov.toString());
View Full Code Here

        GeoTiffWriter writer = new GeoTiffWriter(output);
       
        // Setting a COPYRIGHT metadata       
        ParameterValue<ProgressListener> listener = GeoTiffFormat.PROGRESS_LISTENER.createValue();
       
        listener.setValue(new ProgressListener(){
                private boolean canceled;

                @Override
                public InternationalString getTask() {
                    // TODO Auto-generated method stub
View Full Code Here

                        throws IllegalArgumentException, IOException,
                        IndexOutOfBoundsException {

                GeoToolsWriteParams gtParams = null;
                boolean writeTfw=GeoTiffFormat.WRITE_TFW.getDefaultValue();
                ProgressListener listener=null;
                boolean retainAxesOrder = false;
                if (params != null) {
                        // /////////////////////////////////////////////////////////////////////
                        //
                        // Checking params
View Full Code Here

TOP

Related Classes of org.opengis.util.ProgressListener

Copyright © 2018 www.massapicom. 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.