[gdal-dev] UK Ordnance Survey grid references

Paul Meems bontepaarden at gmail.com
Mon Apr 29 01:46:10 PDT 2019


Thanks Even for your quick response and your full example.

You are right the coordinates are in EPSG:4326.
I will use this example.

Thanks,

Paul



Op za 27 apr. 2019 om 18:36 schreef Even Rouault <even.rouault at spatialys.com
>:

> > 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
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190429/7e1012f7/attachment.html>


More information about the gdal-dev mailing list