Monday, 5 March 2018

Converting UK OS NGR coordinates to lat/long using ogr2ogr?


How do I convert UK OS NGR coordinates to lat/long using ogr2ogr?



I've read through the ogr2ogr page, but I can't see anything obvious on how to do it


I've used the FME trial and it was as simple as setting the target to WSG84


I've read Convert UK OS grid coordinates to decimal degree WGS84? but this uses a 3rd party tool, NGConv.exe



Answer



Something like:


ogr2ogr -f XXX -s_srs epsg:27700 -t_srs epsg:4326 out.xxx in.shp

The ogr2ogr manual page explains all the options.


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...