Does anyone know how to get the affine transformation from a geopandas dataframe?
I need this for rasterising geospatial vector data with rasterio.
shapes = ((geom,value) for geom, value in zip(geodataframe.geometry, len(geodataframe)*[255]))
numpy_array = features.rasterize(
shapes,
out_shape=self.tile_size,
transform=geodataframe.transform???,
all_touched=True)
I am however still missing the transform part.