Package org.geotools.grid

Examples of org.geotools.grid.DefaultGridFeatureBuilder


        assertEquals(setter.id, gridSource.getFeatures().size());
    }
   
    @Test(expected=IllegalArgumentException.class)
    public void createGrid_InvalidBounds() {
        Oblongs.createGrid(ReferencedEnvelope.EVERYTHING, 1.0, 1.0, new DefaultGridFeatureBuilder());
    }
View Full Code Here


        Oblongs.createGrid(ReferencedEnvelope.EVERYTHING, 1.0, 1.0, new DefaultGridFeatureBuilder());
    }

    @Test(expected=IllegalArgumentException.class)
    public void createGrid_NullBounds() {
        Oblongs.createGrid(null, 1.0, 1.0, new DefaultGridFeatureBuilder());
    }
View Full Code Here

        Oblongs.createGrid(null, 1.0, 1.0, new DefaultGridFeatureBuilder());
    }
   
    @Test(expected=IllegalArgumentException.class)
    public void createGrid_badWidth() {
        Oblongs.createGrid(new ReferencedEnvelope(0, 10, 0, 10, null), 0, 1.0, new DefaultGridFeatureBuilder());
    }
View Full Code Here

        Oblongs.createGrid(new ReferencedEnvelope(0, 10, 0, 10, null), 0, 1.0, new DefaultGridFeatureBuilder());
    }

    @Test(expected=IllegalArgumentException.class)
    public void createGrid_badHeight() {
        Oblongs.createGrid(new ReferencedEnvelope(0, 10, 0, 10, null), 1, 0, new DefaultGridFeatureBuilder());
    }
View Full Code Here

    @Test(expected=IllegalArgumentException.class)
    public void createGrid_MisMatchedCRS() {
        try {
        ReferencedEnvelope env = new ReferencedEnvelope(0, 10, 0, 10, DefaultGeographicCRS.WGS84);
        CoordinateReferenceSystem otherCRS = CRS.parseWKT(getSydneyWKT());
        GridFeatureBuilder builder = new DefaultGridFeatureBuilder(otherCRS);

        Oblongs.createGrid(env, 0, 1.0, builder);
       
        } catch (FactoryException ex) {
            throw new IllegalStateException("Error in test code");
View Full Code Here

TOP

Related Classes of org.geotools.grid.DefaultGridFeatureBuilder

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.