Hi all, I intend to crop an image (im_large.tif) to the extent of a polygon (mask.shp). The function otbcli_ExtractROI fails to do it. I tested the function to crop image_large.tif to the extent of a smaller image (im_small.tif). This operation succeeds.
OTB="/home/dc/Documents/OTB-6.2.0-Linux64/bin" $OTB/otbcli_ExtractROI -in im_large.tif -mode fit -mode.fit.vect mask.shp -out ./im_crop2shp.tif 2018-01-24 15:03:52 (FATAL): itk::ERROR: Failed to open GDALDataset file im_large.tif : $OTB/otbcli_ExtractROI -in im_large.tif -mode fit -mode.fit.im im_small.tif -out ./im_crop2im.tif Writing ./im_crop2im.tif...: 100% [**************************************************] (0.01 seconds) Output parameters value: startx: 3 starty: 5 sizex: 5 sizey: 4 Original images are Pléiades', mapprojected and cropped for the example (EPSG:32611). I use the binaries of OTB downloaded from the website. Simple view of the images and mask is in general_view.png. Did I do something wrong? Thanks for any help! César Deschamps-Berger -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
pb_otbcli_ExtractROI.tar
Description: Unix tar archive
