Revision 38769 branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/shp/SHPStoreProvider.java

View differences:

SHPStoreProvider.java
72 72
import org.gvsig.fmap.geom.exception.CreateEnvelopeException;
73 73
import org.gvsig.fmap.geom.exception.CreateGeometryException;
74 74
import org.gvsig.fmap.geom.primitive.Envelope;
75
import org.gvsig.fmap.mapcontext.MapContextLocator;
76
import org.gvsig.fmap.mapcontext.MapContextManager;
75 77
import org.gvsig.tools.dispose.DisposableIterator;
76 78
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
77 79
import org.gvsig.tools.exception.BaseException;
......
263 265
							addGeometryColumn(fType);
264 266
					attr.setGeometryType(shpFile.getGeometryType());
265 267
					attr.setGeometrySubType(shpFile.getGeometrySubType());
266
					// String srs =
267
					// this.getSRSFromPrj(this.shpFile.getSRSParameters());
268
					// if (srs == null){
269
					// // TODO petar ??
270
					// srs = "EPSG:23030";
271
					// }
268

  
272 269
					IProjection srs = getShpParameters().getCRS();
273 270
					if (srs == null) {
274
						srs = CRSFactory.getCRS("EPSG:23030");
271
					    MapContextManager mcm = MapContextLocator.getMapContextManager();
272
						srs = mcm.getDefaultCRS();
275 273
					}
276 274

  
277 275
					attr.setSRS(srs);

Also available in: Unified diff