Statistics
| Revision:

svn-gvsig-desktop / tags / v1_0_2_Build_908 / libraries / libRemoteServices / src / org / gvsig / remoteClient / wfs / WFSFeature.java @ 11054

History | View | Annotate | Download (4.08 KB)

1 4887 jorpiell
package org.gvsig.remoteClient.wfs;
2 4912 jorpiell
3 5368 jorpiell
import java.util.ArrayList;
4 4912 jorpiell
import java.util.Hashtable;
5
import java.util.Vector;
6
7 5368 jorpiell
import org.gvsig.remoteClient.utils.BoundaryBox;
8 5862 jorpiell
import org.gvsig.remoteClient.utils.CapabilitiesTags;
9 5368 jorpiell
import org.gvsig.remoteClient.wcs.WCSCoverage.RectifiedGrid;
10
11 4887 jorpiell
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
12
 *
13
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
14
 *
15
 * This program is free software; you can redistribute it and/or
16
 * modify it under the terms of the GNU General Public License
17
 * as published by the Free Software Foundation; either version 2
18
 * of the License, or (at your option) any later version.
19
 *
20
 * This program is distributed in the hope that it will be useful,
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 * GNU General Public License for more details.
24
 *
25
 * You should have received a copy of the GNU General Public License
26
 * along with this program; if not, write to the Free Software
27
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
28
 *
29
 * For more information, contact:
30
 *
31
 *  Generalitat Valenciana
32
 *   Conselleria d'Infraestructures i Transport
33
 *   Av. Blasco Ib??ez, 50
34
 *   46010 VALENCIA
35
 *   SPAIN
36
 *
37
 *      +34 963862235
38
 *   gvsig@gva.es
39
 *      www.gvsig.gva.es
40
 *
41
 *    or
42
 *
43
 *   IVER T.I. S.A
44
 *   Salamanca 50
45
 *   46005 Valencia
46
 *   Spain
47
 *
48
 *   +34 963163400
49
 *   dac@iver.es
50
 */
51
/* CVS MESSAGES:
52
 *
53
 * $Id$
54
 * $Log$
55 5862 jorpiell
 * Revision 1.5  2006-06-15 09:05:06  jorpiell
56
 * Actualizados los WFS
57
 *
58
 * Revision 1.4  2006/05/23 13:23:22  jorpiell
59 5368 jorpiell
 * Se ha cambiado el final del bucle de parseado y se tiene en cuenta el online resource
60 5132 jaume
 *
61
 * Revision 1.2  2006/04/20 16:39:16  jorpiell
62 4912 jorpiell
 * A?adida la operacion de describeFeatureType y el parser correspondiente.
63
 *
64
 * Revision 1.1  2006/04/19 12:51:35  jorpiell
65 4887 jorpiell
 * A?adidas algunas de las clases del servicio WFS
66
 *
67
 *
68
 */
69
/**
70
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
71
 */
72
public class WFSFeature {
73 4912 jorpiell
         private String        name = null;
74
         private String        title = null;
75
         private String        _abstract = null;
76 5862 jorpiell
         private Vector srs = new Vector();
77
         private BoundaryBox latLonBbox = null;
78
         private Hashtable bBoxes = new Hashtable();
79 5368 jorpiell
         private Vector fields = new Vector();
80 5862 jorpiell
         private Vector keywords = new Vector();
81 4912 jorpiell
82
        /**
83
         * @return Returns the fields.
84
         */
85 5368 jorpiell
        public Vector getFields() {
86 4912 jorpiell
                return fields;
87
        }
88
        /**
89
         * @param fields The fields to set.
90
         */
91 5368 jorpiell
        public void setFields(Vector fields) {
92 4912 jorpiell
                this.fields = fields;
93
        }
94
        /**
95
         * @return Returns the _abstract.
96
         */
97
        public String getAbstract() {
98
                return _abstract;
99
        }
100
        /**
101
         * @param _abstract The _abstract to set.
102
         */
103
        public void setAbstract(String _abstract) {
104
                this._abstract = _abstract;
105 5862 jorpiell
        }
106
107 4912 jorpiell
        /**
108
         * @return Returns the name.
109
         */
110
        public String getName() {
111
                return name;
112
        }
113 5862 jorpiell
114 4912 jorpiell
        /**
115
         * @param name The name to set.
116
         */
117
        public void setName(String name) {
118
                this.name = name;
119
        }
120 5862 jorpiell
121 4912 jorpiell
        /**
122 5862 jorpiell
         * @return Returns the title.
123 4912 jorpiell
         */
124 5862 jorpiell
        public String getTitle() {
125
                return title;
126 4912 jorpiell
        }
127 5862 jorpiell
128 4912 jorpiell
        /**
129 5862 jorpiell
         * @param title The title to set.
130 4912 jorpiell
         */
131 5862 jorpiell
        public void setTitle(String title) {
132
                this.title = title;
133 4912 jorpiell
        }
134 5862 jorpiell
135 4912 jorpiell
        /**
136 5862 jorpiell
         * @return Returns the latLonBbox.
137 4912 jorpiell
         */
138 5862 jorpiell
        public BoundaryBox getLatLonBbox() {
139
                return latLonBbox;
140 4912 jorpiell
        }
141
        /**
142 5862 jorpiell
         * @param latLonBbox The latLonBbox to set.
143 4912 jorpiell
         */
144 5862 jorpiell
        public void setLatLonBbox(BoundaryBox latLonBbox) {
145
                this.latLonBbox = latLonBbox;
146 4912 jorpiell
        }
147
        /**
148 5862 jorpiell
         * @return Returns the keywords.
149 4912 jorpiell
         */
150 5862 jorpiell
        public Vector getKeywords() {
151
                return keywords;
152 4912 jorpiell
        }
153 5862 jorpiell
154
        public void addKeyword(String keyword){
155
                keywords.add(keyword);
156 4912 jorpiell
        }
157
        /**
158 5862 jorpiell
         * @return Returns the srs.
159 4912 jorpiell
         */
160 5862 jorpiell
        public Vector getSrs() {
161
                return srs;
162 4912 jorpiell
        }
163 5862 jorpiell
164
        public void addSRS(String key){
165
                if (!this.srs.contains(key))
166
                    srs.add(key);
167 4912 jorpiell
        }
168
169 5862 jorpiell
         /**
170
     * <p>Adds a bbox to the Bboxes vector</p>
171
     * @param bbox
172
     */
173
    public void addBBox(BoundaryBox bbox) {
174
        bBoxes.put(bbox.getSrs(), bbox);
175
    }
176
177
    /**
178
     * <p>returns the bbox with that id in the Bboxes vector</p>
179
     * @param id
180
     */
181
    public BoundaryBox getBbox(String id) {
182
            return (BoundaryBox)bBoxes.get(id);
183
    }
184
185 4912 jorpiell
}