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

Tim Sutton tim at kartoza.com
Tue Feb 6 11:09:22 PST 2018


Hi Calle

If you can, share the dataset with me and I will take a look.

Regards

Tim

> On 06 Feb 2018, at 19:17, Zoltan <zoltans at geograph.co.za> wrote:
> 
> Permission denied is an OS error. (I wish the 'fullstop' char had an uppercase version :-)  )
> If you are adamant that you have write access (and sufficient space) on the output folder (copy something from your desktop into that folder to do a simple check) - then maybe someone on the DEV side of QGIS can help you find out which file is either being created or accessed, resulting in this permissions error.
> 
> Good luck,
> Zoltan
> 
> On 2018-02-06 17:21, Calle Hedberg wrote:
>> Zoltan,
>>  
>> This is what I’m doing. Comment in capitals:
>>  
>> From: Africa [mailto:africa-bounces at lists.osgeo.org <mailto:africa-bounces at lists.osgeo.org>] On Behalf Of Zoltan
>> Sent: Monday, 05 February 2018 20:15
>> To: africa at lists.osgeo.org <mailto:africa at lists.osgeo.org>
>> Subject: Re: [OSGeo Africa] How to convert "New Namibia" projection to EPSG 4326 in QGIS
>>  
>> Hi Calle,
>> As you have correctly noted, the .prj file tells QGIS how to interpret th embeded "bunch of numbers" [ie: coordinates] in the shapefile geometry. CORRECT
>> This means that you cannot simply edit the prj file - you actually have to change the bunch of numbers inside the shapefile to be latlong values that are in the correct place in Namibia. I KNOW
>> So:
>> Simply open a "clean" QGIS, and note that the empty viewport is in EPSG:4326 (bottom right corner of QGIS window.
>>  
>> DONE
>> Drag and drop your shapefile into the Layers Panel (note the bottom right CRS should change to your Shapefile CRS)
>>  
>> DONE
>> right-click your shapefile name in the Layers Panel and choose Save As
>> DONE
>> 
>> In the pop-up window, check that "Format" is set to ESRI Shapefile, Choose a Filename for your LatLong shapefile and change CRS to EPSG:4326 - and click OK
>> Format ESRI shapefile OK
>> New file name
>> CRS: EPSG 4326, WGS84
>> Encoding utf-8
>> Ticked “add saved file to map”
>> No symbology
>> Scale: 1:50000
>> Geometry type Automatic
>> Extent – layer options Resize NO, SHPT blank
>> No custom options set
>> Click OK, and I get
>> “Export to vector file failed.
>> Error: creation of layer failed (OGR error:Failed to create file Region2.shp: Permission denied)”
>>  
>> 
>> Your saved shapefile will now have been reprojected to GCS on  WGS84.  NOPE
>> To be pedantic, close this QGIS and open a new QGIS, and drag/drop your saved shapefile into it. N/A
>> 
>> The process above is more or less what I’ve always used before, hundreds of times – but now,for the first time, it only returns this “Permission Denied” message.
>> 
>> Note – this is not a folder permission issue. I can use save as for any derived layer, but not when converting….
>> 
>> Other ideas?
>> 
>>  
>> 
>> Regards
>> 
>> Calle
>> 
>> 
>> 
>> HTH,  (no, not the chlorine product)
>> Zoltan
>> 
>> On 2018-02-05 17:53, Calle Hedberg 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 <mailto:Africa at lists.osgeo.org>
>> You can UNSUBSCRIBE at https://lists.osgeo.org/mailman/listinfo/africa <https://lists.osgeo.org/mailman/listinfo/africa>
>> 
>> 
>> -- 
>>  
>> =============================================
>> Zoltan Szecsei GPrGISc 0031
>> Geograph (Pty) Ltd.
>> GIS and Photogrammetric Services
>>  
>> P.O. Box 7, Muizenberg 7950, South Africa.
>>  
>> Mobile: +27-83-6004028
>> Fax:    +27-86-6115323     www.geograph.co.za <http://www.geograph.co.za/>
>> ============================================= 
>> 
>> 
>> _______________________________________________
>> Africa mailing list
>> Africa at lists.osgeo.org <mailto:Africa at lists.osgeo.org>
>> You can UNSUBSCRIBE at https://lists.osgeo.org/mailman/listinfo/africa <https://lists.osgeo.org/mailman/listinfo/africa>
> -- 
> 
> =============================================
> Zoltan Szecsei GPrGISc 0031
> Geograph (Pty) Ltd.
> GIS and Photogrammetric Services
> 
> P.O. Box 7, Muizenberg 7950, South Africa.
> 
> Mobile: +27-83-6004028
> Fax:    +27-86-6115323     www.geograph.co.za <http://www.geograph.co.za/>
> ============================================= 
> _______________________________________________
> Africa mailing list
> Africa at lists.osgeo.org <mailto:Africa at lists.osgeo.org>
> You can UNSUBSCRIBE at https://lists.osgeo.org/mailman/listinfo/africa <https://lists.osgeo.org/mailman/listinfo/africa>
—







Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com <http://kartoza.com/> to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/africa/attachments/20180206/723724b2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/africa/attachments/20180206/723724b2/attachment-0001.jpg>


More information about the Africa mailing list