Class RegularGridImpl

    • Constructor Detail

      • RegularGridImpl

        public RegularGridImpl​(RegularAxis xAxis,
                               RegularAxis yAxis,
                               org.opengis.referencing.crs.CoordinateReferenceSystem crs)
      • RegularGridImpl

        public RegularGridImpl​(BoundingBox bbox,
                               int width,
                               int height)

        Constructs a RegularGrid from the given bounding box, with the given width and height. Note that the bounding box represents the edges of the grid, whereas grid coordinates represent the centre of the grid points.

        The coordinate reference system of the returned grid will be taken from the CRS of the bounding box. If this is null, the names of the axes will be set to "Unknown X axis" and "Unknown Y axis".

        Parameters:
        bbox - The bounding box of the grid
        width - the number of grid points in the x direction
        height - the number of grid points in the y direction
      • RegularGridImpl

        public RegularGridImpl​(double[] bbox,
                               org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                               int width,
                               int height)
        Constructs a RegularGrid from the given bounding box, with the given width and height. Note that the bounding box represents the edges of the grid, whereas grid coordinates represent the centre of the grid points.
        Parameters:
        bbox - the bounding box, in the form: [minx, miny, maxx, maxy]
        crs - the CoordinateReferenceSystem of the bounding box
        width - the number of grid points in the x direction
        height - the number of grid points in the y direction
      • RegularGridImpl

        public RegularGridImpl​(double minx,
                               double miny,
                               double maxx,
                               double maxy,
                               org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                               int width,
                               int height)
        Constructs a RegularGrid from the given bounding box, with the given width and height. Note that the bounding box represents the edges of the grid, whereas grid coordinates represent the centre of the grid points.
        Parameters:
        minx - the minimum x value of the bounding box
        miny - the minimum y value of the bounding box
        maxx - the maximum x value of the bounding box
        maxy - the maximum y value of the bounding box
        crs - the CoordinateReferenceSystem
        width - the number of grid points in the x-direction
        height - the number of grid points in the y-direction