girs.rast.raster.get_centroid_world_coordinates

get_centroid_world_coordinates(geo_trans, raster_x_size, raster_y_size, x_pixel_size, y_pixel_size)

Return the raster centroid in world coordinates

Parameters:
  • geo_trans (tuple with six values) – geo transformation
  • raster_x_size (int) – number of columns
  • raster_y_size – number of rows
  • x_pixel_size – pixel size in x direction
  • y_pixel_size (float) – pixel size in y direction
Type:

x_pixel_size: float

Returns: