Re: [gdal-dev] crop an image

2009-07-16 Thread Frank Warmerdam
steve.tout...@inspq.qc.ca wrote: Hello, I need to crop an image based on a polygon from a shapefile. Could not figure how to do it so I used gdal_translate and I specified the extent of the shapefile like this gdal_translate -projwin -428734.998712 20337 1.497532 -387578.449250 172036.180727 E

[gdal-dev] crop an image

2009-07-16 Thread Steve . Toutant
Hello, I need to crop an image based on a polygon from a shapefile. Could not figure how to do it so I used gdal_translate and I specified the extent of the shapefile like this gdal_translate -projwin -428734.998712 20337 1.497532 -387578.449250 172036.180727 EstMtl.img rssMtl.img But the polygo