Revision 46875 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 | ||
---|---|---|
139 | 139 |
return super.getDynValue(name); |
140 | 140 |
} |
141 | 141 |
|
142 |
@Override |
|
143 |
public boolean hasDynValue(String name) throws DynFieldNotFoundException { |
|
144 |
if (DataStore.METADATA_CRS.equalsIgnoreCase(name)) { |
|
145 |
|
|
146 |
return this.getShpParameters().getCRS() != null; |
|
147 |
|
|
148 |
} else if (DataStore.METADATA_ENVELOPE.equalsIgnoreCase(name)) { |
|
149 |
try { |
|
150 |
return this.shpFile.getFullExtent() != null; |
|
151 |
} catch (ReadException e) { |
|
152 |
return false; |
|
153 |
} |
|
154 |
} |
|
155 |
return super.hasDynValue(name); |
|
156 |
} |
|
157 |
|
|
142 | 158 |
protected void initResource(DBFStoreParameters params, DataStoreProviderServices storeServices) |
143 | 159 |
throws InitializeException { |
144 | 160 |
|
Also available in: Unified diff