Index: org.gvsig.raster.wms.io/src/main/java/org/gvsig/raster/wms/io/WMSConnector.java =================================================================== --- org.gvsig.raster.wms.io/src/main/java/org/gvsig/raster/wms/io/WMSConnector.java (revisione 7389) +++ org.gvsig.raster.wms.io/src/main/java/org/gvsig/raster/wms/io/WMSConnector.java (copia locale) @@ -356,33 +356,33 @@ // Transparency myNode.setTransparency(node.hasTransparency()); - for (int i = 0; i < node.getAllSrs().size(); i++) { - String srs = (String)node.getAllSrs().get(i); - if(node.getBbox(srs) == null) { - IProjection projSrc = CRSFactory.getCRS("EPSG:4326"); - try { - IProjection projDst = CRSFactory.getCRS(srs); - if(projDst != null) { - try { - ICoordTrans t = projSrc.getCT(projDst); - Rectangle2D r = t.convert(getRectangleFromBoundaryBox(node.getLatLonBox())); - BoundaryBox bbox = getBoundaryBoxFromRectangle(r); - bbox.setSrs(srs); - node.addBBox(bbox); - } catch (Exception e) { - log.info("I cannot get the transformation between EPSG:4326 and " + srs, e); - } - } - } catch (Exception e1) { - log.info("I cannot get " + srs, e1); - node.removeSrs(srs); - } - } - } + // CRSs +// for (int i = 0; i < node.getAllSrs().size(); i++) { +// String srs = (String)node.getAllSrs().get(i); +// if(node.getBbox(srs) == null) { +// IProjection projSrc = CRSFactory.getCRS("EPSG:4326"); +// try { +// IProjection projDst = CRSFactory.getCRS(srs); +// if(projDst != null) { +// try { +// ICoordTrans t = projSrc.getCT(projDst); +// Rectangle2D r = t.convert(getRectangleFromBoundaryBox(node.getLatLonBox())); +// BoundaryBox bbox = getBoundaryBoxFromRectangle(r); +// bbox.setSrs(srs); +// node.addBBox(bbox); +// } catch (Exception e) { +// log.info("I cannot get the transformation between EPSG:4326 and " + srs, e); +// } +// } +// } catch (Exception e1) { +// log.info("I cannot get " + srs, e1); +// node.removeSrs(srs); +// } +// } +// } myNode.setSrs(node.getAllSrs()); // Queryable - myNode.setQueryable(node.isQueryable() && client.getServiceInformation().isQueryable()); // Parent layer