reproject

gis.grid.reproject(gs, dst_crs, dst_gtf=None, dst_width=None, dst_height=None, out_dir=None, resample=0)

Reproject (warp) a grid.

Parameters

Name Type Description Default
gs GridSource Input object. required
dst_crs str Coodinates reference system (projection). An accepted format is: EPSG:3857. required
dst_gtf list | tuple The geotransform of the warped dataset. Must be defined in the same coordinate reference system as dst_crs. When defined, its only used when both ‘dst_width’ and ‘dst_height’ are defined. None
dst_width int The width of the warped dataset in pixels. None
dst_height int The height of the warped dataset in pixels. None
out_dir Path | str Output directory. If not defined, if will be inferred from the input object. None
resample int Resampling method during warping. Interger corresponds with a resampling method defined by GDAL. For more information: click here. 0

Returns

Type Description
GridSource Output object. A lazy reading of the just creating raster file.
Back to top