[OSGeo Africa] How to convert "New Namibia" projection to EPSG 4326 in QGIS

Calle Hedberg chedberg at telkomsa.net
Tue Feb 6 06:06:31 PST 2018


Uazu,

 

That approach was the very first approach I tried:

 

1.      Open a blank project in qgis desktop 18.2, drag and drop the “regions.shp” file onto it. Moving the cursor around, it is obvious that the shapefile is using projected (UTM-like) coordinates.

2.      Right-click on the layer name, create a new layer called “region2” (whether as a shapefile or else as a GML file that I actually need has no impact on outcome)

3.      Select EPSG 4326 as the CRS

4.      When SAVING, I get

“Export to vector file failed.

Error: creation of layer failed (OGR error:Failed to create file Region2.shp: Permission denied)

 

I have no idea WHY it is refusing to create that derived layer – I have done similar things hundreds of times, and never seen this problem

 

Regards

Calle

 

From: Africa [mailto:africa-bounces at lists.osgeo.org] On Behalf Of Uazukuani
Sent: Monday, 05 February 2018 20:25
To: Africa local chapter discussions
Subject: Re: [OSGeo Africa] How to convert "New Namibia" projection to EPSG 4326 in QGIS

 

Hi Calle,

 

The New Namibia CRS parameters are just fine. You need to re-projects the files to your desired CRS.

 

I think the best way to go about that in QGIS, is to right click on the layer name and SAVE AS to create a new file. Ensure that CRS of the new file that you are creating, is changed to EPSG 4326 before saving.

 

I hope that helps. 

Uazu, 

Whk, Namibia

 

Sent from mobile.
Kindly excuse typos and brevity.

 

On 05 Feb 2018 5:59 PM, "Calle Hedberg" <chedberg at telkomsa.net> wrote:

Hi,

 

I’ve received two shapefiles from Namibia – originally from the National Statistics Agency, I think – which has the following .prj file:

 

PROJCS["New_Namibian",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],

PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",600000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",17.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

 

When I open the file in QGIS and hover over the maps, the coordinates shown are clearly projected coordinates.

 

My problem is that I need the maps in EPSG 4326 (WGS-84, geographical coordinates) format, and I’ve been unable to do the conversion – changing the value under shapefile->Properties make the shapefile disappear.

 

So I’m doing something wrong – probably something really dumb – but I don’t know WHAT….

 

Anybody able to give me step-by-step instructions on how to re-project “New Namibian” back to standard EPSG 4326?

 

Regards
Calle

Cape Town


_______________________________________________
Africa mailing list
Africa at lists.osgeo.org
You can UNSUBSCRIBE at https://lists.osgeo.org/mailman/listinfo/africa

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/africa/attachments/20180206/ccf83280/attachment.html>


More information about the Africa mailing list