Triangulated irregular network (tin) interpolator, Iinterpolator interface, Grid style – Pitney Bowes MapXtreme User Manual

Page 322: Triangulated irregular network (tin), Interpolator

Advertising
background image

Chapter 17: Working with Rasters and Grids

Grid Style

MapXtreme v7.1

329

Developer Guide

For a code example of creating a grid using the IDW interpolator, see
MapInfo.Raster.GridCreatorFromFeatures class in the Developer Reference.

Triangulated Irregular Network (TIN) Interpolator

The second provided interpolator is called the Triangulated Irregular Network, or TIN. The TIN works
best for terrain data and for data points that have a linear progression or relationship to each other
across the grid, such as temperature.

The TIN interpolator produces triangles from a network of points that more closely reproduces the
original map terrain than the IDW interpolator. It draws lines between points, dividing them into
triangles and connecting all the points that it can. It creates a mesh of connectivity so that the grid
points can be interpolated. The interpolation is not influenced by the neighboring original data
values, so you do not get the "false bumping" of data that you can get with the IDW interpolator.

The TIN parameters (object properties) can be altered to give more or less detail to the map terrain.
These properties include Tolerance (controls whether closely spaced points are discarded),
Distance (controls the output), and FeatureAngle (controls the sharpness of the grid’s edge).

For more information, see MapInfo.Raster.Interpolators.TriangulatedIrregularNetwork class in the
Developer Reference.

IInterpolator Interface

We also provide support for building your own interpolator through the IInterpolator interface. Derive
your own interpolator from this interface to create grid cell values based on your algorithm. See the
MapInfo.Raster.IInterpolator interface in the Developer Reference.

Grid Style

MapXtreme provides the ability to modify the inflection values and color of a continuous grid image.
Previously MapXtreme could only read the information from the grid.

Grid style support is provided programmatically through the MapInfo.Styles.GridStyle class, via a
GridStyleControl, and incorporated into Workspace Manager. A sample application called GridForm
also provides this capability. Changes to inflection values and colors can be persisted to a
workspace and loaded at a later time.

Advertising