ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Register Raster

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Automatically aligns a raster to a reference image or use control points. If the input dataset is a mosaic dataset, the tool will operate on each mosaic dataset item. To automatically register the image, the input raster and the reference raster must be in a relatively close geographic area. The tool will run faster if the raster datasets are closer to lining up. You may need to create a link file with a few links to get your input raster into the same map space.

Usage

  • The input raster will have its georeferencing information updated.

  • A link table can be created using the Georeferencing toolbar.
  • The Reset keyword (register_mode = "RESET" in Python) allows you to remove any geographic transformation that has been applied using this tool.

  • This tool allows you to register all the items within a mosaic dataset, a subset of the items, or a single item within a mosaic dataset. If you only want to register a specific item, you will need to enter the full path of the mosaic dataset and a unique query for the item you want to update.

    Following are some examples of how to choose an item within a mosaic dataset as your input raster:

    • \\Myserver\MyFolder\MyMosaicDataset\OBJECTID=1
    • \\Myserver\MyFolder\MyMosaicDataset\NAME='tileName01'

    If you want to choose a subset of the items, you can make a selection on the mosaic dataset layer.

  • When the input raster is a mosaic dataset with pan-sharpened items, this tool can register the multispectral raster to the panchromatic raster when you choose the REGISTER_MS keyword within the Register Mode parameter. Make sure you leave the Reference Raster and the Input Link File parameters empty.

Syntax

RegisterRaster_management (in_raster, register_mode, {reference_raster}, {input_link_file}, {transformation_type}, {output_cpt_link_file}, {maximum_rms_value})
ParameterExplanationData Type
in_raster

The raster that you want to realign. Registering a mosaic dataset item will update that particular item within the mosaic dataset.

A mosaic dataset item will have the path to the mosaic dataset followed by the Object ID of the item. For instance, the first item in the mosaic dataset would have the following path: .\mosaicDataset\objectid=1.

Mosaic Layer; Raster Dataset; Raster Layer
register_mode

Choose the registration mode. You can either register the raster with a transformation, or you can reset the transformation.

  • REGISTER —Apply a geometric transformation to the input raster.
  • REGISTER_MS —Register the multispectral input to the panchromatic input. This is only used for mosaic datasets that have a misalignment between the two.
  • RESET — Remove the geometric transformation previously added by this tool.
  • CREATE_LINKS —Create a link file with automatically generated links.
String
reference_raster
(Optional)

Choose the raster dataset that will align the input raster dataset. Leave this parameter empty if you want to register your multispectral mosaic dataset items to their associated panchromatic raster datasets.

Image Service; Internet Tiled Layer; Map Server Layer; MapServer; Mosaic Layer; Raster Dataset; Raster Layer; WMS Map
input_link_file
(Optional)

The file that has the coordinates to link the input raster dataset with the reference. The input link table works with one mosaic item in the mosaic layer. The input must specify which item is being processed, either selecting the item or specifying the ObjectID in the input. Leave this parameter empty to register multispectral mosaic dataset items with the associated panchromatic raster datasets.

Text File
transformation_type
(Optional)

The method for shifting the raster dataset.

  • POLYORDER0 — Uses a zero-order polynomial to shift your data. This is commonly used when your data is already georeferenced, but a small shift will better line up your data. Only one link is required to perform a zero-order polynomial shift.
  • POLYORDER1 —A first-order polynomial (affine) fits a flat plane to the input points.
  • POLYORDER2 —A second-order polynomial fits a somewhat more complicated surface to the input points.
  • POLYORDER3 —A third-order polynomial fits a more complicated surface to the input points.
  • ADJUST — Combines a polynomial transformation and uses a triangulated irregular network (TIN) interpolation technique to optimize for both global and local accuracy.
  • SPLINE — Transforms the source control points precisely to the target control points. In the output, the control points will be accurate, but the raster pixels between the control points are not.
  • PROJECTIVE — Warps lines so they remain straight. In doing so, lines that were once parallel may no longer remain parallel. The projective transformation is especially useful for oblique imagery, scanned maps, and for some imagery products.
String
output_cpt_link_file
(Optional)

If specified, a text file will be written containing the links created by this tool. This file can be used in the Warp From File tool. The output link table works with one mosaic dataset item in the mosaic layer. The input must specify which item is being processed, either selecting the item or specifying the ObjectID in the input.

Text File
maximum_rms_value
(Optional)

Set the amount of modeled error (in pixels) that you want in the output. The default is 0.5, and values below 0.3 are not recommended as this leads to overfitting.

Double

Code sample

RegisterRaster example 1 (Python window)

This is a Python sample for the RegisterRaster tool.

import arcpy
arcpy.RegisterRaster_management(
     "\\cpu\data\nonref.tif", "REGISTER", "\\cpu\data\yesref.tif",
     "\\cpu\data\links.txt", "POLYORDER1", "#")
RegisterRaster example 2 (stand-alone script)

This is a Python script sample for the RegisterRaster tool.

# Register raster using only control points

import arcpy
arcpy.env.workspace = "C:/Workspace"
    
rdname = "irs_ps.img"
mode = "REGISTER"
refrd = ""
linkfile = "C:/Workspace/irs_controls_13.txt"
order = "POLYORDER2"
    
arcpy.RegisterRaster_management(
     rdname, mode, refrd, linkfile, order)

Environments

  • Parallel Processing Factor

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Projections and Transformations toolset
  • Fundamentals of georeferencing a raster dataset
  • Georeferencing toolbar tools
  • Georeferencing a raster to a vector
  • Entering specific x,y coordinates when georeferencing

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal