Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / org.gvsig.arcims / src / org / gvsig / remoteclient / arcims / utils / ArcImsFeature.java @ 32538

History | View | Annotate | Download (867 Bytes)

1
package org.gvsig.remoteclient.arcims.utils;
2

    
3
import java.util.HashMap;
4

    
5
import org.gvsig.fmap.geom.Geometry;
6

    
7
public class ArcImsFeature extends HashMap<String, Object> {
8

    
9
        private static final long serialVersionUID = 1L;
10

    
11
        /**
12
         * 
13
         */
14
        public ArcImsFeature() {
15
                this.put("geom", null);
16
        }
17
        
18
        /**
19
         * 
20
         * @param geom
21
         */
22
        public void putGeometry(Geometry geom){
23
                this.remove("geom");
24
                this.put("geom",geom);
25
        }
26
        
27
        /**
28
         * 
29
         * @param geom
30
         */
31
        public Geometry getGeometry(){
32
                
33
                return (Geometry)this.get("geom");
34
        }
35
        
36
        /**
37
         * 
38
         * @return
39
         */
40
        public boolean isValid(){
41
                Object obj = this.get("geom");
42
                if(obj == null){
43
                        return false;
44
                }
45
                else{
46
                        return true;
47
                }
48
        }
49
        
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
//        }
63

    
64
}