Changes between Version 26 and Version 27 of MapGuideRfc51


Ignore:
Timestamp:
Nov 14, 2008, 1:17:19 PM (15 years ago)
Author:
tonyfang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc51

    v26 v27  
    121121
    122122Upon further investigation, it is not correct to shift the image when the re-projection is a datum shift. Transformations are not that simple. The advanced algorithm will be invoked for all CS transformations.
     123
     124--------
     125
     126If 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
     128One 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
     130To 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# *****************************************************************************
     149RasterGridSize                     = 100
     150MinimumRasterGridSize              = 10
     151RasterGridSizeOverrideRatio        = 0.25
     152}}}
     153
     154First 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?
     155Then we check to see if the RasterGridSize is at least the minimum. i.e., Is RasterGridSize greater than 10?
     156Then we check to see if the RasterGridSize is less than the height/width of the image.
     157
     158The following examples will help illustrate how the three settings interact with each other.
     159
     160All examples use the following (default) values:
     161RasterGridSize                     = 100
     162MinimumRasterGridSize              = 10
     163RasterGridSizeOverrideRatio        = 0.25
     164
     165Example 1:
     166If you have a request that re-projects a 100x150 image, the RasterGridSize would get reduced to 25 pixels.
     167
     168Example 2:
     169If you have a request that re-projects a 30x30 image, the RasterGridSize would get reduced to 10 pixels.
     170
     171Example 3:
     172If you have a request that re-projects a 600x600 image, the RasterGridSize stays at 100 pixels.
     173
     174Example 4:
     175If you have a request that re-projects a 5x5 image, the RasterGridSize would get reduced to 5 pixels.
     176