Revision 458 2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/data/GvSIGLayerDataRaster.java

View differences:

GvSIGLayerDataRaster.java
125 125

  
126 126
        try {
127 127

  
128
            IProjection projection = layer.getProjection();
128
            IProjection projection = mapContext.getProjection();
129 129

  
130
            if (projection == null) {
131
                projection = mapContext.getProjection();
132
            }
133

  
134 130
            ICoordTrans ct = CRSFactory.getCRS("EPSG:4326").getCT(projection);
135 131
            Point2D p1 = convert(ct, new Point2D.Double(degrees[2], degrees[0]));
136 132
            Point2D p2 = convert(ct, new Point2D.Double(degrees[3], degrees[1]));

Also available in: Unified diff