Revision 44099 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/point/Point3D.java

View differences:

Point3D.java
26 26
import java.awt.geom.PathIterator;
27 27

  
28 28
import com.vividsolutions.jts.geom.Coordinate;
29
import org.cresques.cts.IProjection;
29 30

  
30 31
import org.gvsig.fmap.geom.Geometry;
31 32
import org.gvsig.fmap.geom.GeometryException;
......
58 59
    /**
59 60
    *
60 61
    */
61
   public Point3D(Coordinate coordinates) {
62
   public Point3D(IProjection proj, Coordinate coordinates) {
62 63
       super(Geometry.SUBTYPES.GEOM3D, coordinates);
64
       this.setProjection(proj);
63 65
   }
64 66

  
65 67
   /**
66 68
    *
67 69
    */
68 70
   public Point3D() {
69
       this(new Coordinate(0, 0, 0));
71
       this(null, new Coordinate(0, 0, 0));
70 72
   }
71 73

  
72 74
   /**
73 75
   *
74 76
   */
75 77
   public Point3D(double x, double y, double z) {
76
       this(new Coordinate(x, y, z));
78
       this(null, new Coordinate(x, y, z));
77 79
   }
78 80

  
79 81

  
......
103 105
     * @see org.gvsig.fmap.geom.Geometry#cloneGeometry()
104 106
     */
105 107
    public Point cloneGeometry() {
106
        return new Point3D((Coordinate)this.coordinate.clone());
108
        return new Point3D(this.getProjection(), (Coordinate)this.coordinate.clone());
107 109
    }
108 110

  
109 111
    /* (non-Javadoc)

Also available in: Unified diff