<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<STYLE type=text/css>p { margin: 0; }</STYLE>

<META content="MSHTML 6.00.6000.17063" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText96857>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello, Michel:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>I think there's some confusion about the meaning of the EPSG codes. According to spatialref.org, the PRJ file for EPSG:27561 is this:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><A href="http://spatialreference.org/ref/epsg/27561/prj/">http://spatialreference.org/ref/epsg/27561/prj/</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>But that file is not like the one that comes with your shapefile.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>gvSIG is probably using the definition found in the spatialref.org website, so that's why your shapefiles do not match if you select EPSG:27561 when adding that file to your view.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>According to spatialref.org, the CRS that matches your PRJ file is 'NTF Lambert Zone 1 France 2SP' (code SR-ORG:6910):</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><A href="http://spatialreference.org/ref/sr-org/6910/prj/">http://spatialreference.org/ref/sr-org/6910/prj/</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>So all you have to do is declare it as a user-defined CRS in gvSIG.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>This has worked for me (I'll refer to your files as montreuil_2154.shp and montreuil_27561.shp):</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- from the project manager, click 'New' to create a new view. Select it (without opening it) and click on 'Properties'</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- clic on the [...] button to change the view's CRS</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- choose 'Type: user CRS' and click on 'New'</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- choose the 'From WKT' option and paste this paragraph in the text box:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378249.2,293.4660200000053],TOWGS84[-168,-60,320,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",48.5985227778],PARAMETER["standard_parallel_2",50.3959116667],PARAMETER["latitude_of_origin",49.5],PARAMETER["central_meridian",2.3372291667],PARAMETER["false_easting",600000],PARAMETER["false_northing",200000],UNIT["Meter",1],AUTHORITY["EPSG","12345"]]</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- click on 'Finalize' and 'Accept'. You'll see that gvSIG refers to the new CRS as 'USR:1' or similar.</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- click 'Accept' again and open the view</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- add the file montreuil_27561.shp without any additional option because we know it's the same CRS of the view.</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- go to the 'Add file' option again, choose the file montreuil_2154.shp and before clicking on 'Accept', click on the button to indicate the CRS of the file that is being added. Search for EPSG:2154 (this one has no problem, you can use it) and select it, then you need to choose the 'Manual transformation' option in the transformation combo box. The seven parameters are:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>168</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>60</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>-320</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>0</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>0</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>0</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>- click 'Accept' on all the following dialogs, and both shapefiles should match. There is a small error of about 1.5 m, but I don't think that's a problem for you.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Does this process work for you?</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>The CRS you have defined should be available from now on, but you will have to type the seven parameters each time from the 'Manual transformation' option.</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Those seven parameters are valid if the view is in 'NTF Lambert Zone 1 France 2SP'. If the view is in EPSG:2154 and you add a shapefile in 'NTF Lambert Zone 1 France 2SP', you'll have to reverse the sign of the parameters.</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>If you don't want to deal with user CRS and parameters inside gvSIG, you can reproject your shapefiles before starting gvSIG. There is a nice free program that does that:</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><A href="http://fwtools.maptools.org">http://fwtools.maptools.org</A></FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>The command would be something like:</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>ogr2ogr -f "ESRI Shapefile" -s_srs epsg:2154 -t_srs epsg:27561 new_file.shp old_file_2154.shp</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>(but again, we should check the meaning of EPSG:27561 in that case)</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Regards,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV>
<DIV id=idSignature27059>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_internacional-bounces@listserv.gva.es en nombre de Bouillot Michel<BR><B>Enviado el:</B> jue 15/07/2010 14:22<BR><B>Para:</B> Users and Developers mailing list<BR><B>Asunto:</B> Re: [Gvsig_english] trouble with EPSG 2154 and 27561<BR></FONT><BR></DIV>
<DIV>
<DIV style="FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: Arial">Hello,<BR><BR>I think that you are right.<BR><BR>I join shapefiles in both EPSG.<BR><BR>Thanks for the tests.<BR><BR>Regards,<BR><BR>Michel Bouillot<BR><BR>----- Mail Original -----<BR>De: "Juan Lucas Dominguez Rubio" &lt;jldominguez@prodevelop.es&gt;<BR>À: "Users and Developers mailing list" &lt;gvsig_internacional@listserv.gva.es&gt;, "Users and Developers mailing list" &lt;gvsig_internacional@listserv.gva.es&gt;<BR>Envoyé: Jeudi 15 Juillet 2010 13:29:45<BR>Objet: Re: [Gvsig_english] trouble with EPSG 2154 and 27561<BR><BR>
<STYLE>p { margin: 0; }</STYLE>

