svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / wms / WMSServiceInformation.java @ 40769
History | View | Annotate | Download (4.46 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
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 3
|
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 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
|
25 |
package org.gvsig.remoteclient.wms; |
26 |
|
27 |
import java.util.Vector; |
28 |
|
29 |
import org.gvsig.remoteclient.ogc.OGCClientOperation; |
30 |
import org.gvsig.remoteclient.ogc.OGCServiceInformation; |
31 |
import org.gvsig.remoteclient.utils.CapabilitiesTags; |
32 |
|
33 |
/**
|
34 |
* Class that represents the description of the WMS metadata.
|
35 |
* The first part of the capabilities will return the service information
|
36 |
* from the WMS, this class will hold this information.
|
37 |
*
|
38 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
|
39 |
*/
|
40 |
public class WMSServiceInformation extends OGCServiceInformation{ |
41 |
/*public String map_online_resource = null;
|
42 |
public String feature_online_resource = null;*/
|
43 |
public String version; |
44 |
public String name; |
45 |
public String scope; |
46 |
public String title; |
47 |
public String abstr; |
48 |
public String keywords; |
49 |
public String fees; |
50 |
public String operationsInfo; |
51 |
public String personname; |
52 |
public String organization; |
53 |
public String function; |
54 |
public String addresstype; |
55 |
public String address; |
56 |
public String place; |
57 |
public String province; |
58 |
public String postcode; |
59 |
public String country; |
60 |
public String phone; |
61 |
public String fax; |
62 |
public String email; |
63 |
public Vector formats; |
64 |
public Vector infoformats; |
65 |
|
66 |
public WMSServiceInformation()
|
67 |
{ |
68 |
version = new String(); |
69 |
name = new String(); |
70 |
scope = new String(); |
71 |
title = new String(); |
72 |
abstr = new String(); |
73 |
keywords = new String(); |
74 |
fees = new String(); |
75 |
operationsInfo = new String(); |
76 |
personname = new String(); |
77 |
organization = new String(); |
78 |
function = new String(); |
79 |
addresstype = new String(); |
80 |
address = new String(); |
81 |
place = new String(); |
82 |
province = new String(); |
83 |
postcode = new String(); |
84 |
country = new String(); |
85 |
phone = new String(); |
86 |
fax = new String(); |
87 |
email = new String(); |
88 |
formats = new Vector(); |
89 |
infoformats = new Vector(); |
90 |
} |
91 |
|
92 |
public boolean isQueryable() |
93 |
{ |
94 |
if (getOnlineResource(CapabilitiesTags.GETFEATUREINFO) != null) |
95 |
return true; |
96 |
else
|
97 |
return false; |
98 |
} |
99 |
|
100 |
public boolean hasLegendGraphic() |
101 |
{ |
102 |
if (getOnlineResource(CapabilitiesTags.GETLEGENDGRAPHIC) != null) |
103 |
return true; |
104 |
else
|
105 |
return false; |
106 |
} |
107 |
|
108 |
public void clear() { |
109 |
version = new String(); |
110 |
name = new String(); |
111 |
scope = new String(); |
112 |
title = new String(); |
113 |
abstr = new String(); |
114 |
keywords = new String(); |
115 |
fees = new String(); |
116 |
operationsInfo = new String(); |
117 |
personname = new String(); |
118 |
organization = new String(); |
119 |
function = new String(); |
120 |
addresstype = new String(); |
121 |
address = new String(); |
122 |
place = new String(); |
123 |
province = new String(); |
124 |
postcode = new String(); |
125 |
country = new String(); |
126 |
phone = new String(); |
127 |
fax = new String(); |
128 |
email = new String(); |
129 |
formats = new Vector(); |
130 |
infoformats = new Vector(); |
131 |
} |
132 |
|
133 |
/* (non-Javadoc)
|
134 |
* @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String)
|
135 |
*/
|
136 |
public OGCClientOperation createOperation(String name) { |
137 |
return new WMSOperation(name); |
138 |
} |
139 |
|
140 |
/* (non-Javadoc)
|
141 |
* @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String, java.lang.String)
|
142 |
*/
|
143 |
public OGCClientOperation createOperation(String name, String onlineResource) { |
144 |
return new WMSOperation(name, onlineResource); |
145 |
} |
146 |
|
147 |
} |
148 |
|