[Geoserver-devel] [jira] (GEOS-5144) polygons filled with External graphicFill mentioned in SLD is printed in png/gif/png but not in pdf

RUBEN ILLANA created BugGEOS-5144
polygons filled with External graphicFill mentioned in SLD is printed in png/gif/png but not in pdf

Issue Type:

BugBug

Affects Versions:

2.1.3

Assignee:

Andrea Aime

Attachments:

Madrid_VPLA_REDES.pdf, sld_images.zip, VPLA_REDES.png

Created:

04/Jun/12 7:00 AM

Description:

We are having problems to generate pdf files which polygons are filled with external images.

Our layers are loaded from an oracle database, the image puntos_desordenados.png is in folder /styles inside the data directory and sld code is (full sld file is attached):

<sld:Rule>
<sld:Name>RED_LOCAL</sld:Name>
<sld:Title>Red local</sld:Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>DS_TIPO</ogc:PropertyName>
<ogc:Literal>RED_LOCAL</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<sld:PolygonSymbolizer>
<sld:Fill>
<sld:GraphicFill>
<sld:Graphic>
<sld:ExternalGraphic>
<sld:OnlineResource
xlink:type=“simple”
xlink:href=“puntos_desordenados.png”/>
<sld:Format>image/png</sld:Format>
</sld:ExternalGraphic>
<sld:Size>16</sld:Size>
</sld:Graphic>
</sld:GraphicFill>
</sld:Fill>
<sld:Stroke>
<sld:CssParameter name=“stroke”>#3F3F3F</sld:CssParameter>
<sld:CssParameter name=“stroke-width”>0.8</sld:CssParameter>
</sld:Stroke>
</sld:PolygonSymbolizer>
</sld:Rule>

These are some examples of urls generated by geoserver:

WMS/png:
http://desarrollo.madrid.org/geoserver/wms?LAYERS=Madrid%3AVPLA_REDES&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A23030&BBOX=470958.60996777,4487001.4935801,473934.50446777,4489820.4561435&WIDTH=512&HEIGHT=485

downloading VPLA_REDES.png

WMS/pdf:
desarrollo.madrid.org/geoserver/wms?LAYERS=Madrid%3AVPLA_REDES&STYLES=&FORMAT=application%2Fpdf&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A23030&BBOX=470958.60996777,4487001.4935801,473934.50446777,4489820.4561435&WIDTH=512&HEIGHT=485

downloading Madrid_VPLA_REDES.pdf

As you can see, the pdf request doesn’t fill areas with external image as png request does. The problem still appears if we change the image ‘puntos_desordenados.png’ for other one (in format png, jpg or gif)

We don’t have this problem in point layers with external images neither in polygon layers with geoserver native styles. In these cases the pdf output is right.

Project:

GeoServer

Priority:

MajorMajor

Reporter:

RUBEN ILLANA

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)