What is an .sdw file?
- Anvita Shrivastava

- 2 days ago
- 4 min read
Updated: 10 hours ago
Geospatial workflows rely on a variety of file formats to store and manage spatial data. While widely recognized formats like GeoJSON and GeoTIFF are commonly used, several lesser-known formats play critical supporting roles within GIS ecosystems.
One such format is the .SDW file. Rather than being a primary data container, the SDW file functions as a support file for MrSID imagery (Multiresolution Seamless Image Database). Specifically, it stores georeferencing information—defining how the associated SID image aligns with real-world coordinates.
In practical terms, the SDW file acts as a world file for SID imagery, enabling GIS software to correctly position and display the raster data on a map. Without the SDW file (or equivalent embedded metadata), a SID image may lack spatial context, reducing its usability in geospatial analysis and mapping applications.

What is an SDW File?
An SDW file is a world file used for MrSID raster imagery. It stores georeferencing information that enables GIS software to position an image correctly in geographic space.
World Files are small text files that define the parameters of the affine transformation that converts the image's pixel coordinate system to the real-world coordinate system.
In simple terms:
An sdw file tells GIS software where an image belongs on the Earth's surface and how it should be scaled and aligned.
The .sdw extension is associated with MrSID (.sid) raster images, commonly used to compress aerial imagery and large orthophotos.
Typical pairing:
image.sid → raster image
image.sdw → georeferencing information
Why .SDW Files Exist
Many types of raster image formats do not store spatial reference information in the raster file itself, but instead require the use of a separate world file. One such type of world file is an .sdw file, which contains:
Pixel resolution
Rotation parameters
Geographic location of the image
Alignment with the coordinate system
Separating global and local features helps minimize raster file size while maintaining an accurate geospatial reference for the raster data.
Structure of an .SDW File
An .sdw file contains six lines of numeric values, each representing part of an affine transformation matrix.
Example:
0.5
0.0
0.0
-0.5
300000.0
4500000.0Each line has a specific meaning.
Line | Parameter | Description |
1 | Pixel size in X direction | Width of one pixel in map units |
2 | Rotation about Y axis | Usually 0 |
3 | Rotation about X axis | Usually 0 |
4 | Pixel size in Y direction | Height of one pixel (usually negative) |
5 | X coordinate of upper-left pixel center | Horizontal georeference |
6 | Y coordinate of upper-left pixel center | Vertical georeference |
These parameters define the transformation:
Xmap = A * column + B * row + C
Ymap = D * column + E * row + FWhere:
A = pixel size X
E = pixel size Y
B, D = rotation terms
C, F = origin coordinates
Relationship with MrSID Raster Data
An .sdw file is a sidecar file for a MrSID (Multi-Resolution Seamless Image Database) raster image.
The MrSID files:
Use wavelet compression
Efficiently store very large aerial images
They are frequently utilized for satellite images, orthophotography, and remote sensing.
Because GIS software loads the .sid first, it searches for the corresponding .sdw file to use as its geospatial reference.
How the GIS Software is used.SDW files
Most modern GIS applications automatically read .sdw files.
Commonly used software that supports .sdw file types include:
ArcGIS
GDAL
Global Mapper
ERDAS Imagine
The Workflow:
GIS Software loads the .sid image
It then searches for the corresponding world file with the same base name (.sdw)
If a world file is found, it applies the affine transformation to position the raster appropriately in the map.
If no world file is found, the .sid image will load but be unpositioned in the map.
Advantages of world files
There are many benefits of using .sdw world files:
Lightweight georeferencing
There is no requirement to change the actual raster file.
Simple Format
The file is in plain text, allowing for easy programmatic generation or modification.
Compatible
Most GIS software platforms support World files.
Flexible Workflows
Georeferencing can be added later without reprocessing the image.
Limitations
Despite their advantages, .sdw files have some disadvantages as follows:
No Projection Information
World files store only the georeferencing information, not the coordinate system metadata.
The projection information must be obtained from:
.prj files
metadata
The GIS project settings
Limited Transformation
World files support only affine transformations; they do not support more complex warping methods.
Dependency on Naming Convention
The world file must have the same base name as the raster, where applicable.
Example:
orthophoto.sid
orthophoto.sdw
SDW vs Other World Files
Different raster formats use different world file extensions.
Raster Format | World File |
TIFF | .tfw |
JPEG | .jgw |
PNG | .pgw |
MrSID | .sdw |
BMP | .bpw |
Despite different extensions, the internal structure is identical.
Practical Example
Suppose you have aerial imagery:
city_imagery.sid
city_imagery.sdw
city_imagery.prj
When loaded in GIS:
.sid → image
.sdw → spatial placement
.prj → coordinate reference system
Together, they ensure the image aligns correctly with other spatial layers, such as roads, parcels, and elevation models.
Generating.SDW Files Programmatically
Geospatial libraries can automatically generate world files.
Example tools:
GDAL
Rasterio
ArcGIS geoprocessing tools
Example using GDAL:
gdal_translate -of GTiff input.sid output.tif -co WORLDFILE=YES
This creates a corresponding world file containing georeferencing parameters.
Role of Modern Geospatial Pipelines
Although modern formats usually include embedded references (for example, GeoTIFF), .sdw files still have multiple applications in:
aerial imagery archived (legacy)
compressed raster workflows
large satellite imagery archives
The enterprise GIS system.
They provide an easy, interoperable method for spatially aligning raster datasets.
The .SDW file is an important part of the georeferencing process for MrSID raster imagery, as it defines the 6 transformation parameters that map image pixels to geographic coordinates.
This simple file is vital to the geospatial workflow, enabling proper placement of raster datasets without altering the original raster image file.
Understanding these file formats is crucial for GIS professionals working with remote sensing data, aerial imagery, and legacy geospatial datasets.
For more information or any questions regarding the LizardTech suite of products, please don't hesitate to contact us at:
Email: info@geowgs84.com
USA (HQ): (720) 702–4849
(A GeoWGS84 Corp Company)




Comments