[GIS] How to add a projection to a Shapefile using open-source tools

coordinate systemshapefile

I have been given some shapefiles WITHOUT a projection. So I need to add the projection in order to display it on google map. I found the projection information I need at http://spatialreference.org/ref/epsg/2066.

Question:
How can I add the projection using an open source method (don't have access to ESRI's software)?

Thanks
Chris

Best Answer

Use ogr2ogr from GDAL:

ogr2ogr -a_srs EPSG:2066 output.shp input.shp

What's neat about ogr is that it can use an existing PRJ file as input as well:

ogr2ogr -a_srs input.prj output.shp input.shp

Related Question