@@ -28,19 +28,19 @@ use crate::io::geotiff::{CogReader, read_geotiff};
2828///
2929/// Examples
3030/// --------
31- /// Read a GeoTIFF from a HTTP url into a numpy.ndarray::
31+ /// Read a GeoTIFF from a HTTP url into a numpy.ndarray:
3232///
33- /// >>> import numpy as np
34- /// >>> from cog3pio import CogReader
35- /// ...
36- /// cog = CogReader(
37- /// path="https://github.com/rasterio/rasterio/raw/refs/tags/1.4.3/tests/data/RGBA.uint16.tif"
38- /// )
39- /// >>> array: np.ndarray = np.from_dlpack(cog)
40- /// >>> array.shape
41- /// (4, 411, 634)
42- /// >>> array.dtype
43- /// dtype('uint16')
33+ /// >>> import numpy as np
34+ /// >>> from cog3pio import CogReader
35+ /// ...
36+ /// >>> cog = CogReader(
37+ /// ... path="https://github.com/rasterio/rasterio/raw/refs/tags/1.4.3/tests/data/RGBA.uint16.tif"
38+ /// ... )
39+ /// >>> array: np.ndarray = np.from_dlpack(cog)
40+ /// >>> array.shape
41+ /// (4, 411, 634)
42+ /// >>> array.dtype
43+ /// dtype('uint16')
4444#[ pyclass]
4545#[ pyo3( name = "CogReader" ) ]
4646struct PyCogReader {
@@ -166,13 +166,13 @@ fn path_to_stream(path: &str) -> PyResult<Cursor<Bytes>> {
166166///
167167/// Examples
168168/// --------
169- /// Read a GeoTIFF from a HTTP url into a numpy.ndarray::
169+ /// Read a GeoTIFF from a HTTP url into a numpy.ndarray:
170170///
171- /// >>> from cog3pio import read_geotiff
172- /// ...
173- /// >>> array = read_geotiff("https://github.com/pka/georaster/raw/v0.2.0/data/tiff/float32.tif")
174- /// >>> array.shape
175- /// (1, 20, 20)
171+ /// >>> from cog3pio import read_geotiff
172+ /// ...
173+ /// >>> array = read_geotiff("https://github.com/pka/georaster/raw/v0.2.0/data/tiff/float32.tif")
174+ /// >>> array.shape
175+ /// (1, 20, 20)
176176#[ pyfunction]
177177#[ pyo3( name = "read_geotiff" ) ]
178178fn read_geotiff_py < ' py > ( path : & str , py : Python < ' py > ) -> PyResult < Bound < ' py , PyArray3 < f32 > > > {
0 commit comments