| 123 | |
| 124 | -------- |
| 125 | |
| 126 | If the RasterGridSize is close in size to the actual width or height of your image (e.g. a RasterGridSize that is ~50% of the height/width), and the raster re-projection is more than a simple affine transformation (e.g. LL84 -> World-Sinusoidal), then you will end up with a poor raster re-projection. |
| 127 | |
| 128 | One place you will commonly encounter this situation is with the Fusion Overview Map. This may also occur when your window size is very small. |
| 129 | |
| 130 | To address this, a few more configuration settings will be added to the serverconfig.ini. In addition to RasterGridSize, we will also add MinimumRasterGridSize and RasterGridSizeOverrideRatio. |
| 131 | |
| 132 | {{{ |
| 133 | [RenderingServiceProperties] |
| 134 | # ***************************************************************************** |
| 135 | # R E N D E R I N G S E R V I C E |
| 136 | # |
| 137 | # Property Name Description |
| 138 | # ----------------------------------------------------------------------------- |
| 139 | # RasterGridSize Size of raster re-projection grid in pixels |
| 140 | # MinimumRasterGridSize Minimum size of raster re-projection grid in |
| 141 | # pixels. This must be less than RasterGridSize. |
| 142 | # RasterGridSizeOverrideRatio If the RasterGridSize is larger than the |
| 143 | # image's height or width times the |
| 144 | # RasterGridSizeOverrideRatio, then the |
| 145 | # RasterGridSize is overridden with this value. |
| 146 | # Change this setting to 1 to disable the |
| 147 | # override. |
| 148 | # ***************************************************************************** |
| 149 | RasterGridSize = 100 |
| 150 | MinimumRasterGridSize = 10 |
| 151 | RasterGridSizeOverrideRatio = 0.25 |
| 152 | }}} |
| 153 | |
| 154 | First we check to see if the RasterGridSize needs to be overridden. i.e., Is RasterGridSize less than 25% of the height/width of the image? |
| 155 | Then we check to see if the RasterGridSize is at least the minimum. i.e., Is RasterGridSize greater than 10? |
| 156 | Then we check to see if the RasterGridSize is less than the height/width of the image. |
| 157 | |
| 158 | The following examples will help illustrate how the three settings interact with each other. |
| 159 | |
| 160 | All examples use the following (default) values: |
| 161 | RasterGridSize = 100 |
| 162 | MinimumRasterGridSize = 10 |
| 163 | RasterGridSizeOverrideRatio = 0.25 |
| 164 | |
| 165 | Example 1: |
| 166 | If you have a request that re-projects a 100x150 image, the RasterGridSize would get reduced to 25 pixels. |
| 167 | |
| 168 | Example 2: |
| 169 | If you have a request that re-projects a 30x30 image, the RasterGridSize would get reduced to 10 pixels. |
| 170 | |
| 171 | Example 3: |
| 172 | If you have a request that re-projects a 600x600 image, the RasterGridSize stays at 100 pixels. |
| 173 | |
| 174 | Example 4: |
| 175 | If you have a request that re-projects a 5x5 image, the RasterGridSize would get reduced to 5 pixels. |
| 176 | |