Revision 87 org.gvsig.dgn/trunk/org.gvsig.dgn/org.gvsig.dgn.provider/src/main/java/org/gvsig/fmap/dal/store/dgn/DGNStoreProvider.java

View differences:

DGNStoreProvider.java
248 248
        }
249 249
    }
250 250

  
251
    public boolean isActiveOption(String option) {
252
        if (option == null) {
253
            return false;
254
        }
255
        String options = getDGNParameters().getDebugOptions();
256
        if (options == null) {
257
            return false;
258
        }
259
        option = " " + option.toLowerCase() + " ";
260
        options = "  " + options.toLowerCase() + " ";
261
        return options.contains(option);
262
    }
263

  
264 251
    public void open() throws OpenException {
265 252
        if (this.data != null) {
266 253
            return;
......
270 257
                public Object run() throws Exception {
271 258
                    FeatureStoreProviderServices store = getStoreServices();
272 259
                    if (dgndata == null
273
                            && !(getDGNParameters().useReload() || isActiveOption("reload"))) {
260
                            && !(getDGNParameters().useReload() )) {
274 261
                        if (resource.getData() != null) {
275 262
                            dgndata = (DGNData) ((Map) resource.getData()).get(projection.getAbrev()); // OJO
276 263
                            // no es del todo correcto (puede llevar reproyeccion)

Also available in: Unified diff