[gdal-dev] UK Ordnance Survey grid references

Even Rouault even.rouault at spatialys.com
Sat Apr 27 09:36:23 PDT 2019


> and drop the last 2 figures and round appropriately

Hum, after reflexion, rounding is likely not appropriate, as you give a 
position in a 100x100 square. So truncating should be rather done.

And if truncating is done, then I assume your input coordinates are in
EPSG:4326, since

$ echo "-2.02903211116781 53.4040442788744" | \
		gdaltransform -s_srs EPSG:4326 -t_srs EPSG:27700
398167.225983081 389691.930910573

Hence SJ981896 as you expected

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list