root / trunk / libraries / libRemoteServices / src / org / gvsig / remoteClient / wfs / wfs_1_0_0 / WFSFeature1_0_0.java @ 4887
History | View | Annotate | Download (2.81 KB)
1 | 4887 | jorpiell | package org.gvsig.remoteClient.wfs.wfs_1_0_0; |
---|---|---|---|
2 | |||
3 | import java.io.IOException; |
||
4 | import java.util.TreeMap; |
||
5 | |||
6 | import org.gvsig.remoteClient.utils.CapabilitiesTags; |
||
7 | import org.gvsig.remoteClient.wfs.WFSFeature; |
||
8 | import org.kxml2.io.KXmlParser; |
||
9 | import org.xmlpull.v1.XmlPullParserException; |
||
10 | |||
11 | /* 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 | * Revision 1.1 2006-04-19 12:51:35 jorpiell
|
||
56 | * A?adidas algunas de las clases del servicio WFS
|
||
57 | *
|
||
58 | *
|
||
59 | */
|
||
60 | /**
|
||
61 | * @author Jorge Piera Llodr? (piera_jor@gva.es)
|
||
62 | */
|
||
63 | public class WFSFeature1_0_0 extends WFSFeature{ |
||
64 | |||
65 | /**
|
||
66 | * <p>Parses the contents of the parser(WMSCapabilities)
|
||
67 | * to extract the information about an WMSLayer</p>
|
||
68 | * @throws IOException
|
||
69 | * @throws XmlPullParserException
|
||
70 | *
|
||
71 | */
|
||
72 | public void parse(KXmlParser parser) throws XmlPullParserException, IOException{ |
||
73 | int currentTag;
|
||
74 | boolean end = false; |
||
75 | |||
76 | parser.require(KXmlParser.START_TAG, null, CapabilitiesTags.WFS_FEATURETYPE);
|
||
77 | currentTag = parser.next(); |
||
78 | |||
79 | while (!end)
|
||
80 | { |
||
81 | switch(currentTag)
|
||
82 | { |
||
83 | case KXmlParser.START_TAG:
|
||
84 | if (parser.getName().compareToIgnoreCase(CapabilitiesTags.NAME)==0) |
||
85 | { |
||
86 | |||
87 | } |
||
88 | if (parser.getName().compareToIgnoreCase(CapabilitiesTags.TITLE)==0) |
||
89 | { |
||
90 | |||
91 | } |
||
92 | if (parser.getName().compareToIgnoreCase(CapabilitiesTags.SRS)==0) |
||
93 | { |
||
94 | |||
95 | } |
||
96 | if (parser.getName().compareToIgnoreCase(CapabilitiesTags.LATLONBOUNDINGBOX)==0) |
||
97 | { |
||
98 | |||
99 | } |
||
100 | break;
|
||
101 | case KXmlParser.END_TAG:
|
||
102 | if (parser.getName().compareTo(CapabilitiesTags.WFS_FEATURETYPE) == 0) |
||
103 | end = true;
|
||
104 | break;
|
||
105 | case KXmlParser.TEXT:
|
||
106 | break;
|
||
107 | } |
||
108 | currentTag = parser.next(); |
||
109 | } |
||
110 | } |
||
111 | } |