Revision 8783 branches/v10+Piloto/libraries/libCq_CMS_praster/src/org/cresques/geo/cover/Coverage.java

View differences:

Coverage.java
172 172
                    prj = (Projection) Projection.getProjectionByName(proj.getDatum(),
173 173
                                                                      files[i][2]);
174 174
                } else if (proj instanceof CoordSys) {
175
                    prj = ProjectionPool.get(files[i][2]);
175
                    prj = new ProjectionPool().get(files[i][2]);
176 176
                }
177 177
            }
178 178

  
......
248 248
            layer1 = minuteo[1];
249 249
        }
250 250

  
251
        Enumeration enum = hojas.keys();
251
        Enumeration enumeration = hojas.keys();
252 252
        String hName;
253 253
        String hCode;
254 254
        Hoja h;
255 255
        Object obj = null;
256 256

  
257
        while (enum.hasMoreElements()) {
258
            hName = (String) enum.nextElement();
257
        while (enumeration.hasMoreElements()) {
258
            hName = (String) enumeration.nextElement();
259 259

  
260 260
            try {
261 261
                obj = hojas.get(hName);
......
326 326
        layer.setColor(color);
327 327
        layer.setFillColor(fillColor);
328 328

  
329
        Enumeration enum = hojas.keys();
329
        Enumeration enumeration = hojas.keys();
330 330
        String hName;
331 331
        String hCode;
332 332
        Hoja h;
333 333
        Object obj = null;
334 334

  
335
        while (enum.hasMoreElements()) {
336
            hName = (String) enum.nextElement();
335
        while (enumeration.hasMoreElements()) {
336
            hName = (String) enumeration.nextElement();
337 337
            obj = hojas.get(hName);
338 338

  
339 339
            if (obj.getClass() == String.class) {

Also available in: Unified diff