Opened 12 years ago

Closed 12 years ago

#75 closed defect (fixed)

Fix for Krovak +czech default behaviour

Reported by: jachym Owned by: madair
Priority: major Milestone: 1.1.1
Component: core Version: trunk
Keywords: Cc:

Description

If I understand this well, the +czech parameter was not parsed (from EPSG definition).

There was difference between C implementation and JavaScript implementation of the Krovak file, regarding the +czech parameter:

In C:

...
        if( !pj_param(P -> params, "tczech").i )                                
          {
            xy.y *= -1.0;
            xy.x *= -1.0;
          }
...

In JavaScript

		if(this.czech) {
	    		p.y *= -1.0;
	    		p.x *= -1.0;
		}

The difference is, that in C, if +czech is not defined (default), values will be multiplied by -1. In JavaScript the same behaviour occured, when +czech is defined.

This patch makes 3 changes:

Tests are modified as well (they are working well, but don't forget to rebuild the compressed and uncompressed version of proj4js).

Attachments (1)

krovak-czech.patch (2.5 KB ) - added by jachym 12 years ago.

Download all attachments as: .zip

Change History (2)

by jachym, 12 years ago

Attachment: krovak-czech.patch added

comment:1 by madair, 12 years ago

Resolution: fixed
Status: newclosed

patch applied

Note: See TracTickets for help on using tickets.