Changes between Version 1 and Version 2 of MapGuideRfc29


Ignore:
Timestamp:
08/24/07 02:31:21 (18 years ago)
Author:
waltweltonlair
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc29

    v1 v2  
    11= !MapGuide 29 - MDF Schema Changes for Stylization =
    22
    3 This page contains an change request (RFC) for the !MapGuide Open Source project. 
     3This page contains a change request (RFC) for the !MapGuide Open Source project. 
    44More !MapGuide RFCs can be found on the [wiki:MapGuideRfcs RFCs] page.
    55
     
    2323== Overview ==
    2424
    25 This section brefly describes the problem set, and the proposed solution in general terms.  It should be deliberately short, a couple of sentences or so.
     25A few omissions in our new symbolization schemas have been identified.  This RFC describes the proposed schema changes which address the issues.
    2626
    2727== Motivation ==
    2828
    29 This is the most important part of the RFC.  It describes the problem domain in detail.  Focusing on this will allow reviewers to fully understand why the proposed change is being made, and potentially suggest different/better ways of accomplishing the desired results.  The more time we spend on understanding the problem, the better our solution will be.
     29=== Multi-Variate Theming ===
     30In the new symbolization we have symbol definitions which define parameters, and symbol instances which define overrides - constant values or expressions - for these parameters.  For !MapGuide 1.3 we will be introducing new expression functions which can be used to specify themes.  Multi-variate theming is achieved by using these new expression functions in parameter overrides.  No schema change is needed to support the new expression functions - expressions are just strings and the parameter overrides are string properties.  Multi-variate theming does add some complexity when it comes to legend labels, and this is where additional information in the schema is needed.
     31
     32The current layer definition schema defines a legend label per style rule.  Today when we create a theme we generate multiple style rules, and the legend label for each rule is set appropriately.  The new multi-variate theming approach, however, uses expression and not rules to define the theme.  With the current schema this means only one legend label is available for all the themes, and this is inadequate.  The proposed schema change is to therefore include additional theme information to the parameter override elements.
     33
     34For this release it will be sufficient to add two pieces of information: a theme description and a theme category format.  Any parameter override whose value is set to a theming expression would also set these properties.  The legend generation code can then use this information to generate appropriate labels for each theme / theme category.  The theme description is a string that would be displayed the same as it's entered.  The theme category format is a string which includes a mix of formatting codes and text, and these can appear in any order.  Three codes will be supported: <min>, <max>, and <value>.  The <min> and <max> codes are used with themes where each category corresponds to a range of values.  This applies to themes that use Equal, Standard Deviation, Quantile, or Jenks distributions.  Some example category format strings:
     35
     36 * "<min> to <max> miles per hour"
     37 * "Parcel value: <min> - <max> Euros"
     38 * "<min> <= Population < <max>"
     39
     40The <value> code is used with themes that assign a single value to each category, so for themes that use Individual Values distributions.  Some additional example format strings:
     41
     42 * "Zip code: <value>"
     43 * "Zone <value>"
     44
     45
     46=== Rendering Passes ===
     47
     48
     49
     50=== Angle Offset Relative to Feature Geometry ===
     51
     52
     53
    3054
    3155== Proposed Solution ==