Revision 5040

View differences:

branches/v061/libraries/libCq CMS for java.old/src/org/cresques/cts/gt2/CoordSys.java
77 77
    }
78 78

  
79 79
    public CoordinateSystem getCS() {
80
        if (isProjected()) {
80
        if (projCS != null) {
81 81
            return projCS;
82 82
        }
83 83

  
......
100 100
    }
101 101

  
102 102
    public String toString() {
103
        return getCS().toString();
103
        if (projCS != null) {
104
            return projCS.toString();
105
        }
106

  
107
        return geogCS.toString();
104 108
    }
105 109

  
106 110
    public void setAbrev(String abrev) {

Also available in: Unified diff