Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ReservedNames = []string{"regular", "singlecell"}
Functions ¶
Types ¶
type Cell ¶
type Cell struct { URI string CRS *godal.SpatialRef PixelToCRS *affine.Affine // Transform from pixel to crs/geometric coordinates SizeX, SizeY int GeographicRing proj.GeographicRing // lon/lat geodetic coordinates Ring proj.Ring // coordinates in the CRS }
Cell is a polygon with a resolution on the surface of the Earth defined using either a WGS84 polygon or a projected polygon. Which of them is the reference
type Grid ¶
type RegularGrid ¶
type RegularGrid struct {
// contains filtered or unexported fields
}
RegularGrid in a given CRS with an origin and a spatial resolution parameters: - "crs" in gdal understandable format - "cell_size" or ("cell_x_size", "cell_y_size"): size of the cell - "resolution" in crs unit - "ox", "oy" origin in crs unit - "memory_limit" to prevent crash when covering a large aoi
func (*RegularGrid) Cell ¶
func (rg *RegularGrid) Cell(uri string) (*Cell, error)
Cell implements Grid and returns a Cell in the regular grid with the provided URI (format : i/j))
func (*RegularGrid) Covers ¶
func (rg *RegularGrid) Covers(ctx context.Context, geomAOI *geom.MultiPolygon) (<-chan StreamedURI, error)
Covers implements Grid
type SingleCellGrid ¶
type SingleCellGrid struct {
// contains filtered or unexported fields
}
func (*SingleCellGrid) Cell ¶
func (cg *SingleCellGrid) Cell(uri string) (*Cell, error)
Cell implements Grid and returns the Single Cell given the URI (format : originX/originY/sizeX/sizeY)
func (*SingleCellGrid) Covers ¶
func (cg *SingleCellGrid) Covers(ctx context.Context, geomAOI *geom.MultiPolygon) (<-chan StreamedURI, error)
Covers
type StreamedURI ¶ added in v0.3.0
type UnsupportedGridErr ¶ added in v0.3.0
type UnsupportedGridErr struct {
GridName string
}
UnsupportedGrid is raised when the GridName is not supported
func (UnsupportedGridErr) Error ¶ added in v0.3.0
func (err UnsupportedGridErr) Error() string