Examples of GridFeatureBuilder


Examples of org.geotools.grid.GridFeatureBuilder

    @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

Examples of org.geotools.grid.GridFeatureBuilder

            @DescribeParameter(name = "width", description = "Width of a cell (in units of the grid CRS)") double width,
            @DescribeParameter(name = "height", description = "Height of a cell (in units of the grid CRS).  Only for rectangular grid, defaults to equal width.", min = 0) Double height,
            @DescribeParameter(name = "vertexSpacing", description = "Distance between vertices along cell sides (in units of the grid CRS)", min = 0) Double vertexSpacing,
            @DescribeParameter(name = "mode", description = "Type of grid to be generated.  Specifies shape of cells in grid.", defaultValue = "Rectangular") GridMode mode)
            throws ProcessException {
        final GridFeatureBuilder builder = new GridFeatureBuilderImpl(bounds
                .getCoordinateReferenceSystem());
        double h = height != null ? height : width;

        SimpleFeatureSource source;
        if (mode == null || mode == GridMode.Rectangular) {
View Full Code Here
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.