root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / catalog / csw / drivers / profiles / CSWebRIMProfile.java @ 15558
History | View | Annotate | Download (6.4 KB)
1 |
package es.gva.cit.catalog.csw.drivers.profiles; |
---|---|
2 |
|
3 |
import org.apache.commons.httpclient.NameValuePair; |
4 |
|
5 |
import com.iver.utiles.swing.jcomboServer.ServerData; |
6 |
|
7 |
import es.gva.cit.catalog.csw.drivers.CSWCapabilities; |
8 |
import es.gva.cit.catalog.csw.parsers.CSWConstants; |
9 |
import es.gva.cit.catalog.querys.CatalogQuery; |
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 |
*
|
56 |
*/
|
57 |
/**
|
58 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
59 |
*/
|
60 |
public class CSWebRIMProfile extends CSWAbstractProfile{ |
61 |
|
62 |
public CSWebRIMProfile() {
|
63 |
super();
|
64 |
} |
65 |
|
66 |
/*
|
67 |
* (non-Javadoc)
|
68 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getTitle()
|
69 |
*/
|
70 |
public String getTitleProperty() { |
71 |
return "/DataGranule/instrumentShortName"; |
72 |
} |
73 |
|
74 |
/*
|
75 |
* (non-Javadoc)
|
76 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getAbstract()
|
77 |
*/
|
78 |
public String getAbstractProperty() { |
79 |
return "/Dataset/Description/LocalizedString/@value"; |
80 |
} |
81 |
|
82 |
/*
|
83 |
* (non-Javadoc)
|
84 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getCoordinates()
|
85 |
*/
|
86 |
public String getCoordinatesProperty() { |
87 |
// TODO Auto-generated method stub
|
88 |
return null; |
89 |
} |
90 |
|
91 |
/*
|
92 |
* (non-Javadoc)
|
93 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getDateFrom()
|
94 |
*/
|
95 |
public String getDateFromProperty() { |
96 |
// TODO Auto-generated method stub
|
97 |
return null; |
98 |
} |
99 |
|
100 |
/*
|
101 |
* (non-Javadoc)
|
102 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getDateTo()
|
103 |
*/
|
104 |
public String getDateToProperty() { |
105 |
// TODO Auto-generated method stub
|
106 |
return null; |
107 |
} |
108 |
|
109 |
/*
|
110 |
* (non-Javadoc)
|
111 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getProvider()
|
112 |
*/
|
113 |
public String getProviderProperty() { |
114 |
return "/Organization/Name/LocalizedString/@value"; |
115 |
} |
116 |
|
117 |
/*
|
118 |
* (non-Javadoc)
|
119 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getScale()
|
120 |
*/
|
121 |
public String getScaleProperty() { |
122 |
// TODO Auto-generated method stub
|
123 |
return null; |
124 |
} |
125 |
|
126 |
/*
|
127 |
* (non-Javadoc)
|
128 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getThemeKey()
|
129 |
*/
|
130 |
public String getKeywordsProperty() { |
131 |
return "/Dataset/Slot:s2/ValueList/Value"; |
132 |
} |
133 |
|
134 |
/*
|
135 |
* (non-Javadoc)
|
136 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getTopic()
|
137 |
*/
|
138 |
public String getTopicProperty() { |
139 |
return "/Classification/@classificationNode"; |
140 |
} |
141 |
|
142 |
/*
|
143 |
* (non-Javadoc)
|
144 |
* @see es.gva.cit.catalog.csw.drivers.profiles.ICSWProfile#getTopicValue(java.lang.String)
|
145 |
*/
|
146 |
public String getTopicValue(String topic) { |
147 |
if (topic.equals("farming")) { |
148 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:001"; |
149 |
} |
150 |
if (topic.equals("biota")) { |
151 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:002"; |
152 |
} |
153 |
if (topic.equals("boundaries")) { |
154 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:003"; |
155 |
} |
156 |
if (topic.equals("climatologyMeteorologyAtmosphere")) { |
157 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:004"; |
158 |
} |
159 |
if (topic.equals("economy")) { |
160 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:005"; |
161 |
} |
162 |
if (topic.equals("elevation")) { |
163 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:006"; |
164 |
} |
165 |
if (topic.equals("environment")) { |
166 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:007"; |
167 |
} |
168 |
if (topic.equals("geoscientificInformation")) { |
169 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:008"; |
170 |
} |
171 |
if (topic.equals("health")) { |
172 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:009"; |
173 |
} |
174 |
if (topic.equals("imageryBaseMapsEarthCover")) { |
175 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:010"; |
176 |
} |
177 |
if (topic.equals("intelligenceMilitary")) { |
178 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:011"; |
179 |
} |
180 |
if (topic.equals("inlandWaters")) { |
181 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:012"; |
182 |
} |
183 |
if (topic.equals("location")) { |
184 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:013"; |
185 |
} |
186 |
if (topic.equals("oceans")) { |
187 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:014"; |
188 |
} |
189 |
if (topic.equals("planningCadastre")) { |
190 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:015"; |
191 |
} |
192 |
if (topic.equals("society")) { |
193 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:016"; |
194 |
} |
195 |
if (topic.equals("structure")) { |
196 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:017"; |
197 |
} |
198 |
if (topic.equals("transportation")) { |
199 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:018"; |
200 |
} |
201 |
if (topic.equals("utilitiesCommunication")) { |
202 |
return "urn:x-iso-tc211:19119(2003)/scheme/services/scheme/topics:019"; |
203 |
} |
204 |
return ""; |
205 |
} |
206 |
|
207 |
/*
|
208 |
* (non-Javadoc)
|
209 |
* @see es.gva.cit.catalog.drivers.profiles.IProfile#getElementNameProperty()
|
210 |
*/
|
211 |
public String getElementNameProperty() { |
212 |
return "/DataGranule/"; |
213 |
} |
214 |
} |