[Proj] Error to convert latlong to lambert2et

Yves Jacolin yjacolin at free.fr
Wed Jun 13 14:25:03 EDT 2007


Le Mercredi 13 Juin 2007 20:16, Yves Jacolin a écrit :
> Hi,
>
> Thanks steberi, you are right ! The complete proj command line is working.
>
> My 27572 code is different from your's (lon_0=0 and some other things). My
> proj version is :
> $ proj
> Rel. 4.5.0, 22 Oct 2006
>
> Regards,
>
> Y.
>
> Le Mercredi 13 Juin 2007 15:48, t steberi a écrit :
> > Hi,
> >
> > You can check you have this definition in your epsg file:
> > # NTF (Paris) / Lambert zone II
> > <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=2.33722917
> > +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515
> > +pm=paris +units=m +no_defs  no_defs <>
> >
> > You can also try the explicit command line
> > proj +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=2.33722917 +k_0=0.99987742
> > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +pm=paris +units=m
> > +no_defs -S -r test_file.txt The result (with proj4.5) should be
> > 594815.06       2424247.30
> >
> > Regards,
> > Thomas
> >
> > > De: Jacolin Yves <yjacolin at free.fr>
> > > A: proj at lists.maptools.org
> > > Objet: [Proj] Error to convert latlong to lambert2et
> > > Date: Tue, 12 Jun 2007 10:33:50 +0200
> > >
> > > Hi,
> > >
> > > I tried to used proj4 to convert WGS84 data to lambert 2 etendue
> > > (french projection, EPSG:27572). Actually, I used a php script that I
> > > wrote using an
> > > algorithme written in a pdf share by French IGN [1], which is correct.
> > >
> > > If I try proj4 using the following code:
> > > proj +init="epsg:27572" -S -r
> > > 48.816667 2.266667
> > > 766532.74       2426646.42
> > >
> > > The new data: (766532.74,2426646.42) is not correct. The first should
> > > be something like 594868, the second one seems correct.
> > >
> > > Where do I may wrong?
> > >
> > > Regards,
> > >
> > > Y.
> > >
> > > [1] <a
> > > href=http://www.ign.fr/telechargement/MPro/geodesie/CIRCE/NTG_71.pdf>ht
> > >tp
> > >
> > >:// www.ign.fr/telechargement/MPro/geodesie/CIRCE/NTG_71.pdf</a>--
> > >
> > > Yves Jacolin
> > > ---
> > > <a
> > > href=http://softlibre.gloobe.org>http://softlibre.gloobe.org</a>_______
> > >__ ___ ___________________________________
> > > Proj mailing list
> > > Proj at lists.maptools.org
> > > <a
> > > href=http://lists.maptools.org/mailman/listinfo/proj>http://lists.mapto
> > >ol s.o rg/mailman/listinfo/proj</a>

-- 
Yves Jacolin
-------------
http://yjacolin.gloobe.org
http://softlibre.gloobe.org



More information about the Proj mailing list