camptocamp / c2cgeoportal

c2cgeoportal application
http://geomapfish.org
Other
64 stars 46 forks source link

Strange behaviour when printing layer with minscale #1146

Closed rbovard closed 6 years ago

rbovard commented 9 years ago

I have a layer with MAXSCALEDENOM defined and it appears in the print depending the orientation of the page.

Steps to reproduce:

Is the scale handled differently according to the format? Because it works fine with A4 Portrait, A4 Landscape, A3 Portrait but not with A3 Landscape.

image

ochriste commented 9 years ago

depending the page orientation, the image request done by the mapfish print to mapsever will not be the same, and if you are near the limit of your minscale, chance are that one request is juste above and the other juste under. the only way here is to adjust the minscale value to a lower value till it works in both case.

ochriste commented 9 years ago

or, if you want the layer to be effectively not visible, you must increase the minscale value

ochriste commented 9 years ago

well, here it will be maxscaledenom and not minscaledenom, sorry

rbovard commented 9 years ago

Ok, thanks for this confirmation that the request is not the same depending the page orientation.

I'll adapt my values.

ochriste commented 9 years ago

to be precise, it's indirectly caused by the orientation and directly caused by the size of the image itself.

sbrunner commented 9 years ago

Is it fixed ?

rbovard commented 9 years ago

More or less...

In fact, you need to be careful when setting min/max scales because if values are to close to the limit, the printed map will not reflect the displayed map for the same scale.

Maybe add a note in print documentation about it.

sbrunner commented 6 years ago

Moved to Jira

sbrunner commented 6 years ago

https://jira.camptocamp.com/browse/GSGMF-500