|
Other than the move (or shift) that we have seen in the previous
chapter, geometrical transformations also involve scaling, rotation, and
other changes.
One reason for transforming features is to correct geometrical distortions. If a house has been entered into the database at a wrong location, we can shift it to the proper position. If the scale and orientation are also wrong, then more involved transformations will have to be applied. This kind of geometrical correction is particularly useful when integrating data from other sources of different quality. In performing any transformation, we need control points. We have explained earlier that a control point is used to relate two coordinate systems, and it has known positions in both systems. Control points can also be used to transform features from one position or shape to another in the same coordinate system. In either case, the idea is the same - if we know the before and after positions of some critical points of a feature, then the changes in shape or position can be determined. We will use geometrical transformations to show how to fit features from one database to another. Let us suppose we would like to copy the outline of the wooded area from the Ntdb file to Fton. The Fton database, being of larger scale and higher resolution, can be regarded as more accurate. We notice the difference in location of the same building in the two databases. We will assume that all other features, including the wooded area outline, are distorted in a similar manner. The correct building corners (from Fton) being more accurate and the distorted ones (from Ntdb) can serve as control points to compute the type and magnitude of distortion. We can then apply the same transformation to the wooded area outline to make it conform better to the Fton database. We will do the transformation in several ways, using a different number of control points (house corners) each time. In the first case, only one control point is used, allowing us to shift the features relative to each other. In the second case, two control points are used, allowing us to correct for differences in orientation and scale as well. In the third case, three control points are used. This will correct for shift, orientation, and different scale changes in the x and y directions.
|
|
|
Prepare the Fton file for the exercises. To ensure that you see the proper features on the Fton file in these exercises, do the following.
Use one control point to transform.
|
|||
|
|||
|