What scale were you printing at? Maybe the maxScaleDenominator prevented that
layer from being printed.
Hope this helps.
Jerome Wendell
From: Макс Кливер [mailto:[email protected]]
Sent: Monday, July 28, 2014 1:10 PM
To: geoserver-users
Subject: [Geoserver-users] How to print gwc layer.
Hi.
I have a two gwc layers. And try to print it with printing module. Request to
print module:
{
"units": "m",
"srs": "EPSG:900913",
"layout": "A4",
"dpi": 75,
"layers": [{
"maxScaleDenominator": 17100,
"baseURL": "http://host/geoserver/gwc/service/tms/",
"opacity": 1,
"type": "TMS",
"layer": "wspace:asbest@EPSG:900913@png",
"maxExtent": [-20037508.34, -20037508.34, 20037508.34, 20037508.34],
"tileSize": [256, 256],
"resolutions": [4.788009576019154, 2.394004788009577,
1.1970023940047885, 0.5985011970023942, 0.2992505985011971,
0.14962529925059856, 0.07481264962529928, 0.03740632481264964,
0.01870316240632482, 0.00935158120316241, 0.004675790601581205,
0.0023378953007906025, 0.0011689476503953012, 0.0005844738251976506,
0.0002922369125988253, 0.00014611845629941266],
"format": "png;"
}, {
"baseURL": "http://host/geoserver/gwc/service/tms/",
"opacity": 1,
"type": "TMS",
"layer": "wspace:tp_6_10@EPSG:900913@png",
"maxExtent": [-20037508.34, -20037508.34, 20037508.34, 20037508.34],
"tileSize": [256, 256],
"resolutions": [156543.03390625, 78271.516953125, 39135.7584765625,
19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562,
1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226,
76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017,
4.777314267158508],
"format": "png;"
}],
"pages": [{
"center": [6849633.7359556, 7763628.0025485],
"scale": 8000,
"rotation": 0,
"mapTitle": "5656"
}]
}
Layer wspace:asbest not printed but layer wspace:tp_6_10 was printed.
What can be wrong here?
For me only resolutions looks strange, i mean there is so huge diferense
between it.
Any advice? If you need more data i'll give it.
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users