KipCrossing / geotiff

A noGDAL tool for reading and writing geotiff files
GNU Lesser General Public License v2.1
213 stars 23 forks source link

Version 0.3.x [BREAKING CHANGES] #30

Open KipCrossing opened 2 years ago

KipCrossing commented 2 years ago

This PR will have breaking changes to allow the distributed (pickeling) of the classes and methods in this package.

Specifically, it will remove the integration of PyPorj for transforming coordinates and instead will allow the passing of a transform function as a param in the GeoTiff constructor. Something like:

from pyproj import Transformer
from geotiff import GeoTiff

transformer = Transformer.from_crs(4326, 7844, always_xy=True)

geo_tiff = GeoTiff(tiff_file, crs_code=4326, transformer=transformer)