Revision 41242 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.remoteclient/src/main/java/org/gvsig/remoteclient/wms/WMSLayer.java
WMSLayer.java | ||
---|---|---|
66 | 66 |
|
67 | 67 |
private ArrayList keywordList = new ArrayList(); |
68 | 68 |
/** |
69 |
* <p>Layer srs.</p>
|
|
69 |
* <p>CRS list of this layer (Tag CRS)</p>
|
|
70 | 70 |
*/ |
71 | 71 |
protected Vector srs = new Vector(); |
72 | 72 |
|
73 | 73 |
/** |
74 |
* <p>extents for each srs the layer can be reproyected to</p>
|
|
74 |
* <p>Bounding box por CRS (Tag BoundingBox)</p>
|
|
75 | 75 |
*/ |
76 | 76 |
private Hashtable bBoxes = new Hashtable(); |
77 | 77 |
|
... | ... | |
199 | 199 |
* @param id |
200 | 200 |
*/ |
201 | 201 |
public BoundaryBox getBbox(String id) { |
202 |
//Si hay una bounding box definida para esa capa y ese crs, se usa esa |
|
203 |
BoundaryBox b = (BoundaryBox) bBoxes.get(id); |
|
204 |
if(b != null) |
|
205 |
return b; |
|
206 |
|
|
202 | 207 |
if ((id.compareToIgnoreCase( CapabilitiesTags.EPSG_4326 )==0) |
203 |
||(id.compareToIgnoreCase( CapabilitiesTags.CRS_84)==0)) |
|
204 |
{ |
|
208 |
||(id.compareToIgnoreCase( CapabilitiesTags.CRS_84)==0)) { |
|
205 | 209 |
if (latLonBbox != null) |
206 | 210 |
return (BoundaryBox)latLonBbox; |
207 | 211 |
} |
208 |
BoundaryBox b = (BoundaryBox) bBoxes.get(id); |
|
209 |
if (b == null && parent!=null)
|
|
212 |
|
|
213 |
if (parent!=null) |
|
210 | 214 |
return parent.getBbox(id); |
211 |
return (BoundaryBox)bBoxes.get(id);
|
|
215 |
return null;
|
|
212 | 216 |
} |
213 | 217 |
|
214 | 218 |
/** |
Also available in: Unified diff