We have defined a style using a Graphic Mark defined using a WKT symbol.
The symbol looks fine on the map, but in the Legend graphic it appears to
be displaced to the upper right, resulting in a useless display.

Is there a bug in the Legend code for this? Or should the WKT extent be
different (perhaps in [0,1] ?

See attached images of map display and Legend graphic. SLD is:

<?xml version='1.0' encoding='ISO-8859-1'?>
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld";
xmlns:ogc="http://www.opengis.net/ogc"; xmlns:xlink="
http://www.w3.org/1999/xlink"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://www.opengis.net/sld StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>XXX</Name>
    <UserStyle>
      <FeatureTypeStyle>
        <Rule>
<PointSymbolizer>
  <Graphic>
<Mark>
  <WellKnownName>wkt://POLYGON((15 25, 25 15, 50 40, 75 15, 85 25, 60 50,
75 65, 79 52, 94 66, 82 74, 84 76, 75 85, 71 83, 65 89, 52 90, 44 88, 57
83, 65 75, 50 60, 40 70, 40 75, 36 85, 30 90, 20 90, 30 80, 20 70, 10 79,
10 70, 15 64, 24 60, 30 60, 40 50, 15 25))</WellKnownName>
  <Fill>
<CssParameter name="fill">#000000</CssParameter>
  </Fill>
<Stroke>
<CssParameter name="stroke">#888888</CssParameter>
</Stroke>
</Mark>
<Size>16</Size>
  </Graphic>
</PointSymbolizer>
</Rule>

      </FeatureTypeStyle>
    </UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to