write_geotiff_like_geojson#

write_geotiff_like_geojson(path: str, arr: ndarray, geojson_path: str, crs: Optional[str] = None, **kwargs) None[source]#

Write array to GeoTIFF, georeferenced to same bbox as the given GeoJSON.

Parameters
  • path (str) – GeoTiff path.

  • arr (np.ndarray) – (H, W[, C]) Array to write.

  • geojson_path (str) – GeoJSON path.

  • crs (str) – CRS name. If None, read from the GeoJSON. If not specified in the GeoJSON, use “EPSG:4326”. Defaults to None.

Return type

None