[mapguide-users] Compound line with Cartographic Stylization
Engine
Tom Fukushima
tom.fukushima at autodesk.com
Fri Aug 1 13:19:51 EDT 2008
Also, try replacing your first line of the symbol definition XML with this:
<?xml version="1.0" encoding="UTF-8"?>
<SimpleSymbolDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SymbolDefinition-1.1.0.xsd" version="1.1.0">
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Tom Fukushima
Sent: Friday, August 01, 2008 11:01 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Compound line with Cartographic Stylization Engine
Hi,
In the release notes for 2.0.1 (http://trac.osgeo.org/mapguide/wiki/Release/2.0/Notes) there is a note in the API section about a change. Perhaps that is the source of the schema validation error.
Also, did you start with a symbol definition and modify it? If so, perhaps we should update that source symbol definition if it is public.
Tom
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of J Manafi
Sent: Thursday, July 31, 2008 3:06 PM
To: mapguide-users at lists.osgeo.org
Subject: RE: [mapguide-users] Compound line with Cartographic Stylization Engine
I am having some issues when trying to create composite features, and I was
hoping someone could point out what I am doing wrong. I just constructed a
new SymbolDefinition, and was trying to test it out by drawing it on the
map. However, currently, I am getting an XML Schema validation error saying
that the xml document is not valid. I am not quite sure if I read the
LayerDefinition and SymbolDefinition .xsd files correctly, so that is quite
possibly where my error lies. I have included my 2 files.
I have already retrieved and verified that the SymbolDefinition is in the
repository, at the location I am looking. And this is for a dynamically
generated layer, so the resource Id is passed in later.
Any help is appreciated.
Thanks.
LayerDefinition file:
<?xml version="1.0" encoding="UTF-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd" version="1.1.0">
<VectorLayerDefinition>
<ResourceId>%s</ResourceId>
<FeatureName>polyline_Schema:tmp_polyline</FeatureName>
<FeatureNameType>FeatureClass</FeatureNameType>
<PropertyMapping>
<Name>NAME</Name>
<Value>NAME</Value>
</PropertyMapping>
<Geometry>GEOM</Geometry>
<VectorScaleRange>
<MaxScale>12000000</MaxScale>
<CompositeTypeStyle>
<CompositeRule>
<LegendLabel>Test</LegendLabel>
<CompositeSymbolization>
<SymbolInstance>
<ResourceId>Library://Path/To/File.SymbolDefinition</ResourceId>
<ParameterOverrides>
<Override>
<SymbolName>Fault</SymbolName>
<ParameterIdentifier>LINE_WEIGHT</ParameterIdentifier>
<ParameterValue>1.0</ParameterValue>
</Override>
</ParameterOverrides>
</SymbolInstance>
<CompositeSymbolization>
</CompositeRule>
</CompositeTypeStyle>
</VectorScaleRange>
</VectorLayerDefinition>
</LayerDefinition>
SymbolDefinition file:
<SimpleSymbolDefinition>
<Name>Fault</Name>
<Description>Fault</Description>
<Graphics>
<Path>
<Geometry>
M 0.0, 0.0 L 5.0, 0.0
M 2.5, 0.0 L 2.5, 3.0
</Geometry>
<LineWeight>%LINE_WEIGHT%</LineWeight>
<LineCap>'Square'</LineCap>
<LineJoin>'Round'</LineJoin>
</Path>
</Graphics>
<LineUsage>
<VertexControl>'OverlapWrap'</VertexControl>
<Repeat>5</Repeat>
</LineUsage>
<ParameterDefinition>
<Parameter>
<Identifier>LINE_WEIGHT</Identifier>
<DefaultValue>1.0</DefaultValue>
<DisplayName>Line Weight</DisplayName>
<DataType>Real</DataType>
</Parameter>
</ParameterDefinition>
</SimpleSymbolDefinition>
_______________________________________________
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