Revision 9957

View differences:

trunk/libraries/libCq CMS for java.old/src/org/cresques/cts/gt2/CoordSys.java
57 57
        this.datum = datum;
58 58
        this.geogCS = new GeographicCoordinateSystem(datum.getName(null), datum.getDatum());
59 59
	}
60
    
60

  
61 61
    public CoordSys(String wkt) {
62 62
    	try {
63
        	//((GeographicCoordinateSystem) 
63
        	//((GeographicCoordinateSystem)
64 64
    		CoordinateSystem cs = CoordinateSystemFactory.getDefault().createFromWKT(wkt);
65 65
//			 ).getHorizontalDatum();
66 66
    		if (cs instanceof GeographicCoordinateSystem)
......
155 155
     * @see org.cresques.cts.IProjection#toGeo(java.awt.geom.Point2D)
156 156
     */
157 157
    public Point2D toGeo(Point2D pt) {
158
        if (getGeogCS() == geogCS) {
159
            return pt;
160
        } else {
158
    //TODO VCN Esto si no lo comento no me trasforma el punto en coordenadas geogr?ficas.
159
//        if (getGeogCS() == geogCS) {
160
//            return pt;
161
//        } else {
161 162
            CoordTrans ct = new CoordTrans(this, toGeo());
162 163

  
163 164
            return ct.convert(pt, null);
164
        }
165
//        }
165 166
    }
166 167

  
167 168
    /* (no Javadoc)

Also available in: Unified diff