1

I have a raster of BC, Canada, with a projection of WGS84:epsg=4326. I have a shapefile with a projection of NAD83/BC Alber:epsg=3005, all in BC, Canada.

I need to change the shapefile projection to WGS84:epsg=4326 and plot the points on the raster. It looked quite easy in the first place.

  1. I Imported the shapefile into QGIS with Albers projection.
  2. I opened the reproject layer tool.
  3. I changed the projection of the shapefile to WGS84 and saved the shapefile.

After changing the projection, I added the raster layer to QGIS. Then I added the point shapefile.

The points do not fall on the raster file, and it looks like they are still in a different projection, but they are both in WGS84. What do I miss here? What is my problem?

1
  • 1
    Whenever someone writes that they "changed the projection", this is likely to be a variant of the most common question in GIS SE. The platform changes, but the problem is the same: "Changing" the coordinate reference should only be done if the dataset has wrong CRS metadata. Otherwise you're likely the one making it wrong. The correct procedure is to create a new dataset in the desired projection by reprojecting (or deprojecting) the source layer (consider it a "Save As").
    – Vince
    Commented Mar 21, 2023 at 2:42

1 Answer 1

2

Its most likely your source shapefile is not in the coord system that you think it is in, or isn't set properly.

Lets test this. QGIS is able to reprojects data onto the map, on the fly. That is, if you have two data sources of different projections, QGIS will automatically project them to be 'in the correct spot' on the map.

So if you have

  • Raster as WGS84
  • Shapefile as epsg=3005
  • Set your project coord system to be WGS84

Then QGIS will automatically reproject your shapefile from 3005, to WGS84 for map display purposes only. Note that it doesn't save the reprojected data, it just does it on the fly for the map.

Now - Does your data look in the right place? Is the shapefile showing the data in the right spot on the map? If not, then probably the shapefiles source coord system is not 3005.

Lets check. Right click on the data in the layer list > Properties > Information tab - What's it say there under the Coord System section? Not 3005? Invalid? Check this here.

Its possible your file hasn't had the coord system set properly, so you can do this using the 'Assign Projection' tool. But if after you do all that, and the on-the-fly reprojection doesn't work, then it means that data is not in 3005.

Edits

If the on the fly reprojection does work, then it just means that somewhere you have made a mistake with the reprojection and export process.

  • In the Reproject tool, make sure you select the same WGS coord system that the raster file is set at - that is the same EPSG number (as there are many WGS84 projections).
  • In the Reproject tool you can specify the output file, path and type at the bottom of the GUI. Do this. This is 'saving the output shapefile'.
1
  • have added an additional step in the answer, based on your comment.
    – nr_aus
    Commented Mar 21, 2023 at 3:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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