title: Add geo-coordinate/planar Cartesian coordinates for TIF and JPG images.
Photo Source: GOOGLE EARTH. (It can also be another picture that knows the coordinates of the Four corners.)
Tools: Getscreen (This software can automatically generate a picture of the corner point coordinates or latitude and longitude)
Other conditions: the image resolution to be known. (x-directional pixels numx,y directional pixels numy)
assumption: Upper-left coordinate (minx,maxy), upper-right coordinate (maxx,maxy), lower-right coordinate (maxx,miny), lower-left coordinate (minx,miny)
Steps:
(1) Create a new TXT text document in the directory where the picture is placed, change the file name to be the same as the picture, and the extension to JGW (jpg), (TIF will be changed to TFW).
(2) Open a file with the extension *.JGW or *.TFW with Notepad and enter the following five lines in it:
Pixel resolution in the a=x direction
D= Rotary System
b= Rotary System
Pixel resolution in the direction of E=y
c= Raster map top left corner pixel Center x coordinate
f= Raster map top left corner Pixel Center y coordinate
Where: A= (Maxx–minx)/numx;d, b generally default to 0;e= (Miny–maxy)/numy;c=minx;f=maxy
(3) The final JGW or TFW file is as follows:
0.00000660260538641635
0
0
-0.00000531976744186073
120.582992
36.35405
TIF, jpg Pictures How to manually add geographic coordinates