Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using Proj4Js for northing,easting to lat,long transformation.

My Datum is "AGD84" and projection is "Transverse Mercator".

While doing so I found that if I don't specify "+proj" parameter in the definition file of source coordinate system then it gives me error saying "Projection Code Not Found".

I found that "Proj4Js" is having some ready made library of projection code but nothing out of them is useful to me.

Can anyone suggest any tool in which if we pass datum & projection name then automatically it generates projection specific formula which can be usable with Proj4Js ?

share|improve this question
    
have you checked spatialreference.org? a search for AGD84 gives: spatialreference.org/ref/?search=AGD84 –  atlefren May 23 '12 at 11:18

1 Answer 1

you can use http://spatialreference.org which has previously added Proj4js format file.. The only thing you will do is that search and then get Proj4js file as following example...

Proj4js.defs["EPSG:4203"] = "+proj=longlat +ellps=aust_SA +no_defs";

beside this if you add some Proj4js defiantion to in your js file you can reach them on openlayers as weiting this:

to add the script file any proj defination:

Proj4js.defs["EPSG:27563"]="+title=LAMB sud france +proj=lcc +lat_1=44.1 +lat_0=44.1 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m";

to get proj defination:

Proj4js.defs["EPSG:27563"]

it will return you as a result of defination which you want...

i hope it helps you...

share|improve this answer
    
thanks Aragon...it really helped me....by the way do you know any tool in which if we input N,E then Lat,Long is returned by the tool? –  G.S.Tomar Jun 5 '12 at 12:43

Your Answer

 
discard

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.