Package org.geotools.parameter

Examples of org.geotools.parameter.ParameterGroup


            info1.put("description", //$NON-NLS-1$
                    "A raster file accompanied by a spatial data file"); //$NON-NLS-1$
            info1.put("vendor", "Geotools"); //$NON-NLS-1$ //$NON-NLS-2$
            info1.put("docURL", "http://www.geotools.org/WorldImageReader+formats"); //$NON-NLS-1$ //$NON-NLS-2$
            info1.put("version", "1.0"); //$NON-NLS-1$ //$NON-NLS-2$
            this.readParams = new ParameterGroup(new DefaultParameterDescriptorGroup(info1,
                    new GeneralParameterDescriptor[] { gridGeometryDescriptor }));
        }
        return this.readParams;
    }
View Full Code Here


     * @return
     * @throws IOException
     */
    protected GridCoverage loadCoverage() throws IOException {
        AbstractGridCoverage2DReader reader = this.service(new NullProgressMonitor()).getReader(null);
        ParameterGroup pvg = getReadParameters();
        List<GeneralParameterValue> list = pvg.values();
        GeneralParameterValue[] values = list.toArray(new GeneralParameterValue[0]);
        GridCoverage gridCoverage = reader.read(values);
        return gridCoverage;
    }
View Full Code Here

            info1.put("description", //$NON-NLS-1$
                    "A raster file accompanied by a spatial data file"); //$NON-NLS-1$
            info1.put("vendor", "Geotools"); //$NON-NLS-1$ //$NON-NLS-2$
            info1.put("docURL", "http://www.geotools.org/WorldImageReader+formats"); //$NON-NLS-1$ //$NON-NLS-2$
            info1.put("version", "1.0"); //$NON-NLS-1$ //$NON-NLS-2$
            return new ParameterGroup(new DefaultParameterDescriptorGroup(info1,
                    new GeneralParameterDescriptor[]{crs, gridGeometryDescriptor}));

        } catch (MalformedURLException e) {
            CatalogPlugin.getDefault().getLog().log(
                    new org.eclipse.core.runtime.Status(IStatus.WARNING,
View Full Code Here

      GridGeometry2D world = new GridGeometry2D(gridRange,  new ReferencedEnvelope(gcRaw.getEnvelope()));
      DefaultParameterDescriptor<GridGeometry> gridGeometryDescriptor = new DefaultParameterDescriptor<GridGeometry>(
          AbstractGridFormat.READ_GRIDGEOMETRY2D.getName()
              .toString(), GridGeometry.class, null, world);

      ParameterGroup readParams = new ParameterGroup(
          new DefaultParameterDescriptorGroup(
              "Test", //$NON-NLS-1$
              new GeneralParameterDescriptor[] { gridGeometryDescriptor }));

      List<GeneralParameterValue> list = readParams.values();
      GeneralParameterValue[] values = list
          .toArray(new GeneralParameterValue[0]);
      gcRaw = layer.read(values);
    }
     
View Full Code Here

      GridGeometry2D world = new GridGeometry2D(gridRange,  new ReferencedEnvelope(gcRaw.getEnvelope()));
      DefaultParameterDescriptor<GridGeometry> gridGeometryDescriptor = new DefaultParameterDescriptor<GridGeometry>(
          AbstractGridFormat.READ_GRIDGEOMETRY2D.getName()
              .toString(), GridGeometry.class, null, world);

      ParameterGroup readParams = new ParameterGroup(
          new DefaultParameterDescriptorGroup(
              "Test", //$NON-NLS-1$
              new GeneralParameterDescriptor[] { gridGeometryDescriptor }));

      List<GeneralParameterValue> list = readParams.values();
      GeneralParameterValue[] values = list
          .toArray(new GeneralParameterValue[0]);
      gcRaw = layer.read(values);
    }
           
View Full Code Here

      GridGeometry2D world = new GridGeometry2D(gridRange,  new ReferencedEnvelope(gcRaw.getEnvelope()));
      DefaultParameterDescriptor<GridGeometry> gridGeometryDescriptor = new DefaultParameterDescriptor<GridGeometry>(
          AbstractGridFormat.READ_GRIDGEOMETRY2D.getName()
              .toString(), GridGeometry.class, null, world);

      ParameterGroup readParams = new ParameterGroup(
          new DefaultParameterDescriptorGroup(
              "Test", //$NON-NLS-1$
              new GeneralParameterDescriptor[] { gridGeometryDescriptor }));

      List<GeneralParameterValue> list = readParams.values();
      GeneralParameterValue[] values = list
          .toArray(new GeneralParameterValue[0]);
      gcRaw = layer.read(values);
    }
           
View Full Code Here

    info.put("docURL", "http://www.geotools.org/WorldImageReader+formats");
    info.put("version", "1.0");
    mInfo = info;

    // reading parameters
    readParameters = new ParameterGroup(
        new DefaultParameterDescriptorGroup(
            mInfo,
            new GeneralParameterDescriptor[] { READ_GRIDGEOMETRY2D, }));

    // writing parameters
    writeParameters = new ParameterGroup(
        new DefaultParameterDescriptorGroup(mInfo,
            new GeneralParameterDescriptor[] { FORMAT }));
  }
View Full Code Here

    mInfo.put("vendor", "Geotools");
    mInfo.put("version", "1.1");
    mInfo.put("docURL""http://www.remotesensing.org/geotiff/spec/geotiffhome.html");

    // reading parameters
    readParameters = new ParameterGroup(
        new DefaultParameterDescriptorGroup(
            mInfo,
            new GeneralParameterDescriptor[] { READ_GRIDGEOMETRY2D,INPUT_TRANSPARENT_COLOR,SUGGESTED_TILE_SIZE }));

    // writing parameters
    writeParameters = new ParameterGroup(
        new DefaultParameterDescriptorGroup(
            mInfo,
            new GeneralParameterDescriptor[] {RETAIN_AXES_ORDER,AbstractGridFormat.GEOTOOLS_WRITE_PARAMS,AbstractGridFormat.PROGRESS_LISTENER }));

  }
View Full Code Here

    info.put("docURL", "");
    info.put("version", "1.0");
    mInfo = info;

        // reading parameters
        readParameters = new ParameterGroup(new DefaultParameterDescriptorGroup(mInfo,
                new GeneralParameterDescriptor[]{
            READ_GRIDGEOMETRY2D,
            INPUT_TRANSPARENT_COLOR,
                ImageMosaicFormat.OUTPUT_TRANSPARENT_COLOR,
                USE_JAI_IMAGEREAD,
View Full Code Here

    /**
     * Returns the parameters for this math transform.
     */
    @Override
    public ParameterValueGroup getParameterValues() {
        return new ParameterGroup(getParameterDescriptors(),
               new ParameterValue[] {new Parameter(Provider.ORDER, nmax)});
    }
View Full Code Here

TOP

Related Classes of org.geotools.parameter.ParameterGroup

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.