Revision 42814 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.shp/src/main/java/org/gvsig/fmap/dal/store/shp/SHPStoreProvider.java
SHPStoreProvider.java | ||
---|---|---|
140 | 140 |
|
141 | 141 |
resource.frozen(); |
142 | 142 |
resource.addMultiResourceConsumer(this); |
143 |
super.initResource(resource, storeServices); |
|
143 | 144 |
} |
144 | 145 |
|
145 | 146 |
; |
... | ... | |
274 | 275 |
} |
275 | 276 |
|
276 | 277 |
public String getProviderName() { |
277 |
return NAME;
|
|
278 |
return NAME; |
|
278 | 279 |
} |
279 | 280 |
|
280 | 281 |
public boolean allowWrite() { |
281 |
return this.shpFile.isEditable(); |
|
282 |
return this.shpFile.isEditable() && |
|
283 |
super.allowWrite() && |
|
284 |
!this.getShpParameters().getLoadCorruptGeometriesAsNull() && |
|
285 |
!this.getShpParameters().getAllowInconsistenciesInGeometryType() && |
|
286 |
!this.getShpParameters().getFixLinearRings(); |
|
282 | 287 |
} |
283 | 288 |
|
284 | 289 |
/** |
... | ... | |
350 | 355 |
} |
351 | 356 |
|
352 | 357 |
} |
353 |
|
|
358 |
|
|
354 | 359 |
public class ReadGeometryException extends ReadException { |
355 | 360 |
|
356 |
private final static String MESSAGE_FORMAT = "There was errors loading a geometry from '%(store)'.\nCheck 'Load corrupt geometries as null' in the shape's properties of the add layer dialog to skip corrupt geometries."; |
|
361 |
private final static String MESSAGE_FORMAT = "There was errors loading a geometry from '%(store)'.\nCheck 'Load corrupt geometries as null' in the shape's properties of the add layer dialog to skip corrupt geometries. The layer will become read only.";
|
|
357 | 362 |
private final static String MESSAGE_KEY = "_ReadGeometryException"; |
358 | 363 |
private static final long serialVersionUID = 2626155328734197112L; |
359 | 364 |
|
Also available in: Unified diff