There is no error in the log.
Here is the log.
Request: getServiceInfo
2015-07-23 12:07:34,251 INFO [geoserver.wms] -
Request: getMap
Time = []
Filter = null
Buffer = 0
Format = image/png
Filters = null
SldBody = null
Sld = null
StyleUrl = null
RemoteOwsType = null
RemoteOwsURL = null
FormatOptions = {DPI=300}
Width = 2083
Height = 2083
Palette = null
Transparent = true
MaxFeatures = null
SRS = EPSG:900913
Styles = [StyleImpl[ name=default_vulnerabilitytool]]
Tiled = false
StyleFormat = sld
ValidateSchema = false
BgColor = java.awt.Color[r=255,g=255,b=255]
FeatureVersion = null
Interpolations = []
TilesOrigin = null
Layers = [org.geoserver.wms.MapLayerInfo@255f39e5]
Crs = PROJCS["WGS84 / Google Mercator",
GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Longitude", EAST],
AXIS["Latitude", NORTH],
AUTHORITY["EPSG","4326"]],
PROJECTION["Mercator_1SP"],
PARAMETER["semi_minor", 6378137.0],
PARAMETER["latitude_of_origin", 0.0],
PARAMETER["central_meridian", 0.0],
PARAMETER["scale_factor", 1.0],
PARAMETER["false_easting", 0.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["x", EAST],
AXIS["y", NORTH],
AUTHORITY["EPSG","900913"]]
Bbox = SRSEnvelope[3308687.6918252804 : 4278826.542818119,
-1986917.4370345192 : -1016778.5860416807]
Env = {}
Angle = 0.0
CQLFilter = null
Elevation = []
FeatureId = null
StartIndex = null
ViewParams = null
StyleVersion = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
Version = 1.1.1
Request = GetMap
Get = true
BaseUrl = http://192.168.0.89:80/geoserver/
RawKvp =
{BBOX=3308687.6918252804,-1986917.4370345192,4278826.542818119,-1016778.5860416807,
MAP_RESOLUTION=300, SERVICE=WMS, HEIGHT=2083, REQUEST=GetMap, DPI=300,
STYLES=, WIDTH=2083, TRANSPARENT=true, VERSION=1.1.1, FORMAT=image/png,
FORMAT_OPTIONS=dpi:300,
LAYERS=malawi_vulnerabilitytool:malawi_national_vulnerability_index,
SRS=EPSG:900913}
RequestCharset = UTF-8
2015-07-23 12:07:34,660 INFO [geoserver.filters] - 192.168.0.89 "GET
/geoserver/malawi_vulnerabilitytool/wms?BBOX=3308687.6918252804%2C-1986917.4370345192%2C4278826.542818119%2C-1016778.5860416807&HEIGHT=2083&WIDTH=2083&TRANSPARENT=true&map_resolution=300&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A300&LAYERS=malawi_vulnerabilitytool%3Amalawi_national_vulnerability_index&REQUEST=GetMap&STYLES=&DPI=300&SRS=EPSG%3A900913"
took 2677ms
2015-07-23 12:07:34,989 INFO [geoserver.filters] - 192.168.0.89 "GET
/geoserver/pdf/print.pdf?spec=%7B%22units%22%3A%22m%22%2C%22srs%22%3A%22EPSG%3A900913%22%2C%22layout%22%3A%22A4%20portrait%22%2C%22dpi%22%3A300%2C%22mapTitle%22%3A%22Title%22%2C%22layers%22%3A%5B%7B%22baseURL%22%3A%22http%3A%2F%2F192.168.0.89%2Fgeoserver%2Fmalawi_vulnerabilitytool%2Fwms%22%2C%22opacity%22%3A1%2C%22singleTile%22%3Afalse%2C%22type%22%3A%22WMS%22%2C%22layers%22%3A%5B%22malawi_vulnerabilitytool%3Amalawi_national_vulnerability_index%22%5D%2C%22format%22%3A%22image%2Fpng%22%2C%22styles%22%3A%5B%22%22%5D%2C%22customParams%22%3A%7B%22TRANSPARENT%22%3Atrue%7D%7D%5D%2C%22pages%22%3A%5B%7B%22center%22%3A%5B3793757.1173217%2C-1501848.0115381%5D%2C%22scale%22%3A5500000%2C%22rotation%22%3A0%2C%22comment%22%3A%22safa%22%7D%5D%7D"
took 3237ms
On Thu, Jul 23, 2015 at 11:55 AM, Mauro Bartolomeoli <
[email protected]> wrote:
> Uhm... I cannot see anything strange in the pdf, apart from the fact that
> it does not include the legend items.
>
> Do you have any errors / warning in GeoServer logs when you print?
>
> Mauro
>
>
> 2015-07-23 9:22 GMT+02:00 Wondimagegn Tesfaye <[email protected]>:
>
>> Hello Mauro,
>>
>> Yes, it produces a valid image.
>> I have attached the pdf file.
>>
>> Thanks!
>>
>> On Thu, Jul 23, 2015 at 9:59 AM, Mauro Bartolomeoli <
>> [email protected]> wrote:
>>
>>> Hi,
>>> does the legend url (
>>> http://localhost:8080/geoserver/malawi_vulnerabilitytool/wms?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=malawi_national_vulnerability_index&FORMAT=image%2Fpng)
>>> produce a valid image?
>>>
>>> Can you attach the produced pdf, so that I can take a look?
>>>
>>> Thanks
>>> Mauro
>>>
>>>
>>> 2015-07-23 8:30 GMT+02:00 Wondimagegn Tesfaye <[email protected]>:
>>>
>>>> Dear Members,
>>>>
>>>> I was trying to include legend in the pdf file but it is not being
>>>> included. I see an empty box in place of the legend. Below is my code.
>>>>
>>>> Spec.
>>>>
>>>> "legends": [
>>>> {
>>>> "classes": [
>>>> {
>>>> "icons": [
>>>>
>>>> "http://localhost:8080/geoserver/malawi_vulnerabilitytool/wms?TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=malawi_national_vulnerability_index&FORMAT=image%2Fpng"
>>>> ],
>>>> "name": 'icon name',
>>>> "iconBeforeName": true
>>>> }
>>>> ],
>>>> "name": 'Legend'
>>>> }
>>>> ],
>>>>
>>>>
>>>> config.yaml
>>>>
>>>> - !columns
>>>> # columns can have an absolute position. In that case, they need the 3
>>>> following fields:
>>>> absoluteX: 50
>>>> absoluteY: 300
>>>> width: 440
>>>> items:
>>>> - !legends
>>>> backgroundColor: #FFFFFF
>>>> borders: true
>>>> align: left
>>>> inline: true
>>>> maxHeight: 700
>>>> maxWidth: 200
>>>> defaultScale: 0.5
>>>> iconMaxWidth: 80
>>>> iconMaxHeight: 80
>>>> iconPadding: 3 0 0 0
>>>> columnMargin: 10
>>>> classIndentation: 3
>>>> classSpace: 5
>>>> backgroundColor: white
>>>> layerFontSize: 9
>>>> - !scalebar
>>>> type: bar_sub
>>>>
>>>>
>>>> Thanks!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Geoserver-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>>
>>>>
>>>
>>
>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users