Closed deastwoo closed 2 years ago
We should use the CRS in the metadata of a raster to determine the units of the grid. This could help handle Latitude-Longitude degrees rather than metres when the CRS requires, e.g. WGS 84, EPSG: 4326 has units of degrees.
Rasterio's CRS object has the linear_units and linear_units_factor properties, which could be used to find the correct units and convert them to metres if necessary.
Functionality added #50
We should use the CRS in the metadata of a raster to determine the units of the grid. This could help handle Latitude-Longitude degrees rather than metres when the CRS requires, e.g. WGS 84, EPSG: 4326 has units of degrees.
Rasterio's CRS object has the linear_units and linear_units_factor properties, which could be used to find the correct units and convert them to metres if necessary.