Examples of create()


Examples of org.geoserver.script.wps.ScriptProcessFactory.create()

        ScriptProcessFactory pf = new ScriptProcessFactory(scriptMgr);
        Name name = pf.getNames().iterator().next();
        assertEquals(getNamespace(), name.getNamespaceURI());
        assertEquals(getProcessName(), name.getLocalPart());

        org.geotools.process.Process p = pf.create(name);

        Geometry g = new WKTReader().read("POINT(0 0)");

        Map inputs = new HashMap();
        inputs.put("geom", g);

Examples of org.geoserver.wms.legendgraphic.ColorMapLegendCreator.Builder.create()

            // check the additional options before proceeding
            cmapLegendBuilder.checkAdditionalOptions();

            // instantiate the creator
            cMapLegendCreator = cmapLegendBuilder.create();

        } else
            cMapLegendCreator = null;

    }

Examples of org.geotools.coverage.grid.GridCoverageFactory.create()

    private GridCoverage convertToGridCoverage( IViewportModel viewportModel, BufferedImage image ) {
        ReferencedEnvelope env = viewportModel.getBounds();

        GridCoverageFactory factory = new GridCoverageFactory();

        GridCoverage2D gc = (GridCoverage2D) factory.create("GridCoverage", image, env); //$NON-NLS-1$
        return gc;
    }


}

Examples of org.geotools.coverage.io.geotiff.GeoTiffAccess.create()

                              DriverOperation.CREATE,
                              writeFile.toURI().toURL(),
                              null,
                              null,
                              null);
                        final CoverageStore gridStore = (CoverageStore) storeAccess
                                .create(name, null, null, null);

                        // write it down
                        gridStore.update(request, null);

Examples of org.geotools.feature.FeatureType.create()

            attbs[i] = oldFeature.getAttribute(i);
        }
        attbs[attbs.length - 2] = distance;
        attbs[attbs.length - 1] = bearing;
        try {
            return featureType.create(attbs, oldFeature.getID());
        } catch (Exception e) {
            LOGGER.severe("Error createing super feature: " + e); e.printStackTrace();
        }
        return null;
    }

Examples of org.geotools.gce.RasterManagerBuilder.create()

        endWalk();
       
        //
        // Create raster managers
        //
        this.elements=rasterManagerBuilder.create();
        rasterManagerBuilder.dispose();
    }

    protected abstract ImageReaderSource<?> getSource(int i)throws IOException;

Examples of org.geotools.gce.imagemosaic.properties.PropertiesCollectorSPI.create()

            } else {
                config = collector.getValue();
            }

            // create the PropertiesCollector
            final PropertiesCollector pc = selectedSPI.create(config,
                    Arrays.asList(collector.getMapped()));
            if (pc != null) {
                pcs.add(pc);
            } else {
                if (LOGGER.isLoggable(Level.INFO)) {

Examples of org.geotools.geometry.jts.LiteCoordinateSequenceFactory.create()

    public void testCreateSchemaAndInsertPolyTriangle() throws Exception {
        LiteCoordinateSequenceFactory csf = new LiteCoordinateSequenceFactory();
        GeometryFactory gf = new GeometryFactory(csf);

        LinearRing shell = gf.createLinearRing(csf.create(new double[] { 0, 0, 99, 1, 0, 33, 1, 1,
                66, 0, 0, 99 }, 3));
        Polygon poly = gf.createPolygon(shell, null);

        checkCreateSchemaAndInsert(poly);
    }

Examples of org.geotools.imageio.netcdf.utilities.RuntimeExtractorSPI.create()

        // acquire dataset
        final File file = TestData.file(this, "O3-NO2.nc");
        long lastModified = file.lastModified();

        final RuntimeExtractorSPI spi = new RuntimeExtractorSPI();
        final PropertiesCollector collector = spi.create("regex=MODIFY_TIME", Arrays.asList("updated"));
        final SimpleFeatureTypeBuilder featureTypeBuilder = new SimpleFeatureTypeBuilder();
        featureTypeBuilder.setName("runtimeT");
        featureTypeBuilder.add("updated", Date.class);
        SimpleFeatureType featureType = featureTypeBuilder.buildFeatureType();
        SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(featureType);

Examples of org.geotools.process.ProcessFactory.create()

       
        //execute the process
        Map<String,Object> result = null;
        Throwable error = null;
        try {
            Process p = pf.create(processName);
            result = p.execute( inputs, null );   
        }
        catch( Throwable t ) {
            //save the error to report back
            error = t;
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.