Coordinates of the upper left corner=286185.598266, 5180967.071686, Coordinates of the lower right corner=286223.863098, 5180909.674438 Pixel size=0.0463053,-0.0463053 How is the image size calculated, if the coordinates and pixel size are known? Approximately should be 1024х 1536 Is there a script or formula?
I work with the library Gdal
gdalData_1 = gdal.Open(images_1)
gdalData_2 = gdal.Open(images_2)
rasterXSize = gdalData_1.RasterXSize
rasterYSize = gdalData_1.RasterYSize
print (rasterXSize ,rasterYSize )
Output = 1024 х 1536
I want to calculate the same thing, only knowing the resolution of pixels and the value of 4 coordinates