Revision 359 org.gvsig.projection.jcrs/trunk/org.gvsig.projection.jcrs/org.gvsig.projection.jcrs.lib/src/main/java/org/gvsig/crs/CrsFactory.java

View differences:

CrsFactory.java
91 91

  
92 92
                if ( sourceParams.equals("") ) {
93 93
                    sourceParams = null;
94
                } else if ( targetParams.equals("1") ) { // Compativilidad con versiones de libJCrs sin soporte para transf. compuestas.
94
                } else if ( targetParams.equals("1") ) { // Compatibilidad con versiones de libJCrs sin soporte para transf. compuestas.
95 95
                    targetParams = sourceParams;
96 96
                    sourceParams = "";
97 97
                }
98
                if ( targetParams.equals("") || targetParams.equals("0") ) // Compativilidad con versiones de libJCrs sin soporte para transf. compuestas.
98
                if ( targetParams.equals("") || targetParams.equals("0") ) // Compatibilidad con versiones de libJCrs sin soporte para transf. compuestas.
99 99
                {
100 100
                    targetParams = null;
101 101
                }
......
122 122
            if( theTargetParams!=null ) {
123 123
                keyOfCache += theTargetParams;
124 124
            }
125
        } 
125
        }
126 126
        return keyOfCache;
127 127
    }
128
    
128

  
129 129
    private ICrs getSimpleCRS(String code) throws CrsException {
130 130

  
131 131
        String repoId = "";
......
178 178
                } else {
179 179
                    logger.debug("Found CRS '" + code + "' in repository '" +
180 180
                            (repo == null ? "unknow" : (repo.getClass().getSimpleName())) + "'.");
181
                }        
181
                }
182 182
                return crs;
183 183
        } finally {
184 184
            if( repo instanceof Disposable ) {
185 185
                ((Disposable)repo).dispose();
186 186
            }
187
        } 
187
        }
188 188
    }
189
  
190
    
189

  
190

  
191 191
    /**
192 192
     *
193 193
     * @param epsg_code
......
247 247
    public static void setProjLibFolder(File folder) {
248 248
        projLibFolder = folder;
249 249
    }
250
    
250

  
251 251
    public static void setEnableMemoryCacheOfCRS(boolean enableMemoryCache) {
252 252
        CrsFactory.enableMemoryCache = enableMemoryCache;
253 253
    }
......
255 255
    public static boolean isEnableMemoryCacheOfCRS() {
256 256
        return enableMemoryCache;
257 257
    }
258
    
258

  
259 259
    public static File getEpsgDatabaseFile() {
260 260
        if ( epsgDatabaseFile == null ) {
261 261
            epsgDatabaseFile = new File(getDataBaseFolder(), "EPSG.sql");

Also available in: Unified diff