@Test public void testNoInside() throws Exception { System.out.println(" ignore inside edges"); final float[][] DATA = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 1, 1, 2, 2, 2, 3, 3, 0}, {0, 1, 1, 1, 2, 2, 2, 3, 3, 0}, {0, 1, 1, 1, 2, 2, 2, 3, 3, 0}, {0, 4, 4, 5, 5, 5, 6, 6, 6, 0}, {0, 4, 4, 5, 5, 5, 6, 6, 6, 0}, {0, 4, 4, 5, 5, 5, 6, 6, 6, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0} }; final int width = DATA[0].length; final int height = DATA.length; GridCoverage2D cov = covFactory.create( "coverage", DATA, new ReferencedEnvelope(0, width, 0, height, null)); int band = 0; ProgressListener progress = null; SimpleFeatureCollection fc = RasterToVectorProcess.process(cov, band, null, Collections.singleton(0.0), false, progress); assertEquals(1, fc.size()); Geometry geom = (Geometry) fc.features().next().getDefaultGeometry(); Envelope env = geom.getEnvelopeInternal(); assertEquals(new Envelope(1, width-1, 1, height-1), env); }
public static SimpleFeatureCollection process( GridCoverage2D cov, int band, Envelope bounds, Collection<Double> outsideValues, boolean insideEdges, ProgressListener monitor) throws ProcessException { RasterToVectorFactory factory = new RasterToVectorFactory(); RasterToVectorProcess process = factory.create(); return process.convert(cov, band, bounds, outsideValues, insideEdges, monitor); }
RasterToVectorProcess extends AbstractProcess { public static SimpleFeatureCollection process( GridCoverage2D cov, int band, Envelope bounds, Collection<Double> outsideValues, boolean insideEdges, ProgressListener monitor) throws ProcessException { RasterToVectorFactory factory = new RasterToVectorFactory(); RasterToVectorProcess process = factory.create(); return process.convert(cov, band, bounds, outsideValues, insideEdges, monitor); } }
RasterToVectorProcess extends AbstractProcess { public static SimpleFeatureCollection process( GridCoverage2D cov, int band, Envelope bounds, Collection<Double> outsideValues, boolean insideEdges, ProgressListener monitor) throws ProcessException { RasterToVectorFactory factory = new RasterToVectorFactory(); RasterToVectorProcess process = factory.create(); return process.convert(cov, band, bounds, outsideValues, insideEdges, monitor); } RasterToVectorProcess(ProcessFactory factory); }
RasterToVectorProcess extends AbstractProcess { public static SimpleFeatureCollection process( GridCoverage2D cov, int band, Envelope bounds, Collection<Double> outsideValues, boolean insideEdges, ProgressListener monitor) throws ProcessException { RasterToVectorFactory factory = new RasterToVectorFactory(); RasterToVectorProcess process = factory.create(); return process.convert(cov, band, bounds, outsideValues, insideEdges, monitor); } RasterToVectorProcess(ProcessFactory factory); Map<String, Object> execute(Map<String, Object> input, ProgressListener monitor); static SimpleFeatureCollection process(
            GridCoverage2D cov,
            int band,
            Envelope bounds,
            Collection<Double> outsideValues,
            boolean insideEdges,
            ProgressListener monitor); }
RasterToVectorProcess extends AbstractProcess { public static SimpleFeatureCollection process( GridCoverage2D cov, int band, Envelope bounds, Collection<Double> outsideValues, boolean insideEdges, ProgressListener monitor) throws ProcessException { RasterToVectorFactory factory = new RasterToVectorFactory(); RasterToVectorProcess process = factory.create(); return process.convert(cov, band, bounds, outsideValues, insideEdges, monitor); } RasterToVectorProcess(ProcessFactory factory); Map<String, Object> execute(Map<String, Object> input, ProgressListener monitor); static SimpleFeatureCollection process(
            GridCoverage2D cov,
            int band,
            Envelope bounds,
            Collection<Double> outsideValues,
            boolean insideEdges,
            ProgressListener monitor);  }