World File Explained: Raster Georeferencing Using TFW, JGW, and PGW
- Anvita Shrivastava

- 5d
- 3 min read
If you work with drone imagery, orthomosaics, or satellite data, you’ve probably encountered small sidecar files like .tfw, .jgw, or .pgw. These are called world files, and they play a crucial role in raster georeferencing.
At UAVSphere.com, where UAV mapping and geospatial workflows matter, understanding world files is essential for accurate drone data processing.

What Is a World File?
A world file is a plain text file that stores georeferencing information for a raster image. It tells GIS software how to position an image in real-world coordinates.
World files are commonly used with:
Orthomosaics generated from UAV photogrammetry
Scanned maps
Unlike GeoTIFF files, world files do not embed coordinate information inside the image. Instead, they are stored as separate files with specific extensions.
Common World File Extensions (TFW, JGW, PGW)
World file extensions depend on the raster image format:
Image Format | World File Extension |
TIFF | .tfw |
JPEG | .jgw |
PNG | .pgw |
BMP | .bpw |
GIF | .gfw |
For example:
orthomosaic.tif → orthomosaic.tfw
drone_image.jpg → drone_image.jgw
map.png → map.pgw
The base filename must match exactly.
How a World File Works (6-Line Format Explained)
A world file contains six numeric values, each on its own line:
Line 1: ALine 2: DLine 3: BLine 4: ELine 5: CLine 6: FThese values define an affine transformation between pixel coordinates and map coordinates.
Parameter Breakdown
Linethe the the the | Parameter | Meaning |
1 | A | Pixel size in X direction (map units per pixel) |
2 | D | Rotation term (row rotation, usually 0) |
3 | B | Rotation term (column rotation, usually 0) |
4 | E | Pixel size in Y direction (negative value) |
5 | C | X coordinate of center of the upper-left pixel |
6 | F | Y coordinate of the center of the upper-left pixel |
The Affine Transformation Formula
The transformation from pixel (column, row) to map (X, Y) coordinates is:
X = A * column + B * row + CY = D * column + E * row + FIn most UAV orthomosaics:
B = 0
D = 0
E is negative (because image Y increases downward)
So it simplifies to:
X = A * column + CY = E * row + FWhy Is the Y Pixel Size Negative?
In image coordinate systems:
Origin is top-left
Y increases downward
In geographic coordinate systems:
Y increases upward
To compensate for this difference, the Y pixel size (E) is usually negative.
Example TFW File from a UAV Orthomosaic
Example:
0.050.00.0-0.05500000.04100000.0This means:
Ground Sampling Distance (GSD) = 5 cm per pixel
No rotation
Upper-left pixel center located at (500000, 4100000) in projected CRS
If the coordinate system is UTM (e.g., Universal Transverse Mercator), those coordinates are in meters.
How GIS Software Uses World Files
GIS platforms like:
ArcGIS Pro
Global Mapper
automatically detect world files if:
The file has the correct extension.
The base filename matches.
A coordinate reference system (CRS) is defined separately.
World files do not store CRS information. They only store pixel-to-map transformation parameters.
CRS must be defined via:
.prj file
GeoTIFF metadata
Manual assignment in GIS
UAV Mapping Use Cases
World files are commonly used in:
Drone Orthomosaic Export
Photogrammetry software may export:
orthomosaic.tif
orthomosaic.tfw
orthomosaic.prj
This is common when exporting from UAV processing tools.
Lightweight Raster Sharing
Instead of large embedded GeoTIFF metadata, a simple raster + world file can be distributed.
Custom Raster Georeferencing
Advanced users sometimes manually edit world files to shift or scale imagery.
Limitations of World Files
World files have several technical limitations:
No CRS storage
No data information
No projection definition
No support for complex warping
Only an affine transformation
They cannot handle:
Terrain correction
Non-linear distortion
RPC models (used in satellite imagery)
Best Practices for UAV Professionals
For high-accuracy drone mapping:
Prefer GeoTIFF for final deliverables.
Always verify CRS assignment.
Ensure pixel size matches GSD.
Confirm no unintended rotation values.
Keep the world file and raster filename identical.
If you're working in UTM zones or local projected systems, always double-check coordinate units (meters vs feet).
Troubleshooting World File Issues
Image Appears Shifted
Incorrect CRS assigned
Mismatched .prj file
Edited world file values
Image Rotated Unexpectedly
Non-zero B or D values
Image Not Loading in GIS
Incorrect extension (.tfw vs .tifw)
Filename mismatch
CRS not defined
World files (.TFW, .JGW, .PGW) are simple yet powerful tools in raster georeferencing workflows. For UAV professionals, understanding how these 6 parameters work can prevent costly mapping errors and improve spatial accuracy.
Whether you’re processing drone orthomosaics, integrating satellite data, or validating survey-grade outputs, mastering world files is a foundational geospatial skill.
For more advanced UAV mapping insights, photogrammetry tutorials, and geospatial workflows, stay connected with UAVSphere.com — your hub for precision drone intelligence.
For more information or any questions regarding the world file, please don't hesitate to contact us at:
Email:
USA (HQ): (720) 702–4849




Comments