<div dir="ltr">This may be a similar problem to what was mentioned here:<div><br></div><div><div>#6721: Simplifing use of gdalwarp with cutline with non-georeferenced rasters</div><div><br></div><div><a href="https://trac.osgeo.org/gdal/ticket/6721">https://trac.osgeo.org/gdal/ticket/6721</a></div></div><div>(which has not been reacted to)</div><div><br></div><div>There the gal was to use gdalwarp, together with a cutline, to cut out a portion of the <span style="font-size:12.8px">non georeferenced raster (sample: image with folds which need to be removed).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Here the idea was to emulate any meter base system (such as 3395 WGS 84 / World Mercator), creating a world file that always looks like this:</span></div><div><span style="font-size:12.8px"><br></span></div><div><div><span style="font-size:12.8px"> 1.00000000000000</span></div><div><span style="font-size:12.8px"> 0.00000000000000</span></div><div><span style="font-size:12.8px"> 0.00000000000000</span></div><div><span style="font-size:12.8px"> -1.00000000000000</span></div><div><span style="font-size:12.8px"> 0.00000000000000</span></div><div><span style="font-size:12.8px"> 0.00000000000000</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Sample: small </span><span style="font-size:12.8px">non georeferenced raster </span><span style="font-size:12.8px">map from Wiki (1200x864):</span></div><div><div><span style="font-size:12.8px">wget <a href="https://upload.wikimedia.org/wikipedia/commons/a/a0/Karte_berlin_akzisemauer.png">https://upload.wikimedia.org/wikipedia/commons/a/a0/Karte_berlin_akzisemauer.png</a> -O 18550101.Karte_berlin_akzisemauer.wiki.png</span></div><div><span style="font-size:12.8px">echo -e "1.00000000000000\n 0.00000000000000\n 0.00000000000000\n -1.00000000000000\n 0.00000000000000\n 0.00000000000000" > 18550101.Karte_berlin_akzisemauer.wiki.pgw</span></div><div><span style="font-size:12.8px">gdal_translate -a_srs epsg:3395 18550101.Karte_berlin_akzisemauer.wiki.png 18550101.Karte_berlin_akzisemauer.wiki.ref_3395.tif</span></div><div><span style="font-size:12.8px">gdalinfo 18550101.Karte_berlin_akzisemauer.wiki.ref_3395.tif</span></div><div style="font-size:12.8px"><br></div></div><div style="font-size:12.8px">Using '-te' create a cutline around the boundry shown on the map</div><div style="font-size:12.8px">- remembering the 'y/height' is always minus (i.e top=0, bottom=height*-1)</div><div style="font-size:12.8px">--> top=-50 ; bottom=-690</div><div style="font-size:12.8px"><br></div><div><div><span style="font-size:12.8px">gdalwarp -s_srs epsg:3395 -t_srs epsg:3395 -te  220 -690 1160 -50 18550101.Karte_berlin_akzisemauer.wiki.ref_3395.tif 18550101.Karte_berlin_akzisemauer.cut.ref_3395.tif</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Without a world file you get with: </span></div><div><span style="font-size:12.8px">gdalwarp -s_srs epsg:3395 -t_srs epsg:3395 -te  220 -690 1160 -50 18550101.Karte_berlin_akzisemauer.wiki.png 18550101.Karte_berlin_akzisemauer.cut.ref_png.tif</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><div><span style="font-size:12.8px">ERROR 1: The transformation is already "north up" or</span></div><div><span style="font-size:12.8px">a transformation between pixel/line and georeferenced</span></div><div><span style="font-size:12.8px">coordinates cannot be computed for 18550101.Karte_berlin_akzisemauer.wiki.png.</span></div><div><span style="font-size:12.8px">There is no affine transformation and no GCPs.</span></div><div><span style="font-size:12.8px">Specify transformation option SRC_METHOD=NO_GEOTRANSFORM to bypass this check.</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">(which is what you got)</span></div><div><div><span style="font-size:12.8px">What the meaning of is: </span><span style="font-size:12.8px">SRC_METHOD=NO_GEOTRANSFORM</span></div><div><span style="font-size:12.8px">- no idea</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">But with a world file the expected result comes out.</span></div><div><br></div><div>Mark Johnson Berlin Germany<br></div></div>