Revision 32553
branches/v2_0_0_prep/libraries/org.gvsig.arcims/src/org/gvsig/remoteclient/arcims/utils/ArcImsFeature.java | ||
---|---|---|
7 | 7 |
public class ArcImsFeature extends HashMap<String, Object> { |
8 | 8 |
|
9 | 9 |
private static final long serialVersionUID = 1L; |
10 |
private String fieldPK = ""; |
|
10 | 11 |
|
11 | 12 |
/** |
12 | 13 |
* |
... | ... | |
47 | 48 |
} |
48 | 49 |
} |
49 | 50 |
|
50 |
// /** |
|
51 |
// * |
|
52 |
// * @return |
|
53 |
// */ |
|
54 |
// public int getGeometryType(){ |
|
55 |
// Geometry geom = this.get("geom"); |
|
56 |
// if(geom != null){ |
|
57 |
// |
|
58 |
// }else{ |
|
59 |
// return |
|
60 |
// } |
|
61 |
// |
|
62 |
// } |
|
51 |
/** |
|
52 |
* |
|
53 |
* @param name |
|
54 |
*/ |
|
55 |
public void setFieldPK(String name){ |
|
56 |
this.fieldPK = name; |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* |
|
61 |
* @return |
|
62 |
*/ |
|
63 |
public String getFieldPK(){ |
|
64 |
return this.fieldPK; |
|
65 |
} |
|
63 | 66 |
|
64 | 67 |
} |
branches/v2_0_0_prep/libraries/org.gvsig.arcims/src/org/gvsig/remoteclient/arcims/ArcImsProtFeatureHandler.java | ||
---|---|---|
237 | 237 |
KXmlParser kxmlParser = new KXmlParser(); |
238 | 238 |
|
239 | 239 |
Geometry geom = null; |
240 |
Object[] values = new Object[fieldsInfoA.size()]; |
|
240 |
//Object[] values = new Object[fieldsInfoA.size()];
|
|
241 | 241 |
// Value[] values = new Value[fieldsInfoA.size()]; |
242 | 242 |
int[] position = new int[fieldsInfoA.size()]; |
243 | 243 |
|
... | ... | |
516 | 516 |
// Add the Value into the correct position |
517 | 517 |
if (text == null) { |
518 | 518 |
String fieldName = fieldsInfoA.get(position[f]).getName(); |
519 |
afeat.put(fieldName,null); |
|
519 |
afeat.put(fieldName,null);
|
|
520 | 520 |
} else { |
521 | 521 |
String fieldName = fieldsInfoA.get(position[f]).getName(); |
522 | 522 |
switch (type) { |
... | ... | |
552 | 552 |
f++; |
553 | 553 |
break; |
554 | 554 |
case FieldInformation.ID: |
555 |
afeat.put(fieldName, new String(text)); |
|
556 |
afeat.setFieldPK(fieldName); |
|
557 |
f++; |
|
558 |
break; |
|
555 | 559 |
case FieldInformation.INTEGER: |
556 | 560 |
afeat.put(fieldName, new Integer(text)); |
557 | 561 |
f++; |
Also available in: Unified diff