Geotiff

Latest version: v0.2.10

Safety actively analyzes 701671 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.2.4

Bundle LICENSE file in package

What's Changed
* Adamfuller zz patch 1 by adamfuller-zz in https://github.com/KipCrossing/geotiff/pull/29
* fixed typo in README.md by MartinKist in https://github.com/KipCrossing/geotiff/pull/31
* Update README.md by RichardScottOZ in https://github.com/KipCrossing/geotiff/pull/32
* fixed typos, changed some punctuation by MartinKist in https://github.com/KipCrossing/geotiff/pull/33
* License bundle by KipCrossing in https://github.com/KipCrossing/geotiff/pull/37
* remove cmdclass classes by KipCrossing in https://github.com/KipCrossing/geotiff/pull/38

New Contributors
* adamfuller-zz made their first contribution in https://github.com/KipCrossing/geotiff/pull/29
* MartinKist made their first contribution in https://github.com/KipCrossing/geotiff/pull/31
* RichardScottOZ made their first contribution in https://github.com/KipCrossing/geotiff/pull/32

**Full Changelog**: https://github.com/KipCrossing/geotiff/compare/0.2.1...0.2.4

0.2.1

Adds `aszarr` param to the `read_box()` method:

python
def read_box(
self,
bBox: BBox,
outer_points: Union[bool, int] = False,
aszarr: bool = False,
) -> Union[np.ndarray, zarr.Array]:
"""Reads a boxed sections of the geotiff to a zarr/numpy array

Args:
bBox (BBox): A bounding box
outer_points (Union[bool, int]): Takes an int (n) that gets extra n layers of points/pixels that directly surround the bBox. Defaults to False.
safe (bool): If True, returns a zarr array. If False, forces a returns as a numpy array by putting the data into memory. Defaults to False.



Returns:
np.ndarray: zarr array of the geotiff file
"""
((x_min, y_min), (x_max, y_max)) = self.get_int_box(
bBox, outer_points=outer_points
)
tiff_array = self.read()
boxed_array = tiff_array[y_min:y_max, x_min:x_max]
if aszarr:
return zarr.array(boxed_array)
return np.array(boxed_array)

0.2.0

- new `as_crs` param for specifying the epsg crs to convert into. defaults to 4326
- new `band` param to designate what page/band to query. Defaults to 0. closes 26
- Closed 11
- feature: `get_coord_arrays` method that returns the x_coords and y_coords. Closes 21
- remove pycrs dep
- adds community docs
- updates README with new features
- abstracts many attributes to properties for safety
- update tests with more test files

0.1.9

Enhancement: Support older pyproj versions by using `epsg:4326` instead of `WGS84` as CRS name.

0.1.8

Feature:
- `outer_points` can be an `int` that specifies an extra n layer(s) of points/pixels that directly surround the `Box`.

0.1.7

Adds a quality of life feature:

**outer_points** (bool, optional): When True, includes the points/pixels that directly surround the bBox. Defaults to False.

UI example:

python
col and row indexes of the cut area
int_box = geoTiff.get_int_box(area_box, outer_points = True)
lon and lat coords of the cut points/pixels
geoTiff.get_bBox_wgs_84(area_box, outer_points = True)

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.