Created
March 10, 2016 21:54
-
-
Save mousebird/6335ce73f789344eeca5 to your computer and use it in GitHub Desktop.
Custom British National Grid projection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let proj4Str = "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +units=m +no_defs" | |
let coordSys = MaplyProj4CoordSystem(string: proj4Str) | |
var bbox = MaplyBoundingBox() | |
bbox.ll.x = 1393.0196 | |
bbox.ll.y = 12494.9764 | |
bbox.ur.x = 671196.3657 | |
bbox.ur.y = 1230275.0454 | |
coordSys.setBounds(bbox) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment