This tutorial will introduce you to the GDAL command line tools.
Sometimes you want to
reproject coordinates in an ASCII file, e.g. which has been saved to text in a
spreadsheet program. Here we will convert the coordinates in a comma separated
ASCII file locations.csv to a new
ASCII file locations_reprojected.csv.
It is good practice to first view the contents of a CSV file and to verify (1) the coordinates, and (2) the column separator. The separator is not always a comma and sometimes depends on the language settings used while exporting from a spreadsheet programme.
1. View the contents of locations.csv . You can use the type command from the command prompt as you learned in the DOS tutorial.
Some explanation about
the XML file:
encoding="PointFromColumns" x="lon" y="lat"/>
-t_srs EPSG:28992 -f "CSV" locations_reprojected.csv locations.vrt -lco
-f "ESRI Shapefile" -t_srs
EPSG:28992 locations.shp locations.vrt