I am completely new to GeoData so this might be somewhat of a silly problem, but I am having a problem with the angle GeoTIFF images tend to come with. I am collecting satellite images for a deep learning segmentation project. For that purpose I need square or rectangular images. But when I import an image with GDAL (via Python) it is an angled image, since these GeoTIFF images contain a projection (in my case an unnamed projection, more info below). When I plot these images I get a rotated images, with the sides filled with black to form a square.
These rotated images are useful in many geo-related cases, but not for deep learning. Every image needs to be a square/rectangle. Every pixel needs to come from the image itself (not a black fill). I want to remove the angle in the image: in essence remove the projection. I have been searching and trying for days to simple remove the projection, but I keep failing. Does anyone here know how I can "unangle" these images, either by removing the projection (if that is even possible) or rotating the image? Or is there an even easier method?
Some information of images I'd like to process (un-angle) is:
Coordinate System is: PROJCRS["unnamed", BASEGEOGCRS["Amersfoort", DATUM["Amersfoort", ELLIPSOID["Bessel 1841",6377397.155,299.152812800003, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], ID["EPSG",4289]], Corner Coordinates: Upper Left ( 185042.500, 364840.000) ( 5d49' 5.55"E, 51d16'22.64"N) Lower Left ( 185042.500, 348993.000) ( 5d49' 0.74"E, 51d 7'49.79"N) Upper Right ( 200000.000, 364840.000) ( 6d 1'57.25"E, 51d16'19.08"N) Lower Right ( 200000.000, 348993.000) ( 6d 1'50.05"E, 51d 7'46.24"N) Center ( 192521.250, 356916.500) ( 5d55'28.40"E, 51d12' 4.62"N)
This problem does not occur when I import raw satellite imagery, and therefore I am looking in that direction for potential answers. These raw images have a SpatialReference of None, a GeoTransform of (0.0, 1.0, 0.0, 0.0, 0.0, 1.0), and the Corner Coordinates are specified by simple pixel locations (6395 is the size of Y whereas 5720 is the size of X):
Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 6395.0) Upper Right ( 5720.0, 0.0) Lower Right ( 5720.0, 6395.0) Center ( 2860.0, 3197.5)