2

This question already has an answer here:

I am attempting to create a 24x36 map of New York City, and overlay it with a shapefile from City Planning. I'm using the Openlayers plugin, and I've tried all of the different types of base street map layers. I have been able to successfully convert the shapefile from a NAD 83 projection (EPSG 2263) to a WGS 84 projection (EPSG 3857), but I'm still suffering from some type of shift whenever I draw the map out on the print composer on a large scale piece of paper. The larger I try to print, the more dramatic the shift the misalignment.

Aligned base layer and shapefile in browser

Misaligned layers in print composer

marked as duplicate by underdark Apr 17 '15 at 19:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Please try to add all layers in their nativ projection. Then enable the on-the-fly projection for the whole QGIS project to get the result in your desired projection. Cause this still the same problems? – Mapper May 15 '14 at 5:13
  • Does the canvas change if you turn on On-the-fly-reprojection? Are you using OSM plugin or Openlayers plugin? – AndreJ May 15 '14 at 5:48
  • @Mapper I still have the same problem on the composer when I add the layers in the native projection and then enable on-the-fly – Amir May 15 '14 at 14:38
  • @AndreJoost I'm using the Openlayers plugin, and if I don't use OTF reprojection, and the original shapefile, it projects New York City to be roughly in the middle of the Atlantic ocean. Also, if you look at the print composer picture you might notice not only do boundaries not match up but neither does scale, and I'm not sure this can all be caused by projection issues. – Amir May 15 '14 at 14:41
  • This problem seems to occur every now and then: hub.qgis.org/issues/5827 and hub.qgis.org/issues/8824. Can you upload the shapefile somewhere? – AndreJ May 15 '14 at 15:19
2

According to some answers you need to size your map in composer to the same size as the page size. It works, but the only problem is that I loose my framing and coordinate indicators that is on the outside of map. My personal bypass for this is the Georef Export Plugin. With that I first export the background image from google satelite and load the saved image. The vectors are now neatly aligned and I can save it as pdf or image nicely.

0

Strangely, your shapefiles work for me with and without On-the-fly-reprojection, exported as png and pdf:

enter image description here

Solid colour is the WGS84 file, and dotted the EPSG:3857 one. Without OTF, the WGS84 shifts to Nigeria, but the dotted remains:

enter image description here

Tested under Windows 7, also format A1 and Google background. Not sure what is different on your side. My Openlayers plugin is version 1.1.1, perhaps the update to 1.1.2 breaks it again?

  • I followed your steps and you are correct it works with A1. I then switched paper sizes in Print Composer to Arch D and A0 and ended up with the scale and misalignment issues. Perhaps whatever is used to reproject only works for printing small copies? – Amir May 15 '14 at 19:18
  • I made a mistake in my comment. I was able to get it to work with A4 not A1. I'm also on Win 7, Openlayers version 1.1.2 Is there a way for me to download and install the older version? – Amir May 15 '14 at 19:38
  • It should be in the standalone version. I now tested A0 format and got stuck with missing tiles, and QGIS crashing. This might be a memory issue. – AndreJ May 15 '14 at 20:06
  • 1
    I think I found a work around. It's about order of operations. If I select the paper size before I project the map it appears to work fine with the Arch D. – Amir May 16 '14 at 17:15
  • 1
    Well thats what I did without thinking about it. – AndreJ May 16 '14 at 17:21
0

To follow this issue's development, please refer to Bug report #5827 Printing issue

Not the answer you're looking for? Browse other questions tagged or ask your own question.