Opened 14 years ago

Closed 13 years ago

#3028 closed bug (worksforme)

Displacement between vector and WMS layers after printing

Reported by: dr Owned by: mhugent
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Printing Version: Trunk
Keywords: Cc: dr, gislab, alexbruy
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: yes

Description

Open vector layer and WMS layer from any WMS Server (for example "osm" layer from "http://wms.latlon.org/?" server). In View all looks fine. Create new print composer and add map to it. All looks fine again. But after printing to pdf or to image we get displacement between vector and wms layers. It was tested on different wms servers and vector layers with different CRSs. See attachment.

Attachments (8)

21.09.png (236.2 KB ) - added by dr 14 years ago.
nada01_1-4_100dpi_raster_win2k.pdf (125.5 KB ) - added by Thaddeus 13 years ago.
nada01_1-4_100dpi_vector_win2k.pdf (110.8 KB ) - added by Thaddeus 13 years ago.
nada01_1-6_100dpi_vector_win2k.pdf (209.7 KB ) - added by Thaddeus 13 years ago.
nada01_1-6_100dpi_raster_win2k.pdf (128.4 KB ) - added by Thaddeus 13 years ago.
nada01_1-5_100dpi_vector_win2k.zip (236.0 KB ) - added by Thaddeus 13 years ago.
nada01_1-5_100dpi_raster_win2k.pdf (127.7 KB ) - added by Thaddeus 13 years ago.
1-6-test.zip (26.0 KB ) - added by Thaddeus 13 years ago.

Download all attachments as: .zip

Change History (19)

by dr, 14 years ago

Attachment: 21.09.png added

comment:1 by jef, 14 years ago

Owner: changed from nobody to jef

comment:2 by dr, 14 years ago

The same problem when print simple raster and vector layers - in print composer all looks fine, but after export to pdf considerable displacement is presented.

comment:3 by alexbruy, 14 years ago

Problem with WMS confirmed on Linux with QGIS 1.6.0 r14269

comment:4 by jef, 14 years ago

Does "Print As Raster" help?

comment:5 by dr, 14 years ago

Print as raster doesn't help. I try to print map as raster to A2 paper size PDF and get displacement again.

comment:6 by jef, 13 years ago

see also #3448

comment:7 by Thaddeus, 13 years ago

I also have the same wrong displacement problem under Win using 1.6 and 1.5 and exporting as vector, but it does not happen with QGIS 1.4. Raster works OK. The vector PDF output (QGIS 1.6 Win) has other problems too, it is completely bloated with strange huge images not found on the source file: just printing an empty file with nothing on it, nil, nada, creates an 9MB (unzipped streams) PDF file having 3 large streams with images and one stream with badly malformed PS code. Under Ubuntu, the exported vector PDF output is not usable because the PC freezes for 5 minutes trying to draw a simple line of text on the screen due to PostSript rendering problems.

comment:8 by Thaddeus, 13 years ago

Here is some test data:

1-6-test.zip the QGS test file has two layers, an raster image showing a well defined edge --nice for hand tracing-- and a line-SHP layer with the trace of the raster layer: 8 small files in total.

PDF's contain the export-to-PDF result under Win2k using QGIS 1.4, 1.5, 1.6..

Best exported PDF is the vector QGIS 1.4 printout, but has no vector data though.

by Thaddeus, 13 years ago

by Thaddeus, 13 years ago

by Thaddeus, 13 years ago

by Thaddeus, 13 years ago

by Thaddeus, 13 years ago

by Thaddeus, 13 years ago

by Thaddeus, 13 years ago

Attachment: 1-6-test.zip added

comment:9 by jef, 13 years ago

Owner: changed from jef to mhugent

comment:10 by mhugent, 13 years ago

Awaiting user input: set

Is this still true? Tested with current trunk and the attached dataset and the pdf export seems to look the same on map, in composer and in pdf.

comment:11 by jef, 13 years ago

Resolution: worksforme
Status: newclosed

closing for the lack of feedback.

Note: See TracTickets for help on using tickets.