svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / wmts / WMTSServiceInformation.java @ 40769
History | View | Annotate | Download (4.25 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.wmts; |
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 Nacho Brodin (nachobrodin@gmail.com)
|
39 |
*/
|
40 |
public class WMTSServiceInformation extends OGCServiceInformation { |
41 |
public String version; |
42 |
public String name; |
43 |
public String scope; |
44 |
public String title; |
45 |
public String abstr; |
46 |
public String keywords; |
47 |
public String fees; |
48 |
public String operationsInfo; |
49 |
public String personname; |
50 |
public String organization; |
51 |
public String function; |
52 |
public String addresstype; |
53 |
public String address; |
54 |
public String place; |
55 |
public String province; |
56 |
public String postcode; |
57 |
public String country; |
58 |
public String phone; |
59 |
public String fax; |
60 |
public String email; |
61 |
public Vector formats; |
62 |
|
63 |
public WMTSServiceInformation() {
|
64 |
version = new String(); |
65 |
name = new String(); |
66 |
scope = new String(); |
67 |
title = new String(); |
68 |
abstr = new String(); |
69 |
keywords = new String(); |
70 |
fees = new String(); |
71 |
operationsInfo = new String(); |
72 |
personname = new String(); |
73 |
organization = new String(); |
74 |
function = new String(); |
75 |
addresstype = new String(); |
76 |
address = new String(); |
77 |
place = new String(); |
78 |
province = new String(); |
79 |
postcode = new String(); |
80 |
country = new String(); |
81 |
phone = new String(); |
82 |
fax = new String(); |
83 |
email = new String(); |
84 |
formats = new Vector(); |
85 |
} |
86 |
|
87 |
public boolean isQueryable() { |
88 |
if (getOnlineResource(CapabilitiesTags.GETFEATUREINFO) != null) |
89 |
return true; |
90 |
else
|
91 |
return false; |
92 |
} |
93 |
|
94 |
public boolean hasLegendGraphic() { |
95 |
if (getOnlineResource(CapabilitiesTags.GETLEGENDGRAPHIC) != null) |
96 |
return true; |
97 |
else
|
98 |
return false; |
99 |
} |
100 |
|
101 |
public void clear() { |
102 |
version = new String(); |
103 |
name = new String(); |
104 |
scope = new String(); |
105 |
title = new String(); |
106 |
abstr = new String(); |
107 |
keywords = new String(); |
108 |
fees = new String(); |
109 |
operationsInfo = new String(); |
110 |
personname = new String(); |
111 |
organization = new String(); |
112 |
function = new String(); |
113 |
addresstype = new String(); |
114 |
address = new String(); |
115 |
place = new String(); |
116 |
province = new String(); |
117 |
postcode = new String(); |
118 |
country = new String(); |
119 |
phone = new String(); |
120 |
fax = new String(); |
121 |
email = new String(); |
122 |
formats = new Vector(); |
123 |
} |
124 |
|
125 |
/* (non-Javadoc)
|
126 |
* @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String)
|
127 |
*/
|
128 |
public OGCClientOperation createOperation(String name) { |
129 |
return new WMTSOperation(name); |
130 |
} |
131 |
|
132 |
/* (non-Javadoc)
|
133 |
* @see org.gvsig.remoteClient.ogc.OGCServiceInformation#createOperation(java.lang.String, java.lang.String)
|
134 |
*/
|
135 |
public OGCClientOperation createOperation(String name, String onlineResource) { |
136 |
return new WMTSOperation(name, onlineResource); |
137 |
} |
138 |
|
139 |
} |
140 |
|