I'm trying to save a shapefile that came in EPGS:3005 coordinate system, so all the shapefile polygon points have 6 or 7 digits before the decimal point (e.g. 1223282.8231), and I want to save/convert the shapefile to EPGS:4326 or any other CRS that has 2 or 3 digits before the decimal point (i.e. longitude and latitude to be processed and uploaded to Google My Maps.

I've tried all the methods shown here, and it appears like the layer properties have been saved as EPGS:4326, but when I run my python script (that creates the KML file for Google Maps) all the coordinates are still in the 6 or 7 digit format. How do I fix this?

  • Are you sure you tried method 3 and are using the new file, if so please add your python script
    – Ian Turton
    Jun 20, 2017 at 8:04
  • Yes, I've tried Method 3. Just to confirm: EPGS:4326 is the one I want to upload for Google My Maps, correct?
    – a2xia
    Jun 20, 2017 at 8:11
  • please edit your question
    – Ian Turton
    Jun 20, 2017 at 8:13
  • What part of the question needs editing? Anyways, here's the python script I wrote (I'm not great at Python either): pastebin.com/Ue2Ryt4z
    – a2xia
    Jun 20, 2017 at 8:16
  • You can check what coordinates are in the file by creating new fields (x and y), and using the field calculator > geometry to show what coordinates are stored in the file.
    – LMB
    Jun 20, 2017 at 8:17

1 Answer 1


I've tried all the methods shown here

Don't blindly apply things you do not understand!

I assume you did "2. Right click on vector layer > Set Layer CRS"? Now QGIS thinks your layer's coordinates are already EPSG:4326 so everything is broken.

Restart from scratch. Open QGIS to a blank project, load your Shapefile, then do "3. Right click on vector layer > Save As..." and there, and only there, choose EPSG:4326. A new file will be written and it will have coordinates transformed to EPSG:4326. Your original file will be left untouched.

  • 1
    Yes, this is what worked! My mistake was that I tried all three methods sequentially without resetting the shapefile. "Don't blindly apply things you do not understand!" Very wise words!
    – a2xia
    Jun 20, 2017 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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