Have been using Gdal Warp and Translate without issue with the old Geo-Tiffs from NAIP for the most part, compiled most of Utah.
Now with the new JP2 format, in certain areas about half the tiles are giving me coordinate errors when trying to warp them. I downloaded 120 tiles on the S-Idaho / N-Utah border, only half of them went through. I doubled check to make sure they are all in the same EPSG code, and they were.
I've tried with older and newer versions of Gdal Warp...
Error is:
Lattitude or Longitude exceeded limits. Too many points, failed to compute output bounds.
My Statement is:
gdalwarp.exe -s_srs EPSG:26912 -t_srs "+proj=latlong +datum=WGS84" -r cubic -co INTERLEAVE=PIXEL -co TFW=YES -of GTiff -rcs "D:\ToBeWarped\m_4211042_sw_12_1_20120725_20121004.jp2" "D:\PreTransFinals\BearLakeExt_Tile41.tif"
|||||||||||| THE Above fails with the coord errors only on some JP2's |||||||||||
gdal_translate.exe -of Gtiff -b 1 -b 2 -b 3 "D:\PreTransFinals\BearLakeExt_Tile41.tif" "D:\Finals\BearLakeExt_Tile41.tif"
||||||||||| Also for some reason I have to run translate AFTER the warps on these tiles, where with the Geo-Tiffs, I think I did it the other way around (been a while though) ||||||||||
Any ideas anyone?
Now with the new JP2 format, in certain areas about half the tiles are giving me coordinate errors when trying to warp them. I downloaded 120 tiles on the S-Idaho / N-Utah border, only half of them went through. I doubled check to make sure they are all in the same EPSG code, and they were.
I've tried with older and newer versions of Gdal Warp...
Error is:
Lattitude or Longitude exceeded limits. Too many points, failed to compute output bounds.
My Statement is:
gdalwarp.exe -s_srs EPSG:26912 -t_srs "+proj=latlong +datum=WGS84" -r cubic -co INTERLEAVE=PIXEL -co TFW=YES -of GTiff -rcs "D:\ToBeWarped\m_4211042_sw_12_1_20120725_20121004.jp2" "D:\PreTransFinals\BearLakeExt_Tile41.tif"
|||||||||||| THE Above fails with the coord errors only on some JP2's |||||||||||
gdal_translate.exe -of Gtiff -b 1 -b 2 -b 3 "D:\PreTransFinals\BearLakeExt_Tile41.tif" "D:\Finals\BearLakeExt_Tile41.tif"
||||||||||| Also for some reason I have to run translate AFTER the warps on these tiles, where with the Geo-Tiffs, I think I did it the other way around (been a while though) ||||||||||
Any ideas anyone?


