Revision 2660 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toolListeners/InfoListener.java
InfoListener.java | ||
---|---|---|
72 | 72 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
73 | 73 |
import com.iver.cit.gvsig.fmap.layers.FLyrDefault; |
74 | 74 |
import com.iver.cit.gvsig.fmap.layers.FLyrRaster; |
75 |
import com.iver.cit.gvsig.fmap.layers.FLyrWMS; |
|
75 | 76 |
import com.iver.cit.gvsig.fmap.layers.RasterOperations; |
76 | 77 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
77 | 78 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.VectorialData; |
... | ... | |
159 | 160 |
items[i] = new VectorialXMLItem(visitor.getBitSet(), laCapa); |
160 | 161 |
numLayersInfoable++; |
161 | 162 |
} |
163 |
// TODO: PROVISIONAL PARA LA CAPA WMS |
|
164 |
if (laCapa instanceof FLyrWMS){ |
|
165 |
String text; |
|
166 |
try { |
|
167 |
FLyrWMS layer = (FLyrWMS) laCapa; |
|
168 |
text = layer.queryByPoint(imagePoint); |
|
169 |
System.out.println(text); |
|
170 |
} catch (DriverException e) { |
|
171 |
throw new BehaviorException("No se pudo procesar la capa", e); |
|
172 |
} |
|
173 |
items[i] = new StringXMLItem(text); |
|
174 |
numLayersInfoable++; |
|
162 | 175 |
|
176 |
} |
|
163 | 177 |
if (laCapa instanceof RasterOperations){ |
164 | 178 |
RasterOperations layer = (RasterOperations) laCapa; |
165 | 179 |
//System.out.println(".........InfoByPoint"); |
Also available in: Unified diff