[Geoserver-devel] [jira] (GEOS-6742) PDF output format does not honor the graphic-margin option in SLD

Andrea Aime created an issue

GeoServer / BugGEOS-6742

PDF output format does not honor the graphic-margin option in SLD

Issue Type:

BugBug

Affects Versions:

2.5.3

Assignee:

Andrea Aime

Components:

WMS

Created:

30/Oct/14 9:52 AM

Priority:

MajorMajor

Reporter:

Andrea Aime

The graphic margin option is honored in PNG output, but not in PDF. Example style:

<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:sld="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0.0">
  
  <sld:UserLayer>
    <sld:UserStyle>
      <sld:Name>tl 2010 08013 arealm</sld:Name>
      <sld:Title/>
      <sld:FeatureTypeStyle>

      
        <sld:Rule>
          <sld:Name>cemeteries</sld:Name>
          <ogc:Filter>
            <ogc:PropertyIsEqualTo>
              <ogc:PropertyName>MTFCC</ogc:PropertyName>
              <ogc:Literal>K2582</ogc:Literal>
            </ogc:PropertyIsEqualTo>
          </ogc:Filter>
          <sld:MaxScaleDenominator>500000.0</sld:MaxScaleDenominator>
          <sld:PolygonSymbolizer>
            <sld:Fill>
              <sld:GraphicFill>
                <sld:Graphic>
                  <sld:ExternalGraphic>
                    <sld:OnlineResource
                    xlink:type="simple"
                    xlink:href="./img/landmarks/area/grave_yard.png" />
                    <sld:Format>image/png</sld:Format>
                  </sld:ExternalGraphic>
                </sld:Graphic>
              </sld:GraphicFill>
            </sld:Fill>
          </sld:PolygonSymbolizer>
        </sld:Rule>
  
      </sld:FeatureTypeStyle>
    </sld:UserStyle>
  </sld:UserLayer>
</sld:StyledLayerDescriptor>

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo