top of page

What is an .sdw file?

  • Writer: Anvita Shrivastava
    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.


an .sdw file
an .sdw file

  1. 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


  1. 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.


  1. 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.0

Each 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 + F

Where:

  • A = pixel size X

  • E = pixel size Y

  • B, D = rotation terms

  • C, F = origin coordinates


  1. 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.


  1. 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

  • QGIS

  • GDAL

  • Global Mapper

  • ERDAS Imagine


The Workflow:


  1. GIS Software loads the .sid image

  2. It then searches for the corresponding world file with the same base name (.sdw)

  3. If a world file is found, it applies the affine transformation to position the raster appropriately in the map.

  4. If no world file is found, the .sid image will load but be unpositioned in the map.


  1. 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.


  1. 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


  1. 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.


  1. 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.


  1. 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.


  1. Role of Modern Geospatial Pipelines


Although modern formats usually include embedded references (for example, GeoTIFF), .sdw files still have multiple applications in:



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:



USA (HQ): (720) 702–4849


(A GeoWGS84 Corp Company)

Comments


bottom of page