[mapguide-users] Compound line with Cartographic StylizationEngine
Traian Stanev
traian.stanev at autodesk.com
Tue Feb 19 11:52:21 EST 2008
According to the schema, you can have RenderingPass in either the SymbolInstance element, like I showed, or in the SymbolDef, like you did it.
If you are having problems with one, try the other and see what happens.
We'll take a look at what may be causing the other problem (the color changing when panning).
Traian
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-
> bounces at lists.osgeo.org] On Behalf Of Gunter Becker
> Sent: Tuesday, February 19, 2008 11:15 AM
> To: MapGuide Users Mail List
> Subject: RE: [mapguide-users] Compound line with Cartographic
> StylizationEngine
>
> Thanks Traian,
>
> RenderingPass was correct. But I had not to sign it to the
> LayerDefinition but to the SymbolDefinition.
> I've created a SymbolDefinition (CompoundSymbolDefinition) in MapGuide
> Studio where I referenced my previous SolidLine.SymbolDefinition
> (SimpleSymbolDefinion) and there you can define the RenderingPass-Node.
> I post it to the end of this message.
>
> But one more note: I use this definition for theming and when working
> with MapGuide 1.2 this works correct. I tested this also with MapGuide
> 2.0 RC4 and it fails. The map shows but the theming isn't correct. The
> line color depend of the extent that is shown (same scale). If I pan
> through the map the color of the composite / compound line changes
> several times.
>
> This also happens with default MapGuide theming and stylization. I
> posted some images to Trac:
> #418 - Rendering composite line style for Scale Ranges bug.
>
> Gunter
>
> <CompoundSymbolDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance" xsi:noNamespaceSchemaLocation="SymbolDefinition-1.0.0.xsd"
> version="1.0.0">
> <Name>DoubleLine</Name>
> <SimpleSymbol>
> <SimpleSymbolDefinition>
> <Name>BackLine</Name>
> <Graphics>
> <Path>
> <Geometry>M 0.0,0.0 L 1.0,0.0</Geometry>
> <LineColor>%LINE_COLOR%</LineColor>
> <LineWeight>%LINE_WEIGHT%</LineWeight>
> <LineCap>'Round'</LineCap>
> <LineJoin>'Round'</LineJoin>
> </Path>
> </Graphics>
> <LineUsage>
> <VertexControl>'OverlapWrap'</VertexControl>
> <Repeat>1</Repeat>
> </LineUsage>
> <ParameterDefinition>
> <Parameter>
> <Identifier>LINE_COLOR</Identifier>
> <DefaultValue>ffff0000</DefaultValue>
> <DisplayName>Linienfarbe</DisplayName>
> <Description>Die Linienfarbe für das Symbol</Description>
> <DataType>Color</DataType>
> </Parameter>
> <Parameter>
> <Identifier>LINE_WEIGHT</Identifier>
> <DefaultValue>1.0</DefaultValue>
> <DisplayName>Linienstärke</DisplayName>
> <Description>Die Linienstärke für das Symbol</Description>
> <DataType>Real</DataType>
> </Parameter>
> </ParameterDefinition>
> </SimpleSymbolDefinition>
> <RenderingPass>0</RenderingPass>
> </SimpleSymbol>
> <SimpleSymbol>
> <SimpleSymbolDefinition> ... like above </SimpleSymbolDefinition>
> <RenderingPass>1</RenderingPass>
> </SimpleSymbol>
> </CompoundSymbolDefinition>
>
>
> -----Ursprüngliche Nachricht-----
> Von: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-
> bounces at lists.osgeo.org] Im Auftrag von Traian Stanev
> Gesendet: Dienstag, 19. Februar 2008 15:30
> An: mapguide-users at lists.osgeo.org
> Betreff: RE: [mapguide-users] Compound line with Cartographic
> StylizationEngine
>
> Try adding setting a RenderingPass tag as follows:
>
> > <SymbolInstance>
> > <ResourceId>Library://Symbols/SolidLine.SymbolDefinition</ResourceId>
> > <ParameterOverrides>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_COLOR</ParameterIdentifier>
> > <ParameterValue>FF8E6D09</ParameterValue>
> > </Override>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_WEIGHT</ParameterIdentifier>
> > <ParameterValue>3.5</ParameterValue>
> > </Override>
> > </ParameterOverrides>
> <RenderingPass>0</RenderingPass>
> > </SymbolInstance>
> > <SymbolInstance>
> >
> > <ResourceId>Library://Symbols/SolidLine.SymbolDefinition</ResourceId>
> > <ParameterOverrides>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_COLOR</ParameterIdentifier>
> > <ParameterValue>FFFFFA73</ParameterValue>
> > </Override>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_WEIGHT</ParameterIdentifier>
> > <ParameterValue>3.0</ParameterValue>
> > </Override>
> > </ParameterOverrides>
> <RenderingPass>1</RenderingPass>
> > </SymbolInstance>
>
>
> Traian
>
>
>
> > -----Original Message-----
> > From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-
> > bounces at lists.osgeo.org] On Behalf Of Gunter Becker
> > Sent: Tuesday, February 19, 2008 9:23 AM
> > To: mapguide-users at lists.osgeo.org
> > Subject: [mapguide-users] Compound line with Cartographic Stylization
> > Engine
> >
> >
> > Hi all,
> >
> > I would like to have a compound line symbol for street stylization
> like
> > I
> > can do with basic stylization in MapGuide Studio. Now I've created a
> > SimpleSymbolDefinition called SolidLine and use this two times in the
> > CompositeSymbolization of my LayerDefintion. My problem is that the
> > line
> > features were not melting with each other (see image).
> >
> > http://www.nabble.com/file/p15560779/CompoundLine.png
> >
> > Has someone done this with success.
> > Thanks, Gunter
> >
> > The 'SolidLine' SymbolDefinition:
> >
> > <SimpleSymbolDefinition>
> > <Name>SolidLine</Name>
> > <Graphics>
> > <Path>
> > <Geometry>M 0.0,0.0 L 1.0,0.0</Geometry>
> > <LineColor>%LINE_COLOR%</LineColor>
> > <LineWeight>%LINE_WEIGHT%</LineWeight>
> > <LineCap>'Round'</LineCap>
> > <LineJoin>'Round'</LineJoin>
> > </Path>
> > </Graphics>
> > <LineUsage>
> > <Repeat>1</Repeat>
> > </LineUsage>
> > <ParameterDefinition>
> > <Parameter> ... </Parameter>
> > <Parameter> ... </Parameter>
> > </ParameterDefinition>
> > </SimpleSymbolDefinition>
> >
> > I use it in my LayerDefinition as follows:
> >
> > <CompositeSymbolization>
> > <SymbolInstance>
> >
> > <ResourceId>Library://Symbols/SolidLine.SymbolDefinition</ResourceId>
> > <ParameterOverrides>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_COLOR</ParameterIdentifier>
> > <ParameterValue>FF8E6D09</ParameterValue>
> > </Override>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_WEIGHT</ParameterIdentifier>
> > <ParameterValue>3.5</ParameterValue>
> > </Override>
> > </ParameterOverrides>
> > </SymbolInstance>
> > <SymbolInstance>
> >
> > <ResourceId>Library://Symbols/SolidLine.SymbolDefinition</ResourceId>
> > <ParameterOverrides>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_COLOR</ParameterIdentifier>
> > <ParameterValue>FFFFFA73</ParameterValue>
> > </Override>
> > <Override>
> > <SymbolName>SolidLine</SymbolName>
> > <ParameterIdentifier>LINE_WEIGHT</ParameterIdentifier>
> > <ParameterValue>3.0</ParameterValue>
> > </Override>
> > </ParameterOverrides>
> > </SymbolInstance>
> >
> > --
> > View this message in context: http://www.nabble.com/Compound-line-
> with-
> > Cartographic-Stylization-Engine-tp15560779s16610p15560779.html
> > Sent from the MapGuide Users mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > mapguide-users mailing list
> > mapguide-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list