Bug report #3028
Displacement between vector and WMS layers after printing
|Affected QGIS version:||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||Copied to github as #:||13088|
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.
#6 Updated by Thaddeus - almost 12 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.
#7 Updated by Thaddeus - almost 12 years ago
Here is some test data:
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.
#12 Updated by Thaddeus - over 11 years ago
- File TestData__Single_band_properties__LayerMisplacement.zip added
- Pull Request or Patch supplied set to No
No, version QGIS 1.7.0 Wroclaw under Win still PDF-exports shifted layers and shapes as raster instead of PS vectors --non "Print as raster" option.
Using the Win print services results in an OK printout but all shapes are rasterized.
PDF export as raster works OK.
#14 Updated by Jürgen Fischer over 11 years ago
micha - wrote:
I can verify that on Win7 - OSGeo4W installer - the shift of vector layers vs raster (ECW) . The problem appears only in PDF export. When saving as image there;s no shift. And on the map canvas everything looks fine.
Do you mean the problem still exists in master (aka qgis-dev in OSGeo4W)? That's where it should be fixed - 1.7.0 doesn't have that fix.