Changes between Version 43 and Version 44 of MapGuideRfc14


Ignore:
Timestamp:
Feb 19, 2007, 5:53:26 PM (17 years ago)
Author:
waltweltonlair
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc14

    v43 v44  
    4141To implement all of this we will create a new type-style element for the !MapGuide layer definition schema.  This type-style can reference the new symbolization resources.
    4242
    43 Symbols themselves will be represented as a new resource type, and will be stored in the !MapGuide resource repository.  Groups of symbols can then be easily stored in folders in the repository to represent symbol libraries. The proposed design includes the ability to define both simple and compound symbols.  A simple symbol consists of a collection of path, image, and text elements that define the graphics, and information on how the symbol is used in the context of points, lines, and areas.  A compound symbol contains a collection of simple symbols, either inlined or using references to existing symbols.
     43Symbols themselves will be represented as a new resource type, and will be stored in the !MapGuide resource repository.  Groups of symbols can then be easily stored in folders in the repository to represent symbol libraries. The proposed design includes the ability to define both simple and compound symbols.  A simple symbol consists of a set of path, image, and text elements that define the graphics, and information on how the symbol is used in the context of points, lines, and areas.  A compound symbol contains a collection of simple symbols, either inlined or using references to existing symbols.
    4444
    4545The details on how the symbolization works are best gathered from the XML schema.  Please refer to appendix A for the schema.
     
    5757  <SimpleSymbolDefinition>
    5858    <Name>US_Interstate</Name>
    59     <Graphics>
     59    <GraphicElement>
    6060      <Image>
    6161        <Reference>Library%3A%2F%2FHighwaySymbols%2FInterstateImage.png</Reference>
     
    6565        <PositionY>0.8</PositionY>
    6666      </Image>
     67    </GraphicElement>
     68    <GraphicElement>
    6769      <Text>
    6870        <String>%INTERSTATE_NUMBER%</String>
     
    7476        <VerticalAlignment>Halfline</VerticalAlignment>
    7577      </Text>
    76     </Graphics>
     78    </GraphicElement>
    7779    <LineUsage>
    7880      <AngleControl>FromAngle</AngleControl>
     
    107109  <SimpleSymbolDefinition>
    108110    <Name>LongDash-Dot-ShortDash-Dot</Name>
    109     <Graphics>
     111    <GraphicElement>
    110112      <Path>
    111113        <Geometry>
     
    117119        <LineColor>ff00000</LineColor>
    118120      </Path>
    119     </Graphics>
     121    </GraphicElement>
    120122    <LineUsage>
    121123      <VertexControl>OverlapWrap</VertexControl>
     
    141143    <Name>ThickRail</Name>
    142144    <Description>This is a railroad symbol</Description>
    143     <Graphics>
     145    <GraphicElement>
    144146      <Path>
    145147        <Geometry>
     
    151153        <LineJoin>Round</LineJoin>
    152154      </Path>
    153     </Graphics>
     155    </GraphicElement>
    154156    <LineUsage>
    155157      <VertexControl>OverlapWrap</VertexControl>
     
    184186      <SimpleSymbolDefinition>
    185187        <Name>GasStyle</Name>
    186         <Graphics>
     188        <GraphicElement>
    187189          <Path>
    188190            <Geometry>M 0,0 H 5 M 15,0 H 5</Geometry>
     
    191193            <LineJoin>Round</LineJoin>
    192194          </Path>
     195        </GraphicElement>
     196        <GraphicElement>
    193197          <Text>
    194198            <String>GAS</String>
     
    200204            <VerticalAlignment>Halfline</VerticalAlignment>
    201205          </Text>
    202         </Graphics>
     206        </GraphicElement>
    203207        <LineUsage>
    204208          <VertexControl>OverlapWrap</VertexControl>
     
    212216      <SimpleSymbolDefinition>
    213217        <Name>BlueSquare</Name>
    214         <Graphics>
     218        <GraphicElement>
    215219          <Path>
    216220            <Geometry>M -0.5,-0.5 H 1, V 1, H -1, Z</Geometry>
    217221            <FillColor>c00000ff</FillColor>
    218222          </Path>
    219         </Graphics>
     223        </GraphicElement>
    220224        <LineUsage>
    221225          <VertexControl>OverlapNoWrap</VertexControl>
     
    230234      <SimpleSymbolDefinition>
    231235        <Name>RedTriangle</Name>
    232         <Graphics>
     236        <GraphicElement>
    233237          <Path>
    234238            <Geometry>M -0.5,-0.5 H 1, L 0,1, Z</Geometry>
    235239            <FillColor>c0ff0000</FillColor>
    236240          </Path>
    237         </Graphics>
     241        </GraphicElement>
    238242        <LineUsage>
    239243          <VertexControl>OverlapNoWrap</VertexControl>
     
    283287{{{
    284288<SymbolDefinition>
    285 <CompoundSymbolDefinition>
    286   <Name>MTYP1500a</Name>
    287   <SimpleSymbol>
    288     <SimpleSymbolDefinition>
    289       <Name>UpperLowerDashing</Name>
    290       <Graphics>
    291         <Path>
    292           <Geometry>
    293             M 0,-2.5 h 8 m 2,0 h 8 m 2,0 h 2
    294             M 0,2.5 h 8 m 2,0 h 8 m 2,0 h 2
    295           </Geometry>
    296         </Path>
    297       </Graphics>
    298       <LineUsage>
    299         <VertexControl>OverlapWrap</VertexControl>
    300         <Repeat>24</Repeat>
    301       </LineUsage>
    302       <ParameterDefinition>
    303       </ParameterDefinition>
    304     </SimpleSymbolDefinition>
    305   </SimpleSymbol>
    306   <SimpleSymbol>
    307     <SimpleSymbolDefinition>
    308       <Name>OffsetCrossTick</Name>
    309       <Graphics>
    310         <Path>
    311           <Geometry>M 0.0,-2.5 v 5</Geometry>
    312         </Path>
    313       </Graphics>
    314       <LineUsage>
    315         <VertexControl>OverlapWrap</VertexControl>
    316         <StartOffset>28</StartOffset>
    317         <Repeat>24</Repeat>
    318       </LineUsage>
    319       <ParameterDefinition>
    320       </ParameterDefinition>
    321     </SimpleSymbolDefinition>
    322   </SimpleSymbol>
    323 </CompoundSymbolDefinition>
     289  <CompoundSymbolDefinition>
     290    <Name>MTYP1500a</Name>
     291    <SimpleSymbol>
     292      <SimpleSymbolDefinition>
     293        <Name>UpperLowerDashing</Name>
     294        <GraphicElement>
     295          <Path>
     296            <Geometry>
     297              M 0,-2.5 h 8 m 2,0 h 8 m 2,0 h 2
     298              M 0,2.5 h 8 m 2,0 h 8 m 2,0 h 2
     299            </Geometry>
     300          </Path>
     301        </GraphicElement>
     302        <LineUsage>
     303          <VertexControl>OverlapWrap</VertexControl>
     304          <Repeat>24</Repeat>
     305        </LineUsage>
     306        <ParameterDefinition>
     307        </ParameterDefinition>
     308      </SimpleSymbolDefinition>
     309    </SimpleSymbol>
     310    <SimpleSymbol>
     311      <SimpleSymbolDefinition>
     312        <Name>OffsetCrossTick</Name>
     313        <GraphicElement>
     314          <Path>
     315            <Geometry>M 0.0,-2.5 v 5</Geometry>
     316          </Path>
     317        </GraphicElement>
     318        <LineUsage>
     319          <VertexControl>OverlapWrap</VertexControl>
     320          <StartOffset>28</StartOffset>
     321          <Repeat>24</Repeat>
     322        </LineUsage>
     323        <ParameterDefinition>
     324        </ParameterDefinition>
     325      </SimpleSymbolDefinition>
     326    </SimpleSymbol>
     327  </CompoundSymbolDefinition>
    324328</SymbolDefinition>
    325329}}}
     
    342346    <Name>ThickRail</Name>
    343347    <Description>This is a railroad symbol</Description>
    344     <Graphics>
     348    <GraphicElement>
    345349      <Path>
    346350        <Geometry>
     
    352356        <LineJoin>Round</LineJoin>
    353357      </Path>
    354     </Graphics>
     358    </GraphicElement>
    355359    <LineUsage>
    356360      <VertexControl>OverlapWrap</VertexControl>