Changes between Version 14 and Version 15 of MapGuideRfc51
- Timestamp:
- 07/21/08 15:14:55 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified MapGuideRfc51
v14 v15 37 37 38 38 39 40 We must first determine how much of the original image is required by projecting the extents of the viewport (or map) into the image's CS. This is the clipped image. Then we project the extents of the clipped image into the viewport's CS, and then into device space. A mesh of uniform triangles is created in device space. Each point in the triangle mesh is transformed from device space, to the viewport's CS, to the image's CS, and then to device space. The image will then be rendered using a transform created from the two triangle meshes. Because the triangle mesh is in device space, choosing its size guarantees you a minimum level of accuracy: the error in the re-projected image will never be greater than the size of the individual triangles. 39 ||[[Image(raster_reprojection_viewport2.PNG)]]|| 40 ||Figure 1. The blue mesh of triangles represents the extents of the projected image. The thick black lines represent the image. On the left we are in the raster image's CS. On the right we are in the viewport's CS.|| 41 41 42 42 43 ||[[Image(raster_reprojection_viewport.PNG)]]|| 44 ||Figure 1. The blue mesh of triangles represents the extents of the projected image. The thick black lines represent the image. On the left we have the viewport. The blue On the right we have the image re-projected into the viewport's CS.|| 43 We must first determine how much of the original image is required by projecting the extents of the viewport (or map) into the image's CS (the first blue arrow). This yields our desired clipped image. Then we project the extents of the clipped image into the viewport's CS (the first black arrow), and subsequently into device space. A mesh of uniform triangles is created in device space. Each point in the triangle mesh is transformed from device space, to the viewport's CS, to the image's CS, and then to device space (the second blue arrow). The image will then be rendered using a transform created from the two triangle meshes (second black arrow). Because the triangle mesh is in device space, choosing its size guarantees you a minimum level of accuracy: the error in the re-projected image will never be greater than the size of the individual triangles. 45 44 46 45 The balance between performance and accuracy of the transformation is controlled by the number of triangles created for each raster. The configuration settings will control the size and number of triangles created. Configuration will be done through the serverconfig.ini.