I wish to display a map in QGIS (world country shapefiles) showing all countries but centered on the Pacific area.
I am not familiar with Proj4, so is there any way this can be done in QGIS?
coordinate systemqgis
I wish to display a map in QGIS (world country shapefiles) showing all countries but centered on the Pacific area.
I am not familiar with Proj4, so is there any way this can be done in QGIS?
Best Answer
Well, not that easy, as QGIS does not come with predefined Robinson or Miller projections.
So I tried a Custom CRS and got this picture (not in first run!):
For a central meridian at 150° West, it is necessary to split the world boundaries shapefile at 30° East (to be precise, at 29.9 and 30.1 to avoid intersections)
So these are the steps:
Save As ...
into WGS84, and add that to the canvasOn-the-fly-projection
Text delimited layer
, using semicolon as separator and WGS84 as CRS (you will get a very thin polygon around 30°E)Vector -> Geoprocessing -> Difference
with the two polygon layers+proj=robin +lon_0=-150 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs
On-the-fly projection
and choose Robinson as project CRSFor the Miller projection, you can use the same pre-cut shapefile. In Proj, Miller has some problems with the ellipsoid, so we take a sphere instead (you won't see a difference):
With on-the fly activated, it does not look as well, New Zealand is missing at full extent, but returns when zooming in. So we need to
Save As ...
the shapefile in miller projection, and show only that, without on-the-fly reprojection: