[mapguide-users] Runtime error when adding
SimpleSymbolDefinition to layer
Ismael Cams
mapguide2007 at gmail.com
Wed Nov 14 09:51:41 EST 2007
mmh ... it seems to be it is not possible to combine a CompositeTypeStyle and
a LineTypeStyle together, although the layerdefinition.xsd is allowing this.
Is this a bug ? Any possibility to overcome this beside defining a
compositerule for the builtin linestyle myself ?
Ismael Cams wrote:
>
> Hello,
>
> because I would like to have linestyle with X on it I was experimenting
> with inline SymbolDefinitions. I copied an SimpleSymbolDefinition from
> within RFC14 (LongDash-Dot-ShortDash-Dot) and added it to my layer.
> Unfortunately when previewing the layer (or any resource including the
> layer) I get a runtime error of the mapagent.exe.
>
> I added my layerdefinition below:
>
> <LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd" version="1.1.0">
> <VectorLayerDefinition>
>
> <ResourceId>Library://Mobiliteit/Data/omleidingen.FeatureSource</ResourceId>
> <FeatureName>Default:omleidingen</FeatureName>
> <FeatureNameType>FeatureClass</FeatureNameType>
> <Geometry>Geometry</Geometry>
> <VectorScaleRange>
> <CompositeTypeStyle>
> <CompositeRule>
> <LegendLabel>De Lijn Afgeschaft</LegendLabel>
> <Filter>"type" = 'DeLijnAfgeschaft'</Filter>
> <CompositeSymbolization>
> <SymbolInstance>
> <SimpleSymbolDefinition>
> <Name>LongDash-Dot-ShortDash-Dot</Name>
> <Graphics>
> <Path>
> <Geometry>
> M 0.0,0 L 10.0,0
> M 12.5,0 L 12.5,0
> M 15.0,0 L 20.0,0
> M 22.5,0 L 22.5,0
> </Geometry>
> <LineColor>ff00000</LineColor>
> </Path>
> </Graphics>
> <LineUsage>
> <VertexControl>'OverlapWrap'</VertexControl>
> <Repeat>25</Repeat>
> </LineUsage>
> <ParameterDefinition/>
> </SimpleSymbolDefinition>
> <ParameterOverrides>
> </ParameterOverrides>
> </SymbolInstance>
> </CompositeSymbolization>
> </CompositeRule>
> </CompositeTypeStyle>
> <LineTypeStyle>
> <LineRule>
> <LegendLabel>De Lijn</LegendLabel>
> <Filter>"type" = 'DeLijn'</Filter>
> <LineSymbolization2D>
> <LineStyle>Dash</LineStyle>
> <Thickness>0</Thickness>
> <Color>FFFF8000</Color>
> <Unit>Centimeters</Unit>
> <SizeContext>DeviceUnits</SizeContext>
> </LineSymbolization2D>
> </LineRule>
> <LineRule>
> <LegendLabel>Festiviteiten</LegendLabel>
> <Filter>"type" = 'Festiviteiten'</Filter>
> <LineSymbolization2D>
> <LineStyle>Dash</LineStyle>
> <Thickness>0.0</Thickness>
> <Color>FF800080</Color>
> <Unit>Centimeters</Unit>
> <SizeContext>DeviceUnits</SizeContext>
> </LineSymbolization2D>
> </LineRule>
> <LineRule>
> <LegendLabel>Geplande werken</LegendLabel>
> <Filter>"type" = 'Geplandewerken'</Filter>
> <LineSymbolization2D>
> <LineStyle>Dash</LineStyle>
> <Thickness>0.0</Thickness>
> <Color>FF0000FF</Color>
> <Unit>Centimeters</Unit>
> <SizeContext>DeviceUnits</SizeContext>
> </LineSymbolization2D>
> </LineRule>
> <LineRule>
> <LegendLabel>Wegeniswerken</LegendLabel>
> <Filter>"type" = 'Wegeniswerken'</Filter>
> <LineSymbolization2D>
> <LineStyle>Dash</LineStyle>
> <Thickness>0.0</Thickness>
> <Color>FFFF0000</Color>
> <Unit>Centimeters</Unit>
> <SizeContext>DeviceUnits</SizeContext>
> </LineSymbolization2D>
> </LineRule>
> </LineTypeStyle>
> </VectorScaleRange>
> </VectorLayerDefinition>
> </LayerDefinition>
>
> Could someone help me pointing out what could be wrong (it is the first
> time I use SymbolDefinitions my layers) ?
>
> Kind regards,
> Ismaël
>
--
View this message in context: http://www.nabble.com/Runtime-error-when-adding-SimpleSymbolDefinition-to-layer-tf4804555s16610.html#a13747753
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list