[MetaCRS] [Proj4js] geocent proj issue.

Clément Ronzon clem.rz at gmail.com
Wed Sep 8 06:54:36 EDT 2010


Hi everyone!

I'm new on this mailing list, so I'll introduce myself in a few words: my
name is Clément Ronzon, I'm living in France but I'm going to move to Mexico
in a few months, I'm working in Informatics design and development for
France Telecom, and I'm the developer of TWCC (http://twcc.free.fr).

I have a question about geocent projections.
I have the following definition :
*Proj4js.defs["IGNF:AMST63"] = "+title=Ile d'Amsterdam 1963
+proj=geocent+towgs84=109.7530,-528.1330,-362.2440 +a=6378388.0000
+rf=297.0000000000000
+units=m +no_defs";*

But when proj4js tries to load the geocent proj file it fails because there
is no geocent.js file. Actually I found that this file has been removed (
http://trac.osgeo.org/proj4js/ticket/16).

So I tried to create /lib/projCode/geocent.js with this content:
*Proj4js.Proj.geocent = {
    GEOCENT_LAT_ERROR:0x0001,
  init: function() {
    //no-op
  },
  forward: function(pt) {
    //identity transform
    return pt;
  },
  inverse: function(pt) {
    //identity transform
    return pt;
  }
};*

But it seems that the result of transformations is wrong (some meters on X
and Y).
Could someone tell me how can I solve this issue please ?

Thanks in advance! And, by the way, congratulations for those metaCRS
projects!!!
Clément Ronzon
151 Av. Félix Faure
69003 LYON, FRANCE
Tel. # : +33 (0)9 54 43 12 20
Fax # : +33 (0)9 59 43 12 20
Cell. # : +33 (0)6 08 21 23 27
http://twcc.free.fr
http://www.grottocenter.org
http://www.zakbag.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/metacrs/attachments/20100908/04da8e5c/attachment.html


More information about the MetaCRS mailing list