Opened 16 years ago

Closed 16 years ago

#607 closed defect (fixed)

Maestro: DBXML exception on saving layer with polygon stroke specified

Reported by: jbirch Owned by: ksgeograf
Priority: medium Milestone:
Component: Maestro Version:
Severity: major Keywords:
Cc: External ID:

Description

When I try to add a stroke styling to a polygon layer, I get an exception on saving, indicating that Unit, or Color, or other elements are not valid for content model.

Noticed that the default LayerDefinition is 1.1.0, but manually changing header to 1.2.0 doesn't seem to help.


<?xml version="1.0" encoding="utf-8"?>
<LayerDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="LayerDefinition-1.1.0.xsd" version="1.1.0">
  <VectorLayerDefinition>
    <ResourceId>Library://Nanaimo/Shared/Data/SDF/Carto/CityFill.FeatureSource</ResourceId>
    <FeatureName>Default:CityFill</FeatureName>
    <FeatureNameType>FeatureClass</FeatureNameType>
    <Filter />
    <Geometry>Geometry</Geometry>
    <Url />
    <ToolTip />
    <VectorScaleRange>
      <AreaTypeStyle>
        <AreaRule>
          <LegendLabel />
          <AreaSymbolization2D>
            <Fill>
              <FillPattern>Solid</FillPattern>
              <ForegroundColor>ffffffff</ForegroundColor>
              <BackgroundColor>ffffffff</BackgroundColor>
            </Fill>
            <Stroke>
              <LineStyle>Solid</LineStyle>
              <Color>000000</Color>
              <Unit>Millimeters</Unit>
              <SizeContext>MappingUnits</SizeContext>
            </Stroke>
          </AreaSymbolization2D>
        </AreaRule>
      </AreaTypeStyle>
    </VectorScaleRange>
  </VectorLayerDefinition>
</LayerDefinition>


Change History (1)

comment:1 by ksgeograf, 16 years ago

Resolution: fixed
Status: newclosed

Yes. The Thickness parameter is missing. I have fixed it so it is default 0.

Note: See TracTickets for help on using tickets.