Revision 41295
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.daltransform.app/org.gvsig.daltransform.app.eventtheme/src/main/java/org/gvsig/app/eventtheme/dal/feature/EventThemeTransform.java | ||
---|---|---|
48 | 48 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
49 | 49 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
50 | 50 |
import org.gvsig.fmap.dal.feature.FeatureType; |
51 |
import org.gvsig.fmap.dal.feature.exception.SetReadOnlyAttributeException; |
|
51 | 52 |
import org.gvsig.fmap.geom.Geometry; |
52 | 53 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
53 | 54 |
import org.gvsig.fmap.geom.Geometry.TYPES; |
... | ... | |
252 | 253 |
try { |
253 | 254 |
|
254 | 255 |
Geometry point = null; |
255 |
if( target.getType().getAttributeDescriptor(geometryFieldName).isReadOnly() ) { |
|
256 |
return; |
|
257 |
} |
|
258 | 256 |
Object xval = source.get(xFieldName); |
259 | 257 |
Object yval = source.get(yFieldName); |
260 | 258 |
if (xval == null || yval == null) { |
... | ... | |
271 | 269 |
target.setDefaultGeometry(point); |
272 | 270 |
envelope.add(point.getEnvelope()); |
273 | 271 |
} |
272 |
} catch ( SetReadOnlyAttributeException e1) { |
|
273 |
// Do nothing |
|
274 | 274 |
|
275 | 275 |
} catch (Exception e) { |
276 | 276 |
throw new org.gvsig.fmap.dal.feature.exception.CreateGeometryException( |
Also available in: Unified diff