I am using geoserver 2.1.1
I hava two base layers ,one is OSM layers and another one is WMS layer.
Printing control is properly generate PDF file when i am use base layer as
OSM layer but Printing control is not properly working when i am use base
layer as WMS layer.
Issues:
Scaling not affecting WMS layer.
scale:
- 524288000
- 262144000
- 131072000
- 65536000
- 32768000
- 16384000
- 8192000
- 4096000
- 2048000
- 1024000
- 512000
- 256000
- 128000
- 64000
- 32000
- 16000
- 8000
- 4000
so,how can i solve this problem?
please, anybody reply me,
thanks to all.
My config.yaml is
#===========================================================================
# allowed DPIs
#===========================================================================
dpis: [75, 150, 300]
#===========================================================================
# allowed Formats
#===========================================================================
formats: ['*']
#===========================================================================
# the allowed scales
#===========================================================================
scales:
- 524288000
- 262144000
- 131072000
- 65536000
- 32768000
- 16384000
- 8192000
- 4096000
- 2048000
- 1024000
- 512000
- 256000
- 128000
- 64000
- 32000
- 16000
- 8000
- 4000
#===========================================================================
# the list of allowed hosts
#===========================================================================
hosts:
- !localMatch
dummy: true
- !dnsMatch
host: labs.metacarta.com
port: 80
- !dnsMatch
host: terraservice.net
port: 80
- !dnsMatch
host: tile.openstreetmap.org
- !dnsMatch
host: maps.google.com
key:
ABQIAAAAHpGtvfPpxY9zMPKFHkAN_RTwM0brOpm-All5BF6PoaKBxRWWERQhiKjWl2hmgNWJT49rb2YOjL_lRg
port: 80
layouts:
A4:
mainPage:
pageSize: LEGAL
items:
- !map
spacingAfter: 30
width: 440
height: 483
#===========================================================================
# A4 portrait:
#===========================================================================
metaData:
# title: '${mapTitle}'
author: 'MapFish print module'
subject: 'Simple layout'
keywords: 'map,print'
creator: 'MapFish'
# titlePage:
# pageSize: A4
# items:
# - !text
# spacingAfter: 160
# - !text
# font: Helvetica
# fontSize: 20
# spacingAfter: 100
# align: center
# text: '${layout}'
# - !image
# maxWidth: 100
# maxHeight: 100
# spacingAfter: 100
# align: center
# url:
http://trac.mapfish.org/trac/mapfish/attachment/ticket/3/logo_v8_sphere.svg?format=raw
footer: &commonFooter
height: 30
items:
- !columns
config:
cells:
- paddingBottom: 5
items:
- !text
backgroundColor: #FF0000
# align: left
# text: a red box
- !text
align: right
text: 'Page ${pageNum}'
- !image
align: center
maxWidth: 100
maxHeight: 30
spacingAfter: 200
url:
'http://geoserver.org/download/attachments/10158143/pbGS-Bttn228x68.png'
#-------------------------------------------------------------------------
mainPage:
pageSize: A4
rotation: true
# header:
# height: 50
# items:
# - !text
# font: Helvetica
# fontSize: 16
# align: right
# text: '${layout}'
items:
- !text
text: '${mapTitle}'
fontSize: 20
spacingAfter: 30
- !map
spacingAfter: 30
width: 490
height: 583
- !columns
# columns can have an absolute position. In that case, they need
the 3 following fields:
absoluteX: 410
absoluteY: 310
width: 100
items:
- !scalebar
type: bar
maxSize: 100
barBgColor: green
fontSize: 8
align: right
- !text
text: '${comment}'
spacingAfter: 30
- !attributes
source: data
spacingAfter: 30
columnDefs:
id:
columnWeight: 2
header: !text
text: ID
backgroundColor: #A0A0A0
cell: !text
text: '${id}'
name:
columnWeight: 5
header: !text
text: Name
backgroundColor: #AAAAAA
cell: !columns
config:
cells:
- backgroundColor: '${nameBackgroundColor}'
borderWidth: 4
borderColor: '${nameBorderColor}'
items:
- !text
text: '${name}'
icon:
columnWeight: 2
header: !text
text: Symbol
backgroundColor: #A0A0A0
cell: !image
align: center
maxWidth: 15
maxHeight: 15
url:
'http://www.mapfish.org/svn/mapfish/trunk/MapFish/client/mfbase/mapfish/img/${icon}.png'
- !text
font: Helvetica
fontSize: 9
align: right
text: '1:${scale} ${now MM.dd.yyyy}'
footer: *commonFooter
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Printing-with-WMS-layer-problem-tp4936204p4936204.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users