Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've created a custom map in QGIS with a few shapefiles. I'm using leaflet.js to render the map and the shapefile points and everything lines up correctly. The CRS is set to 4326.

When I export the shapefiles as geojson from QGIS, the coordinates are huge and look something like this: 9949941.925330460071564, -12405330.17722519300878

Leaflet is expecting coordinates that look like this: 82.9687,63.2336

Anyone have any insight into resolving this problem?

share|improve this question
Quick clarification, I want to export the shapefiles as geojson to zoom to specific coordinates on the prerendered map. – Roy Kolak May 17 '13 at 17:00
Looks like your original shapefiles are in projection that is in metres/feet need to reproject into WGS84 then your will get the expected decimal degrees. – Mapperz May 17 '13 at 17:00
When I right click on a shapefile > Set Layer CRS.. it's currently set to 'WGS 84' and 'EPSG:4326'. Is that what you mean? – Roy Kolak May 17 '13 at 17:06
That is what the layer is set to, but the data is obviously ot EPSG:4326. Do you have a .prj file for your shapefile? You can look into it with any text editor. – AndreJ May 17 '13 at 17:25
Yes I do, this is the contents of one of my shapefile's .prj: GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.2572235‌​63]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] – Roy Kolak May 17 '13 at 17:34

1 Answer 1

up vote 7 down vote accepted

Try to change the layer CRS with Rightclick ->Set Layer CRS to EPSG:3857. To verify that your data is in the correct place you can load the openlayers plugin with Google or Openstreetmap background.

For Geojson export, the target CRS must be EPSG:4326. You have to set that manually when using Rightclick->Save As....

share|improve this answer
Yes! You have saved the day. – Roy Kolak May 17 '13 at 18:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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