Statistics
| Revision:

svn-gvsig-desktop / 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 / aggregate / MultiPoint2D.java @ 42267

History | View | Annotate | Download (2.94 KB)

1
/* gvSIG. Desktop Geographic Information System.
2
 *
3
 * Copyright ? 2007-2015 gvSIG Association
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
 * MA  02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us
21
 * at info AT gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.fmap.geom.jts.aggregate;
24

    
25
import java.util.Iterator;
26

    
27
import org.gvsig.fmap.geom.Geometry;
28
import org.gvsig.fmap.geom.jts.gputils.DefaultGeneralPathX;
29
import org.gvsig.fmap.geom.operation.GeometryOperationException;
30
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException;
31
import org.gvsig.fmap.geom.primitive.GeneralPathX;
32
import org.gvsig.fmap.geom.primitive.Point;
33

    
34

    
35
/**
36
 * @author fdiaz
37
 *
38
 */
39
public class MultiPoint2D extends AbstractMultiPoint {
40

    
41
    /**
42
     *
43
     */
44
    private static final long serialVersionUID = -2230359991187613190L;
45

    
46
    /**
47
     * @param subtype
48
     */
49
    public MultiPoint2D() {
50
        super(Geometry.SUBTYPES.GEOM2D);
51
    }
52

    
53
    /* (non-Javadoc)
54
     * @see org.gvsig.fmap.geom.aggregate.Aggregate#union()
55
     */
56
    public Geometry union() throws GeometryOperationException, GeometryOperationNotSupportedException {
57
        // TODO Auto-generated method stub
58
        return null;
59
    }
60

    
61
    /* (non-Javadoc)
62
     * @see org.gvsig.fmap.geom.aggregate.Aggregate#intersection()
63
     */
64
    public Geometry intersection() throws GeometryOperationException, GeometryOperationNotSupportedException {
65
        // TODO Auto-generated method stub
66
        return null;
67
    }
68

    
69
    /* (non-Javadoc)
70
     * @see org.gvsig.fmap.geom.Geometry#cloneGeometry()
71
     */
72
    public Geometry cloneGeometry() {
73
        MultiPoint2D clone = new MultiPoint2D();
74
        for (Iterator iterator = primitives.iterator(); iterator.hasNext();) {
75
            Point point = (Point)iterator.next();
76
            Point clonePoint = (Point)(point.cloneGeometry());
77
            clone.addPoint(clonePoint);
78
        }
79
        return clone;
80
    }
81

    
82
    /* (non-Javadoc)
83
     * @see org.gvsig.fmap.geom.Geometry#getDimension()
84
     */
85
    public int getDimension() {
86
        return 2;
87
    }
88

    
89
    /*
90
     * (non-Javadoc)
91
     *
92
     * @see org.gvsig.fmap.geom.Geometry#getGeneralPath()
93
     */
94
    public GeneralPathX getGeneralPath() {
95
        return new DefaultGeneralPathX(new PointIterator(null), false, 0);
96
    }
97

    
98
}