@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"); } catch (MismatchedDimensionException ex) { throw new IllegalStateException("Error in test code"); } }
public static SimpleFeatureSource createGrid(ReferencedEnvelope bounds, double width, double height, GridFeatureBuilder gridBuilder) { return createGrid(bounds, width, height, -1.0, gridBuilder); }
Oblongs { public static SimpleFeatureSource createGrid(ReferencedEnvelope bounds, double width, double height, GridFeatureBuilder gridBuilder) { return createGrid(bounds, width, height, -1.0, gridBuilder); } }
Oblongs { public static SimpleFeatureSource createGrid(ReferencedEnvelope bounds, double width, double height, GridFeatureBuilder gridBuilder) { return createGrid(bounds, width, height, -1.0, gridBuilder); }  }
Oblongs { public static SimpleFeatureSource createGrid(ReferencedEnvelope bounds, double width, double height, GridFeatureBuilder gridBuilder) { return createGrid(bounds, width, height, -1.0, gridBuilder); }  static Oblong create(double minX, double minY, double width, double height,
            CoordinateReferenceSystem crs); static SimpleFeatureSource createGrid(ReferencedEnvelope bounds,
            double width, double height, GridFeatureBuilder gridBuilder); static SimpleFeatureSource createGrid(
            ReferencedEnvelope bounds,
            double width, double height, 
            double vertexSpacing, GridFeatureBuilder gridFeatureBuilder); }
Oblongs { public static SimpleFeatureSource createGrid(ReferencedEnvelope bounds, double width, double height, GridFeatureBuilder gridBuilder) { return createGrid(bounds, width, height, -1.0, gridBuilder); }  static Oblong create(double minX, double minY, double width, double height,
            CoordinateReferenceSystem crs); static SimpleFeatureSource createGrid(ReferencedEnvelope bounds,
            double width, double height, GridFeatureBuilder gridBuilder); static SimpleFeatureSource createGrid(
            ReferencedEnvelope bounds,
            double width, double height, 
            double vertexSpacing, GridFeatureBuilder gridFeatureBuilder);  }