[Gvsig_english] new jCRS, slovak coordinate system wrong implementation again

DAVID HERNANDEZ LOPEZ David.Hernandez at uclm.es
Tue Jul 10 17:57:26 CEST 2007


Dear Ivan.
The new realease of CRS vill use the latest version of PROJ4, 4.5.0.
Indeed the reason to analyze this subject was your previous message.
With this we hoped is solved your problem.
Thanks for your collaboration 

David.

-----Mensaje original-----
De: gvsig_internacional-bounces at runas.cap.gva.es en nombre de ivan mincík
Enviado el: mar 10/07/2007 16:24
Para: Users and Developers mailing list
Asunto: [Gvsig_english] new jCRS,slovak coordinate system wrong implementation again
 
Halo.
I am very glad to hear about the new release of CRS. I already posted 
message about the wrong implementation of Czech and Slovak coordinate 
system some time ago, but with no answer. (whole original e-mail is 
above). Is it possible to fix it to next release?

this is the whole message

I would like to also draw attention to one very important bug in the
point of view of Slovak and Czech users in old versions of proj library
(used currently in gvSIG) which was for years held in the source code.
This bug was finnaly fixed after the serious effort of some czech guys
last year in 4.5.0 version. (I can explain workaround in another mail if
You wish...)

As Krovak projection is basic projection in former czechoslovakia the
older versions of proj than 4.5.0 is unusable for us without patching
the source. gvSIG is using proj from year 2002. 

We need only simple change in X and Y axis to -1, so it can be simple to
fix it in new version of CRS.


diff from current version of PJ_krovak.c used in gvSIG to new version is
only this 




2c2
<  * $Id: PJ_krovak.c,v 1.6 2006/09/14 13:10:50 fwarmerdam Exp $
---

> >  * $Id: PJ_krovak.c,v 1.4 2002/12/15 22:31:04 warmerda Exp $
>   
33,38d32
<  * Revision 1.6  2006/09/14 13:10:50  fwarmerdam
<  * Add +czech flag to control reversal of signs (bug 1133,147)
<  *
<  * Revision 1.5  2006/03/30 01:22:48  fwarmerdam
<  * Removed win32 only debug hack.
<  *
58c52
< PJ_CVSID("$Id: PJ_krovak.c,v 1.6 2006/09/14 13:10:50 fwarmerdam Exp
$");
---

> > PJ_CVSID("$Id: PJ_krovak.c,v 1.4 2002/12/15 22:31:04 warmerda Exp $");
>   
145,149c139,151
<         if( !pj_param(P -> params, "tczech").i )
<         {
<           xy.y *= -1.0;
<           xy.x *= -1.0;
<         }
---

> > #ifdef DEBUG
> >       strcpy(errmess,"a: ");
> >       strcpy(tmp,"        ");
> >       ltoa((long)(a*1000000000),tmp,10);
> >       strcat(errmess,tmp);
> >       strcat(errmess,"e2: ");
> >       strcpy(tmp,"        ");
> >       ltoa((long)(e2*1000000000),tmp,10);
> >       strcat(errmess,tmp);
> >
> >       MessageBox(NULL, errmess, NULL, 0);
> > #endif
> >
>   
200,205d201
<         if( !pj_param(P -> params, "tczech").i )
<         {
<           xy.x *= -1.0;
<           xy.y *= -1.0;
<         }
<





Thanks 
Ivan

_______________________________________________
Gvsig_internacional mailing list
Gvsig_internacional at runas.cap.gva.es
http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4357 bytes
Desc: not available
Url : http://runas.cap.gva.es/pipermail/gvsig_internacional/attachments/20070710/d02477b5/attachment.bin


More information about the Gvsig_internacional mailing list