Agisoft Metashape
Agisoft Metashape => Bug Reports => Topic started by: ahornero on January 28, 2015, 02:11:00 PM
-
Hi,
I've noticed some strange behavior when I try to export an orthophoto. For big projects, I get a file size limitation (4GB). It's something like this topic http://www.agisoft.com/forum/index.php?topic=2318.msg12370#msg12370 but we are using NTFS, not FAT32.
Any idea? Thanks,
Alberto.
-
Hello Alberto,
TIF files exported by PhotoScan really have 4 GB limit, so for large areas it is recommended to use split in blocks option.
-
I get good results by using split in blocks option, then building a VRT with GDAL and using the VRT to generate a continuous geotiff (and GDAL supports BIGTIFF for TIFFs over 4GB if you want to go that way).
Here are some batch file snippets using gdal:
REM build virtual raster table
gdalbuildvrt -srcnodata 0 -vrtnodata 0 [VRT_FILENAME].vrt [TILESET_ROOT_NAME]*.tif
REM huge geotiff for GIS
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=90" -co "TILED=YES" -co "PHOTOMETRIC=YCBCR" -co BLOCKYSIZE=256 -co BLOCKXSIZE=256 -co "TFW=YES" -b 1 -b 2 -b 3 [VRT_FILENAME].vrt [FINAL_GEOTIFF_NAME].tif
REM huge PNG for gigapan
gdal_translate -of png -co "ZLEVEL=1" [VRT_FILENAME].vrt [FINAL_PNG_NAME].png
example gigapans here (http://gigapan.com/gigapans?tags=Elwha)
-
Hi Alexey,
Is Agisoft planning to support BigTiff format? And thanks for your reply and the solution.
Hi andyroo,
Thank you too. Good explanation :-)
Alberto.
-
Hello Alberto,
I think that BigTIFF support could be included in the version 1.2 of PhotoScan.
-
Great! Thanks again Alexey.
-
unfortunately with 1.31 it seems that Orthofotos with more than 2 GB are also corrupt, even if you select bigTIF format
-
Not Impressed that Agisoft wont give you a warning before trying to export the Orthophoto when it is too large, and then it instead goes ahead and creates a corrupted file that is an unfinished ortho on the hard drive. Ive been trying to delete this corrupted file for AN HOUR!
NOT IMPRESSED.
-
This corrupted file will not delete off my hard drive.
-
Will it delete after you restart the compter?
If not, try one of these: https://www.raymond.cc/blog/lockhunter-is-unlocker-alternative-that-works-on-windows-x64/
-
Hello Notimpressed,
Sorry to hear that. Do you have by any chance the log related to the problematic export operation?
If not, please specify at least the export settings used (screenshot of the export dialog will be sufficient), file type used. Additionally please specify, if you are exporting the orthomosaic to the local drive, external or network drive? And what is the OS used and disk partition/file system on the target drive?