/** Copernicus GLO-30 tile naming: `Copernicus_DSM_COG_10_dd_00_ddd_00_DEM`, named for the cell's SOUTH-WEST corner. */ /** A cell is named by the integer degrees of its south-west corner. */ export interface DemCell { latIdx: number; lonIdx: number; } /** Cells past this are a mistake (a projection fed in degrees, a planet-sized bounds), not a city. */ export declare const MAX_DEM_CELLS = 64; export declare function demCellId(cell: DemCell): string; /** The cell that OWNS a sample at lon/lat: columns run west to east from the cell's west edge, rows north to south from its north edge. */ export declare function owningCell(lonDeg: number, latDeg: number): DemCell; /** * The tile ids whose cell the rectangle overlaps in area, so the exact cell rectangle (-123, 37, -122, 38) is the single * tile `..._N37_00_W123_00_...` and a degenerate rectangle (a point) is the tile holding it. The one-pixel strip at a * cell's south and east edge that bilinear sampling reads from the neighbour is the caller's padding to add. * Throws when the rectangle crosses the antimeridian (its longitudes would have to wrap), which this module does not do. */ export declare function copernicusTileIds(minLon: number, minLat: number, maxLon: number, maxLat: number): string[]; export declare function demCells(minLon: number, minLat: number, maxLon: number, maxLat: number): DemCell[];