Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions rasterio_generated/fixtures/uint8_1band_lzma_block64.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""Generate a basic uint8 GeoTIFF."""

from pathlib import Path

import numpy as np

from rasterio_generated.write_utils import write_cog

HERE = Path(__file__).parent


def generate(output_path: Path) -> None:
"""Generate a basic 256x256 uint8 GeoTIFF wdith gradient pattern."""
data = np.arange(128, dtype=np.uint8).reshape(1, 128)
data = np.repeat(data, 128, axis=0)

write_cog(
output_path,
data,
blocksize=64,
compress="LZMA",
nodata=0,
)
Binary file not shown.
47 changes: 47 additions & 0 deletions rasterio_generated/fixtures/uint8_1band_lzma_block64_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
```
Driver: GTiff
File: rasterio_generated/fixtures/uint8_1band_lzma_block64.tif
COG: True
Compression: LZMA
ColorSpace: None

Profile
Width: 128
Height: 128
Bands: 1
Tiled: True
Dtype: uint8
NoData: 0.0
Alpha Band: False
Internal Mask: False
Interleave: BAND
ColorMap: False
ColorInterp: ('gray',)
Scales: (1.0,)
Offsets: (0.0,)

Geo
Crs: EPSG:4326
Origin: (0.0, 0.0)
Resolution: (0.01, -0.01)
BoundingBox: (0.0, -1.28, 1.28, 0.0)
MinZoom: 7
MaxZoom: 7

Image Metadata
AREA_OR_POINT: Area

Image Structure
LAYOUT: COG
COMPRESSION: LZMA
INTERLEAVE: BAND
OVERVIEW_RESAMPLING: BILINEAR

Band 1
ColorInterp: gray

IFD
Id Size BlockSize Decimation
0 128x128 64x64 0
1 64x64 64x64 2
```