Revision 33261 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLayers.java

View differences:

FLayers.java
62 62
import org.apache.log4j.Logger;
63 63
import org.cresques.cts.ICoordTrans;
64 64
import org.cresques.cts.IProjection;
65
import org.gvsig.tools.file.PathGenerator;
65 66

  
66 67
import com.hardcode.driverManager.Driver;
67 68
import com.hardcode.driverManager.DriverLoadException;
......
162 163
	//		setParentLayer(parent);
163 164
	//		this.fmap = fmap;
164 165
	//	}
165

  
166
	private static PathGenerator pathGenerator=PathGenerator.getInstance();
166 167
	/*
167 168
	 * (non-Javadoc)
168 169
	 * @see com.iver.cit.gvsig.fmap.layers.layerOperations.LayerCollection#addLayerCollectionListener(com.iver.cit.gvsig.fmap.layers.LayerCollectionListener)
......
1258 1259
					IProjection proj = null;
1259 1260
					if (xml.contains("proj")) {
1260 1261
						proj = CRSFactory.getCRS(xml.getStringProperty("proj"));
1261
					}
1262
					else
1263
					{
1262
					} else {
1264 1263
						proj = this.getMapContext().getViewPort().getProjection();
1265 1264
					}
1266 1265
					if (xml.contains("file")) {
......
1271 1270
							throw new DriverLayerException(name,e1);
1272 1271
						}
1273 1272
						layer = LayerFactory.createLayer(name, (VectorialFileDriver) d,
1274
								new File(xml.getStringProperty("file")),
1273
								new File(pathGenerator.getAbsolutePath((String)xml.getStringProperty("file"))),
1275 1274
								proj);
1276 1275

  
1277 1276

  
1277

  
1278 1278
					}
1279 1279
					if (xml.contains("db")) {
1280 1280

  

Also available in: Unified diff