2

I downloaded the shapefile for the country "ne_10m_admin_0_countries.shp" from the natural earth web site, and opened it with QGIS and saved is with EPSG:3832.

I restarted QGIS and opened the new saved shapefile but it was not displayed and even "Zoom to Layer" did not show anything. However, I enabled on the fly projection and changed the projection to some other (I tried EPSG:4326) and it was displayed in that projection. After that check off on the fly option or change it to EPSG :3832, it was properly displayed in EPSG:3832 and "Zoom to Layer" worked properly.

Why it wasn't displayed in the first place and it was fine after I changed CRS to some other.

My environment is Ubuntu 14.04 and QGIS is 2.18.1.

1
  • Where did you change the CRS of the shape file ?
    – Shiko
    Commented Feb 20, 2017 at 3:30

2 Answers 2

4

When saving in the new projection, the xmax and ymax of the extent of the output layer goes to infinity and hence the error (can be seen in the Metadata tab of Properties of the shapefile). The scope of the EPSG:3832 is not for global mapping and its area use can be seen at - http://spatialreference.org/ref/epsg/3832/

To avoid this error, I would suggest selecting the region required for analysis and saving that as a shape file in EPSG:3832 rather that the whole world.

1
  • Thank you the answer. Deleting Greenland and Antarctica solved the problem even the rest does not fit in the scope of CRS. Is the link spatialreference.org/ref/epsg/3832 correct? The scope with the red rectangle seems differ from the original scope. (Or it says "an error occured" so maybe just an error.) I checked this epsg.io/3832.
    – user26767
    Commented Feb 26, 2017 at 17:54
1

For defining projection for Shape file, follow below steps:

1) Select menu Vector > Data Management Tools > Define Current Projection
2) In Output CRS red rectangle, press on "..." button to define required projection for the shape file.

enter image description here

1
  • Sorry that I didn't explain enough. This is how I changed CRS from 4326 to 3832.
    – user26767
    Commented Feb 26, 2017 at 17:56

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.