<DIV id=idOWAReplyText48021>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello, I think there's a misunderstood.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>gvSIG is able to do on-the-fly reprojection (this is what Michel needs, I think).</DIV>
<DIV>&nbsp;</DIV>
<DIV>But I'm afraid that, even if he follows the right steps to do it, the result will be wrong because (I think) gvSIG does not know the right parameters to perform that conversion (between EPSG:2154 and EPSG:27561).</DIV>
<DIV>&nbsp;</DIV>
<DIV>There have been problems with the French projections in the past, and I'm not sure if they were caused by a bug in gvSIG or in the libraries used by gvSIG (especially Proj4).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Michel: can you please send to the list two little shapefiles (one in EPSG:2154 and the other in EPSG:27561) that should match but do not match in gvSIG? So we can also do some tests.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV></DIV>
<DIV id=idSignature43969>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></FONT></FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></FONT></FONT></DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2></FONT></FONT></DIV><FONT face="Courier New" size=2></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_internacional-bounces@listserv.gva.es en nombre de Bouillot Michel<BR><B>Enviado el:</B> jue 15/07/2010 13:02<BR><B>Para:</B> Users and Developers mailing list<BR><B>Asunto:</B> Re: [Gvsig_english] trouble with EPSG 2154 and 27561<BR></FONT><BR></DIV>
<DIV>
<DIV style="FONT-SIZE: 12pt; COLOR: rgb(0,0,0); FONT-FAMILY: Arial">Hi,<BR><BR>Thanks for this explanation.<BR><BR>I find GVSIG very good but in France we have just changed of RS. We begin to have data in the 2 RS. <BR>The reprojection in the view would be very pactical !<BR>Is there a hope for a such function in the futur ?<BR><BR>Regards<BR><BR>Michel Bouillot<BR><BR><BR>----- Mail Original -----<BR>De: "Guillermo Tamburini" &lt;tamburini_gui@gva.es&gt;<BR>À: "Users and Developers mailing list" &lt;gvsig_internacional@listserv.gva.es&gt;<BR>Envoyé: Jeudi 15 Juillet 2010 12:43:50<BR>Objet: Re: [Gvsig_english] trouble with EPSG 2154 and 27561<BR><BR>Hi,<BR><BR>In fact, you can't correctly represent data in different reference systems in the same View (without reporojecting, it have no sense).<BR><BR>There are some software applications which applies&nbsp; automatically the reprojection, but it is not the case in gvSIG with vector layers.<BR><BR>First of all, you have to select the correct RS for your View, and then load the data (the target RS you are going to work). <BR><BR>Otherwise, you will see your data but in a incorrect situation. In other utm spindle, or displaced...<BR><BR>If your data is in different RS, you will have to reproject it. Goprocessing tools-&gt;Data Conversion-&gt;Reproject; the layer in the not current projection to the current projection.<BR><BR>Regards<BR><BR><BR>Bouillot Michel wrote: 
<BLOCKQUOTE>
<STYLE>p { margin: 0; }</STYLE>

<DIV style="FONT-SIZE: 12pt; COLOR: rgb(0,0,0); FONT-FAMILY: Arial">
<STYLE>p { margin: 0; }</STYLE>

<DIV style="FONT-SIZE: 12pt; COLOR: rgb(0,0,0); FONT-FAMILY: Arial">
<STYLE>p { margin: 0; }</STYLE>

<DIV style="FONT-SIZE: 12pt; COLOR: rgb(0,0,0); FONT-FAMILY: Arial">Hello,<BR><BR>I try to open in the same view one shp in EPSG 2154 and one SHP in EPSG 27561 but it don't match correctly. There is a problem with the X like a translation witch have a value who seems to be the difference between Greenwich and Paris meridian.<BR><BR>How to correct this trouble ?<BR><BR>regards<BR><BR></DIV><SPAN id=e30d145b-dd99-4ef5-90f4-f6e11296c9ff><STRONG>Michel Bouillot</STRONG><BR>Chef de projet SIG<BR>01 48 70 63 23 / <A class=moz-txt-link-abbreviated href="mailto:michel.bouillot@montreuil.fr">michel.bouillot@montreuil.fr</A><BR>Ville de Montreuil / Direction Urbanisme et Habitat<BR>Service Études Développement Urbain<BR>3, rue de Rosny / 93100 Montreuil<BR><BR></SPAN></DIV></DIV><PRE><HR size=4>
_______________________________________________
Gvsig_internacional mailing list
<A class=moz-txt-link-abbreviated href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</A>
<A class=moz-txt-link-freetext href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</A>
  </PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature>-- 
Guillermo Tamburini Beliveau
Proyecto gvSIG 
Consellería de Infraestructuras y Transportes (GVA) 
Valencia (Spain) 
 
</PRE><BR>_______________________________________________<BR>Gvsig_internacional mailing list<BR>Gvsig_internacional@listserv.gva.es<BR>http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional<BR></DIV></DIV><BR>_______________________________________________<BR>Gvsig_internacional mailing list<BR>Gvsig_internacional@listserv.gva.es<BR>http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional<BR></DIV></DIV></BODY></HTML>