User Tools

Site Tools


samples:samples:transform

Table of Contents

Transform sample

Documentation | Samples | Transform

Summary

Transform sample - Polynomial georeferencing of a raster image.

Description

What the sample shows:

  • Polynomial georeferencing of raster images
  • Defining ground control points for image registration
  • Computing affine and polynomial transformation matrices
  • Applying coordinate transformations to raster data
  • Validating registration accuracy with RMS errors
  • Exporting georeferenced raster images
  • Interactive control point placement
  • Transformation result visualization

This sample illustrates use of:

Name Description
TGIS_TransformPolynomial.LoadFromFileLoad transformation definitions from the file.
TGIS_TransformPolynomial.PreparePrepare transformation based on current set of GCP points.
TGIS_TransformGCP.AddPointAdd Ground Control Point (GCP) will be used by Prepare method to compute transformation matrix.
TGIS_Transform.CuttingPolygonWKT of cutting polygon.
TGIS_Transform.ActiveTrue if transformation is active.
TGIS_Transform.LoadFromFileLoad transformation definitions from the file.
TGIS_Layer.SetCSByEPSGSets up Coordinate System to a coordinate system provided by a EPSG code.
TGIS_Layer.TransformCustom transformation.

Code

This sample is available on the following platforms (click to view the source code on GitHub):

2026/06/08 23:31

Page Tools