Revision 34393
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/wmts_1_0_0/struct/WMTSLayer_1_0_0.java | ||
---|---|---|
48 | 48 |
* @throws IOException |
49 | 49 |
* @throws XmlPullParserException |
50 | 50 |
*/ |
51 |
@SuppressWarnings("unchecked") |
|
52 | 51 |
public void parse(KXmlParser parser) throws IOException, XmlPullParserException { |
53 | 52 |
int currentTag; |
54 | 53 |
boolean end = false; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/wmts_1_0_0/struct/WMTSTileMatrixSet_1_0_0.java | ||
---|---|---|
38 | 38 |
*/ |
39 | 39 |
public class WMTSTileMatrixSet_1_0_0 extends WMTSTileMatrixSet { |
40 | 40 |
|
41 |
@SuppressWarnings("unchecked") |
|
42 | 41 |
public void parse(KXmlParser parser, ArrayList matrixSetList) throws IOException, XmlPullParserException { |
43 | 42 |
int currentTag; |
44 | 43 |
boolean end = false; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/wmts_1_0_0/struct/WMTSTheme_1_0_0.java | ||
---|---|---|
42 | 42 |
* @throws IOException |
43 | 43 |
* @throws XmlPullParserException |
44 | 44 |
*/ |
45 |
@SuppressWarnings("unchecked") |
|
46 | 45 |
public void parse(KXmlParser parser) throws IOException, XmlPullParserException { |
47 | 46 |
int currentTag; |
48 | 47 |
boolean end = false; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/wmts_1_0_0/struct/WMTSTileMatrix_1_0_0.java | ||
---|---|---|
43 | 43 |
* @throws IOException |
44 | 44 |
* @throws XmlPullParserException |
45 | 45 |
*/ |
46 |
@SuppressWarnings("unchecked") |
|
47 | 46 |
public void parse(KXmlParser parser, ArrayList tileMatrixList) throws IOException, XmlPullParserException { |
48 | 47 |
int currentTag; |
49 | 48 |
boolean end = false; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/wmts_1_0_0/struct/WMTSTileMatrixLimits_1_0_0.java | ||
---|---|---|
37 | 37 |
*/ |
38 | 38 |
public class WMTSTileMatrixLimits_1_0_0 extends WMTSTileMatrixLimits { |
39 | 39 |
|
40 |
@SuppressWarnings("unchecked") |
|
41 | 40 |
public void parse(KXmlParser parser, ArrayList list) throws IOException, XmlPullParserException { |
42 | 41 |
int currentTag; |
43 | 42 |
boolean end = false; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/wmts_1_0_0/struct/WMTSThemes_1_0_0.java | ||
---|---|---|
45 | 45 |
* @throws IOException |
46 | 46 |
* @throws XmlPullParserException |
47 | 47 |
*/ |
48 |
@SuppressWarnings("unchecked") |
|
49 | 48 |
public void parse(KXmlParser parser) throws IOException, XmlPullParserException { |
50 | 49 |
int currentTag; |
51 | 50 |
boolean end = false; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSClient.java | ||
---|---|---|
39 | 39 |
* <p>Represents the class the with the necessary logic to connect to a OGCWMS and interpretate the data </p> |
40 | 40 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
41 | 41 |
*/ |
42 |
@SuppressWarnings("unchecked") |
|
43 | 42 |
public class WMTSClient extends org.gvsig.remoteclient.RasterClient { |
44 | 43 |
private org.gvsig.remoteclient.wmts.WMTSProtocolHandler handler = null; |
45 | 44 |
private WMTSServerDescription serverDescription = null; |
... | ... | |
88 | 87 |
return 0; |
89 | 88 |
} |
90 | 89 |
|
91 |
@Override |
|
92 | 90 |
public void close() { |
93 | 91 |
serverDescription = null; |
94 | 92 |
handler = null; |
... | ... | |
122 | 120 |
* (non-Javadoc) |
123 | 121 |
* @see org.gvsig.remoteclient.RemoteClient#connect(boolean, org.gvsig.compat.net.ICancellable) |
124 | 122 |
*/ |
125 |
@Override |
|
126 | 123 |
public boolean connect(boolean override, ICancellable cancel) { |
127 | 124 |
try { |
128 | 125 |
if (handler == null) { |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSProtocolHandler.java | ||
---|---|---|
242 | 242 |
return serviceInfo; |
243 | 243 |
} |
244 | 244 |
|
245 |
@SuppressWarnings("unchecked") |
|
246 | 245 |
protected String parseException(byte[] data) { |
247 | 246 |
ArrayList errors = new ArrayList(); |
248 | 247 |
KXmlParser kxmlParser = new KXmlParser(); |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSOperation.java | ||
---|---|---|
35 | 35 |
/** |
36 | 36 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
37 | 37 |
*/ |
38 |
@SuppressWarnings("unchecked") |
|
39 | 38 |
public class WMTSOperation extends OGCClientOperation{ |
40 | 39 |
protected static Hashtable operations = new Hashtable(); |
41 | 40 |
|
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSStatus.java | ||
---|---|---|
29 | 29 |
* |
30 | 30 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
31 | 31 |
*/ |
32 |
@SuppressWarnings("unchecked") |
|
33 | 32 |
public class WMTSStatus extends org.gvsig.remoteclient.RemoteClientStatus { |
34 | 33 |
private String layer = null; |
35 | 34 |
private String style = null; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/exception/WMTSException.java | ||
---|---|---|
60 | 60 |
formatString = message; |
61 | 61 |
} |
62 | 62 |
|
63 |
@SuppressWarnings("unchecked") |
|
64 | 63 |
protected Map values() { |
65 | 64 |
Hashtable params; |
66 | 65 |
params = new Hashtable(); |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSServiceInformation.java | ||
---|---|---|
40 | 40 |
* |
41 | 41 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
42 | 42 |
*/ |
43 |
@SuppressWarnings("unchecked") |
|
44 | 43 |
public class WMTSServiceInformation extends OGCServiceInformation { |
45 | 44 |
public String version; |
46 | 45 |
public String name; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSProtocolHandlerFactory.java | ||
---|---|---|
41 | 41 |
* |
42 | 42 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
43 | 43 |
*/ |
44 |
@SuppressWarnings("unchecked") |
|
45 | 44 |
public class WMTSProtocolHandlerFactory { |
46 | 45 |
public org.gvsig.remoteclient.wms.WMSProtocolHandler wMSProtocolHandler; |
47 | 46 |
|
... | ... | |
64 | 63 |
* @throws InstantiationException |
65 | 64 |
* |
66 | 65 |
*/ |
67 |
@SuppressWarnings({ "unused" }) |
|
68 | 66 |
private static String getDriverVersion(String version, Iterator clients) throws InstantiationException, IllegalAccessException { |
69 | 67 |
while (clients.hasNext()) { |
70 | 68 |
String clientVersion = (String)clients.next(); |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/struct/WMTSLayer.java | ||
---|---|---|
30 | 30 |
* |
31 | 31 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
32 | 32 |
*/ |
33 |
@SuppressWarnings("unchecked") |
|
34 | 33 |
public abstract class WMTSLayer extends WMTSBaseStruct { |
35 | 34 |
protected WMTSBoundingBox wgs84bbox = null; |
36 | 35 |
protected WMTSBoundingBox bbox = null; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/struct/WMTSTileMatrixSetLink.java | ||
---|---|---|
34 | 34 |
public abstract class WMTSTileMatrixSetLink { |
35 | 35 |
private String tileMatrixSetId = null; |
36 | 36 |
private WMTSTileMatrixSet tileMatrixSet = null; |
37 |
@SuppressWarnings("unchecked") |
|
38 | 37 |
private ArrayList tileMatrixLimits = null; |
39 | 38 |
|
40 | 39 |
/** |
... | ... | |
62 | 61 |
this.tileMatrixSet = tileMatrixSet; |
63 | 62 |
} |
64 | 63 |
|
65 |
@SuppressWarnings("unchecked") |
|
66 | 64 |
public ArrayList getTileMatrixLimits() { |
67 | 65 |
if(tileMatrixLimits == null) |
68 | 66 |
tileMatrixLimits = new ArrayList(); |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/struct/WMTSTileMatrixSet.java | ||
---|---|---|
32 | 32 |
* <p>Defines a OGC style. Theme that describes the appeareance of certain layer.</p> |
33 | 33 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
34 | 34 |
*/ |
35 |
@SuppressWarnings("unchecked") |
|
36 | 35 |
public abstract class WMTSTileMatrixSet extends WMTSBaseStruct { |
37 | 36 |
protected WMTSBoundingBox bbox = null; |
38 | 37 |
private String supportedCRS = null; |
... | ... | |
74 | 73 |
this.supportedCRS = supportedCRS; |
75 | 74 |
} |
76 | 75 |
|
77 |
@Override |
|
78 | 76 |
public void parse(KXmlParser parser) throws IOException, |
79 | 77 |
XmlPullParserException { |
80 | 78 |
} |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/struct/WMTSTheme.java | ||
---|---|---|
27 | 27 |
* Layer hierarchy |
28 | 28 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
29 | 29 |
*/ |
30 |
@SuppressWarnings("unchecked") |
|
31 | 30 |
public abstract class WMTSTheme extends WMTSBaseStruct { |
32 | 31 |
//WMTSTheme |
33 | 32 |
private ArrayList theme = null; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/struct/WMTSTileMatrix.java | ||
---|---|---|
66 | 66 |
* @throws IOException |
67 | 67 |
* @throws XmlPullParserException |
68 | 68 |
*/ |
69 |
@SuppressWarnings("unchecked") |
|
70 | 69 |
public abstract void parse(KXmlParser parser, ArrayList list) throws IOException, XmlPullParserException; |
71 | 70 |
|
72 | 71 |
|
... | ... | |
124 | 123 |
* This function will check if the request coordinates intersects with the tiles in the matrix. If a tile |
125 | 124 |
* intersects then this will be added to the list. |
126 | 125 |
*/ |
127 |
@SuppressWarnings("unchecked") |
|
128 | 126 |
public ArrayList intersects(boolean projected, WMTSTileMatrixLimits tileMatrixLimits, Rectangle2D request, Rectangle2D extentLayer) { |
129 | 127 |
double widthMtsTile = 0; |
130 | 128 |
double heightMtsTile = 0; |
... | ... | |
173 | 171 |
* This function will check if the request coordinates intersects with the tiles in the matrix. If a tile |
174 | 172 |
* intersects then this will be added to the list. |
175 | 173 |
*/ |
176 |
@SuppressWarnings("unchecked") |
|
177 | 174 |
public ArrayList intersects(boolean projected, Rectangle2D request, Rectangle2D extentLayer) { |
178 | 175 |
double widthMtsTile = 0; |
179 | 176 |
double heightMtsTile = 0; |
... | ... | |
221 | 218 |
* This function will check if the request coordinates intersects with the tiles in the matrix. If a tile |
222 | 219 |
* intersects then this will be added to the list. |
223 | 220 |
*/ |
224 |
@SuppressWarnings("unchecked") |
|
225 | 221 |
public ArrayList contains(boolean projected, Point2D point, Rectangle2D extentLayer) { |
226 | 222 |
double widthMtsTile = 0; |
227 | 223 |
double heightMtsTile = 0; |
... | ... | |
269 | 265 |
* This function will check if the request coordinates intersects with the tiles in the matrix. If a tile |
270 | 266 |
* intersects then this will be added to the list. |
271 | 267 |
*/ |
272 |
@SuppressWarnings("unchecked") |
|
273 | 268 |
public ArrayList contains(boolean projected, WMTSTileMatrixLimits tileMatrixLimits, Point2D point, Rectangle2D extentLayer) { |
274 | 269 |
double widthMtsTile = 0; |
275 | 270 |
double heightMtsTile = 0; |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/struct/WMTSTileMatrixLimits.java | ||
---|---|---|
47 | 47 |
* @throws IOException |
48 | 48 |
* @throws XmlPullParserException |
49 | 49 |
*/ |
50 |
@SuppressWarnings("unchecked") |
|
51 | 50 |
public abstract void parse(KXmlParser parser, ArrayList list) throws IOException, XmlPullParserException; |
52 | 51 |
|
53 | 52 |
public WMTSTileMatrix getTileMatrix() { |
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/struct/WMTSThemes.java | ||
---|---|---|
32 | 32 |
* Layer hierarchy |
33 | 33 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
34 | 34 |
*/ |
35 |
@SuppressWarnings("unchecked") |
|
36 | 35 |
public abstract class WMTSThemes extends ArrayList { |
37 | 36 |
private static final long serialVersionUID = 1L; |
38 | 37 |
|
branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSServerDescription.java | ||
---|---|---|
38 | 38 |
* |
39 | 39 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
40 | 40 |
*/ |
41 |
@SuppressWarnings("unchecked") |
|
42 | 41 |
public class WMTSServerDescription extends org.gvsig.remoteclient.RemoteClientStatus { |
43 | 42 |
private ArrayList layerList = null; |
44 | 43 |
private ArrayList tileMatrixSet = null; |
Also available in: Unified diff