svn-gvsig-desktop / trunk / extensions / extWCS / src / com / iver / cit / gvsig / fmap / layers / WCSLayer.java @ 4417
History | View | Annotate | Download (3.26 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
/*
|
42 |
* $Id: WCSLayer.java 4417 2006-03-14 18:17:59Z jaume $
|
43 |
* $Log$
|
44 |
* Revision 1.4 2006-03-14 18:17:59 jaume
|
45 |
* *** empty log message ***
|
46 |
*
|
47 |
* Revision 1.3 2006/03/14 17:36:44 jaume
|
48 |
* *** empty log message ***
|
49 |
*
|
50 |
* Revision 1.2 2006/03/14 10:52:21 jaume
|
51 |
* *** empty log message ***
|
52 |
*
|
53 |
* Revision 1.1 2006/03/10 10:25:03 jaume
|
54 |
* *** empty log message ***
|
55 |
*
|
56 |
*/
|
57 |
package com.iver.cit.gvsig.fmap.layers; |
58 |
|
59 |
import java.awt.geom.Point2D; |
60 |
import java.awt.geom.Rectangle2D; |
61 |
import java.util.ArrayList; |
62 |
|
63 |
public class WCSLayer { |
64 |
|
65 |
private String name; |
66 |
private ArrayList srs; |
67 |
private String title; |
68 |
private String nativeSRS; |
69 |
private ArrayList formats; |
70 |
private Point2D maxRes; |
71 |
private ArrayList timePositions; |
72 |
private String description; |
73 |
|
74 |
public void setName(String name) { |
75 |
this.name = name;
|
76 |
} |
77 |
|
78 |
public void addAllSrs(ArrayList srs) { |
79 |
if (this.srs == null) |
80 |
this.srs = new ArrayList(); |
81 |
this.srs.addAll(srs);
|
82 |
} |
83 |
|
84 |
public void setTitle(String title) { |
85 |
this.title = title;
|
86 |
} |
87 |
|
88 |
public void setNativeSRS(String nativeSRS) { |
89 |
this.nativeSRS = nativeSRS;
|
90 |
} |
91 |
|
92 |
public String getName() { |
93 |
return name;
|
94 |
} |
95 |
|
96 |
public void setFormats(ArrayList formats) { |
97 |
this.formats = formats;
|
98 |
} |
99 |
|
100 |
public ArrayList getFormats() { |
101 |
return formats;
|
102 |
} |
103 |
|
104 |
public ArrayList getSRSs() { |
105 |
return srs;
|
106 |
} |
107 |
|
108 |
public String getTitle() { |
109 |
return title;
|
110 |
} |
111 |
|
112 |
public Rectangle2D getExtent(String srs) { |
113 |
System.out.println("get extent");// TODO Auto-generated method stub |
114 |
return null; |
115 |
} |
116 |
|
117 |
public Point2D getMaxRes() { |
118 |
return maxRes;
|
119 |
} |
120 |
|
121 |
|
122 |
public void setMaxRes(Point2D maxRes) { |
123 |
this.maxRes = maxRes;
|
124 |
} |
125 |
|
126 |
public String toString(){ |
127 |
String str;
|
128 |
if (getName()==null) |
129 |
str = getTitle(); |
130 |
else
|
131 |
str = "["+getName()+"] "+getTitle(); |
132 |
return str;
|
133 |
} |
134 |
|
135 |
public void setTimePositions(ArrayList timePositions) { |
136 |
this.timePositions = timePositions;
|
137 |
} |
138 |
|
139 |
public ArrayList getTimePositions() { |
140 |
return this.timePositions; |
141 |
} |
142 |
|
143 |
public String getDescription() { |
144 |
return this.description; |
145 |
} |
146 |
|
147 |
public void setDescription(String descr) { |
148 |
this.description = descr;
|
149 |
} |
150 |
|
151 |
public String getLonLatEnvelope() { |
152 |
return "yet unimplemented"; |
153 |
} |
154 |
} |