Revision 11639

View differences:

branches/F2/libraries/libJCRS/src/org/gvsig/crs/CrsFactory.java
74 74
	 */
75 75
	public ICrs getCRS(String code) throws CrsException {
76 76
		
77
		if (data.containsKey(code))
78
			return (ICrs) data.get(code);
77
		/*if (data.containsKey(code))
78
			return (ICrs) data.get(code);*/
79 79

  
80 80
		String repoId = code.substring(0, code.indexOf(":"));
81 81
		String crsCode = code.substring(code.indexOf(":")+1);
......
111 111
		
112 112
		// LWS Esta l?nea sobra, cuando el cuadro de di?logo est?
113 113
		// mejor hecho.
114
		code = crs.getAbrev();
114
		/*code = crs.getAbrev();
115 115
		
116
		data.put(code, crs);
116
		data.put(code, crs);*/
117 117

  
118 118
		return crs;
119 119
		
......
139 139
	 * @throws CrsException
140 140
	 */
141 141
	public ICrs getCRS(int epsg_code, String code) throws CrsException {
142
		if (data.containsKey(code))
143
			return (Crs) data.get(code);
142
		/*if (data.containsKey(code))
143
			return (Crs) data.get(code);*/
144 144

  
145 145
		Crs crs = new Crs(epsg_code, code);
146 146
		
147 147
		// LWS Esta l?nea sobra, cuando el cuadro de di?logo est?
148 148
		// mejor hecho.
149
		code = crs.getAbrev();
149
		/*code = crs.getAbrev();
150 150
		
151
		data.put(code, crs);
151
		data.put(code, crs);*/
152 152

  
153
		return crs;		
153
		return crs;
154 154
	}
155 155
	
156 156
	/**
......
162 162
	 * @throws CrsException
163 163
	 */
164 164
	public ICrs getCRS(int epsg_code, String code, String params) throws CrsException {
165
		if (data.containsKey(code))
166
			return (Crs) data.get(code);
165
		/*if (data.containsKey(code))
166
			return (Crs) data.get(code);*/
167 167
		
168 168
		Crs crs = new Crs(epsg_code, code,params);
169 169
		
170 170
		// LWS Esta l?nea sobra, cuando el cuadro de di?logo est?
171 171
		// mejor hecho.
172
		code = crs.getAbrev();
172
		/*code = crs.getAbrev();
173 173
		
174
		data.put(code, crs);
174
		data.put(code, crs);*/
175 175

  
176 176
		return crs;
177 177
	}

Also available in: Unified diff