DonK, on Feb 27 2009, 04:44 PM, said:
I did include the jgw. But there are a couple of things I'm not clear on. Here is a command line that has worked well when merging .tif files that started out as MrSid:
gdalwarp -s_srs EPSG:26986 -t_srs EPSG:26986 -of GTiff -co "TFW=YES" first-tile.tif second-tile.tif merged-tile.tif
Now, to merge jpg files instead of .tif, wouldn't the first two switches, -s_srs EPSG:26986 -t_srs EPSG:26986, remain the same since the coordinate system which remains the same regardless of file type? If that is true, then what I'm still unclear on is how to change the -of and -co switches so they work with jpeg files. This, I think, is where the gdal error message is being generated.
For jpeg files:
gdalwarp -s_srs EPSG:26986 -t_srs EPSG:26986 -of ???? -co ???? first-tile.jpg second-tile.jpg merged-tile.jpg
We're keeping you busy today, Tim. You're working two questioners at once!
Don
You're correct about the EPSG numbers remaining the same if the files are just jpeg representations of the original georeferenced files.
For merging two jpeg files to a Geotiff (can't write a jpeg as output from Gdalwarp) the command would be:
gdalwarp -s_srs EPSG:26986 -t_srs EPSG:26986 -of GTIFF -co TFW=YES first-tile.jpg second-tile.jpg merged-tile.tif
For that command to work you also have to have .jgw files for both first-tile.jpg and second-tile.jpg in the same folder with the image files.
Then to change the output file to a jpeg you would enter the command:
gdal_translate -of JPEG -co WORLDFILE=YES merged-tile.tif merged-tile.jpg
The worldfile that is produced will probably have a .wld extension. You can change this to .jgw manually for compatibility with ExpertGPS.
Tim

Sign In
Register
Help

MultiQuote
2: 