Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use OpenLayers to transform projections, which in turn uses the library.

  var ll = new OpenLayers.Projection('EPSG:4326');
  var a = new OpenLayers.LonLat(3,53).transform(ll,new OpenLayers.Projection('EPSG:900913'));
  var b = new OpenLayers.LonLat(3,53).transform(ll,new OpenLayers.Projection('EPSG:27700'));

a will have transformed fine, b will not.

Is it possible to get support for EPSG:27700? suggests adding in a extra class, but that's 2 years old so I'm hopeing it's improved since then.

share|improve this question
up vote 6 down vote accepted

did you include the proj4js files? By default OpenLayers only includes the transforms from 4326 to/from 900913 to save space. See for more details and other links on how to include the proj4s library.

share|improve this answer does not seem to have a file for 27700, or am I missing something? – James Jan 6 '11 at 15:14
A quick google gives (…) Proj4js.defs["EPSG:27700"] = "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs "; EPSG27700 = new OpenLayers.Projection( "EPSG:27700" ); – iant Jan 6 '11 at 15:31
That seems to work, thank you! – James Jan 6 '11 at 16:57

proj4js javascript code actually goes out to to get the info as a last resort (after looking for a local definition and a local JS file). But... looks to be down right now. I haven't gone to it in a while so don't know when it went down or when it'll be back up.

However, a while back I grabbed most of the definitions from the website and this is it for 27700 and it matches @iant's post above

Proj4js.defs["EPSG:27700"] = "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs";

If anyone needs other definitions from there's a zip file with 4000+ definitions available in this thread on OSGEO.

share|improve this answer
Good to know, thank you – James Jan 6 '11 at 17:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.