Revision 44655 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStore.java
DefaultFeatureStore.java | ||
---|---|---|
38 | 38 |
import java.util.Map; |
39 | 39 |
import java.util.Map.Entry; |
40 | 40 |
import java.util.Set; |
41 |
import javax.json.JsonObject; |
|
41 | 42 |
|
42 | 43 |
import org.apache.commons.io.FilenameUtils; |
43 | 44 |
import org.apache.commons.io.IOUtils; |
... | ... | |
2466 | 2467 |
} |
2467 | 2468 |
|
2468 | 2469 |
@Override |
2470 |
public EditableFeature createNewFeature(JsonObject defaultValues) throws DataException { |
|
2471 |
FeatureType ft = this.getDefaultFeatureType(); |
|
2472 |
EditableFeature f = this.createNewFeature(ft, false); |
|
2473 |
f.copyFrom(defaultValues); |
|
2474 |
return f; |
|
2475 |
} |
|
2476 |
|
|
2477 |
@Override |
|
2469 | 2478 |
public EditableFeatureType createFeatureType() { |
2470 | 2479 |
EditableFeatureType ftype = new DefaultEditableFeatureType(this); |
2471 | 2480 |
return ftype; |
Also available in: Unified diff