Revision 1898 branches/FMap_SLD/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/DefaultFeature.java

View differences:

DefaultFeature.java
53 53
 * Window - Preferences - Java - Code Generation - Code and Comments
54 54
 */
55 55
public class DefaultFeature implements IFeature {
56
    IGeometry theGeom;
57
    Value[] attributes;
58
    
56
    private IGeometry theGeom;
57
    private Value[] attributes;
58
    private String id;
59
	
59 60
    public DefaultFeature(IGeometry geom, Value[] att)
60 61
    {
61 62
        this.theGeom = geom;
62 63
        this.attributes = att;
63 64
    }
64

  
65
	public DefaultFeature(IGeometry geom, Value[] att,String id) {
66
		this.theGeom = geom;
67
        this.attributes = att;
68
		this.id=id;
69
	}
65 70
    /* (non-Javadoc)
66 71
     * @see com.iver.cit.gvsig.fmap.core.IFeature#getGeometry()
67 72
     */
......
80 85
     * @see com.iver.cit.gvsig.fmap.core.IFeature#getID()
81 86
     */
82 87
    public String getID() {
83
        // TODO Auto-generated method stub
84
        return null;
88
        return id;
85 89
    }
86 90

  
87 91
}

Also available in: Unified diff