I am looking to crop an ECW image based on latitude and longitude. I have the following code to do that but it doesn't work.
<gdalwarp -t_srs EPSG:27700 -te 51.50386 51.50391 -0.4333941 -0.4333865 image.ecw imagecrop.tif>
I get the following error.
Warning 1: -ts values have minx >= maxx. This will result in a horizontally flip ped image. Warning 1: -ts values have miny >= maxy. This will result in a vertically flippe d image. Creating output file that is -1297P x -1297L. ERROR 1: Attempt to create -1297x-1297 dataset is illegal,sizes must be larger t han zero.
Can someone help me in fixingHow can I fix this?