Spatial Tools#

Georeferencer#

The Georeferencer tool lets you assign or correct the coordinate reference system (CRS) of a raster dataset and apply geometric transformations to align it with real-world coordinates.

Reference System Information#

A reference system (more commonly known as a spatial reference system (SRS) or coordinate reference system (CRS)) defines how the pixel coordinates of your raster image are translated into real-world coordinates.

Reference systems can be represented in several forms. Common representations include:

1. WKT Strings#

Example:

GEOGCRS["WGS 84",
    DATUM["World Geodetic System 1984",
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["latitude",north],
        AXIS["longitude",east],
    ID["EPSG",4326]]

2. PROJJSON Schemas#

{
  "type": "GeographicCRS",
  "name": "WGS 84",
  "datum": {
    "type": "GeodeticReferenceFrame",
    "name": "World Geodetic System 1984",
    "ellipsoid": {
      "name": "WGS 84",
      "semi_major_axis": 6378137,
      "inverse_flattening": 298.257223563
    }
  },
  "coordinate_system": {
    "subtype": "ellipsoidal",
    "axes": [
      {
        "name": "Latitude",
        "direction": "north",
        "unit": "degree"
      },
      {
        "name": "Longitude",
        "direction": "east",
        "unit": "degree"
      }
    ]
  }
}

3. Authority Identifiers#

Example: EPSG:4326

An authority identifier consists of an authority name and an authority code. An authority name specifies the organization that maintains a catalog of coordinate reference systems. An authority code picks out one coordinate reference system in that catalog. Together, the name and code give you the parameters of a coordinate reference system without writing out the full WKT string or PROJJSON schema.

The Georeferencer tool in WISER lets you specify a coordinate reference system by the authority name and authority code.

Georeferencer authority code entry dialog

If you have the WKT string or PROJJSON schema but not the authority name and code, you can usually look them up.

For example, say you have this WKT string (found in your .hdr file):

coordinate system string = {PROJCS["UTM_Zone_11N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-117.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]}

You can see it references UTM Zone 11N and WGS 1984. Go to spatialreference.org and search for UTM Zone 11N WGS 1984.

spatialreference.org search page
Search returning no results with a very specific query

If the search returns no results, try a less specific term such as UTM Zone 11N WGS.

Successful search result for UTM Zone 11N WGS

Click one of the results to verify it matches your WKT string.

EPSG 32611 reference system page on spatialreference.org

Click WKT-1 as HTML to view the WKT string for that authority code.

Clicking the WKT-1 as HTML link on the reference system page

Compare the WKT string at the URL with your own WKT string to confirm they match.

WKT string displayed in a browser from the spatialreference.org URL

Finally, enter the authority name and code (e.g. EPSG:32611) into WISER.

Entering the authority code EPSG:32611 into WISER

Reference System Creator#

Some datasets, planetary imagery in particular, use a coordinate reference system with no EPSG code, because no authority has cataloged it. The Reference System Creator (Tools ▸ Reference System Creator) builds one, and it stays available to the Georeferencer, the Mosaic tool and the dataset editor for the rest of the session.

It has two tabs.

From CRS String#

The quicker route when you already have a definition. Paste a WKT string, a PROJ string, or an authority code such as EPSG:4326, give it a name, and click Validate. WISER reports whether it can load the definition and what it resolved to. If validation succeeds, Add to WISER registers it.

Use this to check a coordinate system string copied out of an ENVI header before relying on it.

From Parameters#

Build a CRS field by field when you have the projection parameters but no string:

Field

Meaning

Starting Ref System

An existing CRS to base yours on, so you only change what differs

Ref System Name

The name it will appear under in WISER

Projection Type

The map projection

Shape

The body’s figure — sphere or ellipsoid

Semi-Major Axis

The equatorial radius, in meters

Semi-minor axis / inverse flattening / eccentricity

The second axis parameter, in whichever form you have it

Prime Meridian

Longitude origin, in degrees

Center Longitude

The projection’s central meridian

Central Lat / 90 deg

The latitude of origin, or a pole for polar projections

Scale Factor

Scale at the projection origin (1.0 for most)

Reset Fields clears the form back to the starting reference system; Create Reference System registers the result.

Tip

Building a Mars or Moon CRS is the usual reason to reach for this tab. Set the Shape and Semi-Major Axis to the body’s figure — 3396190 m for the Mars IAU 2000 ellipsoid, 1737400 m for the Moon — before choosing a projection.

Custom coordinate systems are saved in a project, so a .wiserproj carries the CRS its datasets need.

How definitions are validated and stored: CRS Creator Internals.


Similarity Transform#

The similarity transform tool does two things: rotate/scale an image and translate an image’s coordinate system.

Rotating and Scaling#

The Rotate and Scale tab writes a rotated, scaled copy of a single-band or multi-band dataset. Interpolation Type offers Nearest and Linear.

Output pixels outside the rotated footprint, and pixels whose interpolated value would draw on a pixel outside the source or on a masked source pixel, are masked and written as the dataset’s data-ignore value (NaN for a floating-point dataset that has none). They are never recomputed from neighbouring valid pixels, so Linear leaves a narrow masked edge, about one source pixel wide, around the footprint and around masked source pixels, that Nearest does not. When there are such pixels, an integer dataset with no data-ignore value is refused, since it has no value to write them as.

The preview keeps its rotation and scale when you change the dataset, the display bands or the stretch.

Translating Coordinate System#

This section covers the Translate Coordinate Sys tool in the Similarity Transform dialog.

The tool translates the coordinate system by changing the upper-left coordinates of the geotransform, GT(0) and GT(3). GDAL’s geotransform tutorial explains what a geotransform is.

GT(0) corresponds to Lon/East and GT(3) corresponds to Lat/North. When the ‘Translate Lat/North’ and ‘Translate Lon/East’ fields are 0, the ‘New Upper Left Pixel Lat/North’ field will equal GT(3) and the ‘New Upper Left Pixel Lon/East’ field will equal GT(0). By entering values into the ‘Translate Lat/North’ and ‘Translate Lon/East’ editable fields, you will change the new upper left coordinate of your geotransform.

Click any pixel in the raster dataset to see the new spatial coordinate it will have, shown under the raster image. This works only with georeferenced datasets: ones that have both a spatial reference system and a geotransform.