Revision 31024
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/DefaultFeature.java | ||
---|---|---|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
public IRow cloneRow() { |
77 |
IGeometry geom=theGeom.cloneGeometry(); |
|
77 |
IGeometry geom= null; |
|
78 |
if (theGeom!=null) |
|
79 |
geom=theGeom.cloneGeometry(); |
|
78 | 80 |
Value[] attri=null; |
79 | 81 |
if (getAttributes()!=null) |
80 | 82 |
attri=(Value[])getAttributes().clone(); |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/VectorialEditableAdapter.java | ||
---|---|---|
413 | 413 |
int num = ((Integer) relations.get(integer)).intValue(); |
414 | 414 |
DefaultRowEdited feat; |
415 | 415 |
feat = (DefaultRowEdited) expansionFile.getRow(num); |
416 |
return ((IFeature) feat.getLinkedRow()).getGeometry() |
|
417 |
.cloneGeometry();// getGeometry(); |
|
416 |
IGeometry geom=((IFeature) feat.getLinkedRow()).getGeometry(); |
|
417 |
if (geom!=null) |
|
418 |
return geom.cloneGeometry(); |
|
419 |
return geom; |
|
418 | 420 |
} |
419 | 421 |
|
420 | 422 |
/* |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/SelectableDataSource.java | ||
---|---|---|
106 | 106 |
*/ |
107 | 107 |
public void mapExternalFields() throws ReadDriverException { |
108 | 108 |
int numExternalFields = 0; |
109 |
this.dataSource.start(); |
|
109 |
// this.dataSource.start();
|
|
110 | 110 |
int fieldCount=dataSource.getFieldCount(); |
111 | 111 |
for (int i=0; i < fieldCount; i++) |
112 | 112 |
{ |
... | ... | |
123 | 123 |
mapping[j++] = i; |
124 | 124 |
|
125 | 125 |
} |
126 |
this.dataSource.stop(); |
|
126 |
// this.dataSource.stop();
|
|
127 | 127 |
} |
128 | 128 |
|
129 | 129 |
public static SelectableDataSource createSelectableDataSource(XMLEntity xml) throws DriverLoadException, XMLException{ |
Also available in: Unified diff