Saturday, 5 December 2015

coordinate system - Projecting vector data in QGIS?


I'm running QGIS 2.2 on Ubuntu 14.04. Trying to project data gives me a hard time right now.


The last time I did that was in 2.0 and I basically changed the projection by saving the data as a new file with a certain layer CRS and opening it in another QGIS project. That doesn't work right now, even when on-the-fly transformation is disabled in the project properties.


I've been trying project some vector data with WGS 84 geographical coordinates on WGS 84 UTM 32 N (Germany) but see no results from changes I make in the project or the layer properties.



Answer



If you want to reproject the shapefile to UTM, you have to re-set its projection back to WGS84.


As you can read from the extent, the coordiantes are in degrees. Maybe you tried to reproject the layer by simply using Set Layer CRS. But that spoils your data by changing the CRS without touching the coordinates.


So use Set Layer CRS once again to assign EPSG:4326 for it, then use Save As... with another filename, and the desired CRS.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...