Revision 45943 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/Envelope3D.java

View differences:

Envelope3D.java
25 25
import com.vividsolutions.jts.geom.Coordinate;
26 26

  
27 27
import org.cresques.cts.ICoordTrans;
28
import org.cresques.cts.IProjection;
28 29

  
29 30
import org.gvsig.fmap.geom.jts.primitive.point.Point3D;
30 31
import org.gvsig.fmap.geom.primitive.Envelope;
......
48 49
        super();
49 50
    }
50 51

  
51
    public Envelope3D(Point min, Point max) {
52
        super(min, max);
52
    public Envelope3D(IProjection projection) {
53
        super(projection);
53 54
    }
54 55

  
56
    public Envelope3D(Point min, Point max, IProjection projection) {
57
        super(min, max, projection);
58
    }
59

  
55 60
    /**
56 61
     * @param coordinates
57 62
     */
......
113 118

  
114 119
        if (trans == null) {
115 120
            // clone
116
            return new Envelope3D(this.getLowerCorner(), this.getUpperCorner());
121
            return new Envelope3D(this.getLowerCorner(), this.getUpperCorner(), this.projection);
117 122
        }
118 123

  
119 124
        // if (this.getDimension() > 2) {
......
191 196
            return null;
192 197
        }
193 198

  
194
        return new Envelope3D(new Point3D(res_min.getX(), res_min.getY(), this.min.getCoordinateAt(2)), new Point3D(
195
            res_max.getX(), res_max.getY(), this.max.getCoordinateAt(2)));
199
        return new Envelope3D(
200
                new Point3D(res_min.getX(), res_min.getY(), this.min.getCoordinateAt(2)), 
201
                new Point3D(res_max.getX(), res_max.getY(), this.max.getCoordinateAt(2)),
202
        trans.getPDest());
196 203
    }
197 204

  
198 205
    public static void registerPersistent() {

Also available in: Unified diff