Changes between Version 43 and Version 44 of MapGuideRfc14
- Timestamp:
- 02/19/07 17:53:26 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc14
v43 v44 41 41 To 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. 42 42 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 collectionof 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.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 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. 44 44 45 45 The details on how the symbolization works are best gathered from the XML schema. Please refer to appendix A for the schema. … … 57 57 <SimpleSymbolDefinition> 58 58 <Name>US_Interstate</Name> 59 <Graphic s>59 <GraphicElement> 60 60 <Image> 61 61 <Reference>Library%3A%2F%2FHighwaySymbols%2FInterstateImage.png</Reference> … … 65 65 <PositionY>0.8</PositionY> 66 66 </Image> 67 </GraphicElement> 68 <GraphicElement> 67 69 <Text> 68 70 <String>%INTERSTATE_NUMBER%</String> … … 74 76 <VerticalAlignment>Halfline</VerticalAlignment> 75 77 </Text> 76 </Graphic s>78 </GraphicElement> 77 79 <LineUsage> 78 80 <AngleControl>FromAngle</AngleControl> … … 107 109 <SimpleSymbolDefinition> 108 110 <Name>LongDash-Dot-ShortDash-Dot</Name> 109 <Graphic s>111 <GraphicElement> 110 112 <Path> 111 113 <Geometry> … … 117 119 <LineColor>ff00000</LineColor> 118 120 </Path> 119 </Graphic s>121 </GraphicElement> 120 122 <LineUsage> 121 123 <VertexControl>OverlapWrap</VertexControl> … … 141 143 <Name>ThickRail</Name> 142 144 <Description>This is a railroad symbol</Description> 143 <Graphic s>145 <GraphicElement> 144 146 <Path> 145 147 <Geometry> … … 151 153 <LineJoin>Round</LineJoin> 152 154 </Path> 153 </Graphic s>155 </GraphicElement> 154 156 <LineUsage> 155 157 <VertexControl>OverlapWrap</VertexControl> … … 184 186 <SimpleSymbolDefinition> 185 187 <Name>GasStyle</Name> 186 <Graphic s>188 <GraphicElement> 187 189 <Path> 188 190 <Geometry>M 0,0 H 5 M 15,0 H 5</Geometry> … … 191 193 <LineJoin>Round</LineJoin> 192 194 </Path> 195 </GraphicElement> 196 <GraphicElement> 193 197 <Text> 194 198 <String>GAS</String> … … 200 204 <VerticalAlignment>Halfline</VerticalAlignment> 201 205 </Text> 202 </Graphic s>206 </GraphicElement> 203 207 <LineUsage> 204 208 <VertexControl>OverlapWrap</VertexControl> … … 212 216 <SimpleSymbolDefinition> 213 217 <Name>BlueSquare</Name> 214 <Graphic s>218 <GraphicElement> 215 219 <Path> 216 220 <Geometry>M -0.5,-0.5 H 1, V 1, H -1, Z</Geometry> 217 221 <FillColor>c00000ff</FillColor> 218 222 </Path> 219 </Graphic s>223 </GraphicElement> 220 224 <LineUsage> 221 225 <VertexControl>OverlapNoWrap</VertexControl> … … 230 234 <SimpleSymbolDefinition> 231 235 <Name>RedTriangle</Name> 232 <Graphic s>236 <GraphicElement> 233 237 <Path> 234 238 <Geometry>M -0.5,-0.5 H 1, L 0,1, Z</Geometry> 235 239 <FillColor>c0ff0000</FillColor> 236 240 </Path> 237 </Graphic s>241 </GraphicElement> 238 242 <LineUsage> 239 243 <VertexControl>OverlapNoWrap</VertexControl> … … 283 287 {{{ 284 288 <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 2294 M 0,2.5 h 8 m 2,0 h 8 m 2,0 h 2295 </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> 324 328 </SymbolDefinition> 325 329 }}} … … 342 346 <Name>ThickRail</Name> 343 347 <Description>This is a railroad symbol</Description> 344 <Graphic s>348 <GraphicElement> 345 349 <Path> 346 350 <Geometry> … … 352 356 <LineJoin>Round</LineJoin> 353 357 </Path> 354 </Graphic s>358 </GraphicElement> 355 359 <LineUsage> 356 360 <VertexControl>OverlapWrap</VertexControl>