root / branches / v2_0_0_prep / libraries / libRemoteServices / src / org / gvsig / remoteclient / wms / WMSServiceInformation.java @ 38579
History | View | Annotate | Download (4.46 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2009 Iver T.I. {{Task}}
|
26 |
*/
|
27 |
|
28 |
package org.gvsig.remoteclient.wms; |
29 |
|
30 |
import java.util.Vector; |
31 |
|
32 |
import org.gvsig.remoteclient.ogc.OGCClientOperation; |
33 |
import org.gvsig.remoteclient.ogc.OGCServiceInformation; |
34 |
import org.gvsig.remoteclient.utils.CapabilitiesTags; |
35 |
|
36 |
/**
|
37 |
* Class that represents the description of the WMS metadata.
|
38 |
* The first part of the capabilities will return the service information
|
39 |
* from the WMS, this class will hold this information.
|
40 |
*
|
41 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
|
42 |
*/
|
43 |
public class WMSServiceInformation extends OGCServiceInformation{ |
44 |
/*public String map_online_resource = null;
|
45 |
public String feature_online_resource = null;*/
|
46 |
public String version; |
47 |
public String name; |
48 |
public String scope; |
49 |
public String title; |
50 |
public String abstr; |
51 |
public String keywords; |
52 |
public String fees; |
53 |
public String operationsInfo; |
54 |
public String personname; |
55 |
public String organization; |
56 |
public String function; |
57 |
public String addresstype; |
58 |
public String address; |
59 |
public String place; |
60 |
public String province; |
61 |
public String postcode; |
62 |
public String country; |
63 |
public String phone; |
64 |
public String fax; |
65 |
public String email; |
66 |
public Vector formats; |
67 |
public Vector infoformats; |
68 |
|
69 |
public WMSServiceInformation()
|
70 |
{ |
71 |
version = new String(); |
72 |
name = new String(); |
73 |
scope = new String(); |
74 |
title = new String(); |
75 |
abstr = new String(); |
76 |
keywords = new String(); |
77 |
fees = new String(); |
78 |
operationsInfo = new String(); |
79 |
personname = new String(); |
80 |
organization = new String(); |
81 |
function = new String(); |
82 |
addresstype = new String(); |
83 |
address = new String(); |
84 |
place = new String(); |
85 |
province = new String(); |
86 |
postcode = new String(); |
87 |
country = new String(); |
88 |
phone = new String(); |
89 |
fax = new String(); |
90 |
email = new String(); |
91 |
formats = new Vector(); |
92 |
infoformats = new Vector(); |
93 |
} |
94 |
|
95 |
public boolean isQueryable() |
96 |
{ |
97 |
if (getOnlineResource(CapabilitiesTags.GETFEATUREINFO) != null) |
98 |
return true; |
99 |
else
|
100 |
return false; |
101 |
} |
102 |
|
103 |
public boolean hasLegendGraphic() |
104 |
{ |
105 |
if (getOnlineResource(CapabilitiesTags.GETLEGENDGRAPHIC) != null) |
106 |
return true; |
107 |
else
|
108 |
return false; |
109 |
} |
110 |
|
111 |
public void clear() { |
112 |
version = new String(); |
113 |
name = new String(); |
114 |
scope = new String(); |
115 |
title = new String(); |
116 |
abstr = new String(); |
117 |
keywords = new String(); |
118 |
fees = new String(); |
119 |
operationsInfo = new String(); |
120 |
personname = new String(); |
121 |
organization = new String(); |
122 |
function = new String(); |
123 |
addresstype = new String(); |
124 |
address = new String(); |
125 |
place = new String(); |
126 |
province = new String(); |
127 |
postcode = new String(); |
128 |
country = new String(); |
129 |
phone = new String(); |
130 |
fax = new String(); |
131 |
email = new String(); |
132 |
formats = new Vector(); |
133 |
infoformats = new Vector(); |
134 |
} |
135 |
|
136 |
/* (non-Javadoc)
|
137 |
* @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String)
|
138 |
*/
|
139 |
public OGCClientOperation createOperation(String name) { |
140 |
return new WMSOperation(name); |
141 |
} |
142 |
|
143 |
/* (non-Javadoc)
|
144 |
* @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String, java.lang.String)
|
145 |
*/
|
146 |
public OGCClientOperation createOperation(String name, String onlineResource) { |
147 |
return new WMSOperation(name, onlineResource); |
148 |
} |
149 |
|
150 |
} |
151 |
|