Skip to main content
removed helpme; naming
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

Gdal GDAL crop ecwECW file with coordinates

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?

Gdal crop ecw file with coordinates

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 fixing this?

GDAL crop ECW file with coordinates

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.

How can I fix this?

improved readability
Source Link
Erik
  • 17.1k
  • 2
  • 25
  • 47

Gdal crop ecw file with corodinatescoordinates

HI I am new to using gdal through cmd terminal but I have a question.

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 seem to runwork.

<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 pointhelp me in the right direction as to how best fixfixing this? Thank you

Gdal crop ecw file with corodinates

HI I am new to using gdal through cmd terminal but I have a question.

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 seem to run.

<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 point me in the right direction as to how best fix this? Thank you

Gdal crop ecw file with coordinates

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 fixing this?

Source Link
DugD
  • 21
  • 1

Gdal crop ecw file with corodinates

HI I am new to using gdal through cmd terminal but I have a question.

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 seem to run.

<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 point me in the right direction as to how best fix this? Thank you