0

I have a few points collected in Google Earth, and now stored in a CSV file:

lat long
47.17347661 7.584905937
47.17347661 7.584905937
47.17756055 7.578652797
47.17756055 7.578652797
47.18636237 7.57629175

and I would like to reproject them to LV95 LN02. I have tried several times to both use "Export > Save Features As > CRS: LV95" or with the function "Processing > Toolbox > Reproject Layer".. but either I get errors or the projection does not work... Any suggestion?

1 Answer 1

5
  1. Load the csv as a Delimited Text enter image description here
  2. As mentioned in the comments by J.R. - Do some visual checks if the data is where it should be - if they are off check the CRS or if Lat/Lng are swapped etc.
  3. Export the data (Right Click the new layer --> Export --> Save Features as) enter image description here
  4. In the properties set your CRS to EPSG:2056 (or any other CRS you want to export to) change the Format to CSV (or any other format). If it is CSV set the GEOMETRY property to AS_XY and the SEPERATOR to your choice. enter image description here

Result:

enter image description here

5
  • 2
    You may add a step between 1 and 2 to check that the import is "right" (right CRS, no Lat/Lon inversion, right field type, ...)
    – J.R
    Commented Oct 10, 2022 at 16:10
  • 1
    good point. some visual check should be done! Commented Oct 10, 2022 at 16:16
  • thanks a lot, very. helpufl!!!! :-)
    – Ommo
    Commented Oct 11, 2022 at 10:24
  • opsss......@Bernd Loigge, I have followed exactly your procedure, but I got an error once I was exporting the new csv file (it did not allow me to create the csv file).... Export to vector file failed. Error: Feature write errors: Feature creation error (OGR error: Failed to create ./reprojected_coordinates.csv: Read-only file system) Feature creation error (OGR error: Failed to create ./reprojected_coordinates.csv: Read-only file system) Only 0 of 5 features written. Storing metadata for the specified uri is not supported
    – Ommo
    Commented Oct 13, 2022 at 7:36
  • Well, it looks like it is a Read-only file system - so you don't have the rights to export the CSV (at least not to the path you specified) Commented Oct 14, 2022 at 9:38

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.