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/Point2D.java

View differences:

Point2D.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;
......
55 56
    /**
56 57
     *
57 58
     */
58
    public Point2D(Coordinate coordinates) {
59
    public Point2D(IProjection proj, Coordinate coordinates) {
59 60
        super(Geometry.SUBTYPES.GEOM2D, coordinates);
60

  
61
        this.setProjection(proj);
61 62
    }
62 63

  
63 64
    /**
64 65
     *
65 66
     */
66 67
    public Point2D() {
67
        this(new Coordinate(0, 0));
68
        this(null, new Coordinate(0, 0));
68 69
    }
69 70

  
70 71
    /**
71 72
    *
72 73
    */
73 74
    public Point2D(double x, double y) {
74
        this(new Coordinate(x, y));
75
        this(null, new Coordinate(x, y));
75 76
    }
76 77

  
77 78
    /*
......
80 81
     * @see org.gvsig.fmap.geom.Geometry#cloneGeometry()
81 82
     */
82 83
    public Point cloneGeometry() {
83
        return new Point2D((Coordinate) this.coordinate.clone());
84
        return new Point2D(this.getProjection(), (Coordinate) this.coordinate.clone());
84 85
    }
85 86

  
86 87
    /*

Also available in: Unified diff