Revision 28996

View differences:

branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/MultiCurve.java
1
package org.gvsig.fmap.geom.aggregate;
2

  
3
import org.gvsig.fmap.geom.primitive.Curve;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Geographic Information System of the Valencian Government
6 2
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
9 6
 * This program is free software; you can redistribute it and/or
10 7
 * modify it under the terms of the GNU General Public License
11 8
 * as published by the Free Software Foundation; either version 2
12 9
 * of the License, or (at your option) any later version.
13
 *
10
 * 
14 11
 * This program is distributed in the hope that it will be useful,
15 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 14
 * GNU General Public License for more details.
18
 *
15
 * 
19 16
 * You should have received a copy of the GNU General Public License
20 17
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
44 21
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id: MultiCurve.java,v 1.1 2008/03/12 08:46:20 cvs Exp $
48
 * $Log: MultiCurve.java,v $
49
 * Revision 1.1  2008/03/12 08:46:20  cvs
50
 * *** empty log message ***
51
 *
52
 *
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
53 26
 */
27

  
28
package org.gvsig.fmap.geom.aggregate;
29

  
30
import org.gvsig.fmap.geom.primitive.Curve;
31
import org.gvsig.fmap.geom.primitive.OrientableCurve;
32

  
54 33
/**
55
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
34
 * <p>
35
 * This interface is equivalent to the GM_Curve specified in 
36
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
37
 * MultiCurve is an aggregate class containing only instances of {@link OrientableCurve}.  
38
 * The association role "element" shall be the set of {@link OrientableCurve}'s contained in 
39
 * this MultiCurve.
40
 * </p>
41
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
42
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
56 43
 */
57 44
public interface MultiCurve extends Aggregate{
58
	//public final static int CODE = TYPES.MULTICURVE;
59 45
	
46
	/**
47
	 * Adds a new curve to the  multi curve
48
	 * @param curve
49
	 * The curve to add
50
	 */
60 51
	void addCurve(Curve curve);
52
	
53
	/**
54
	 * Gets the curve that is on a concrete position
55
	 * inside the multi curve 
56
	 * @param index
57
	 * The position
58
	 * @return
59
	 * The selected curve
60
	 */
61
	Curve getCurveAt(int index);
61 62
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/BaseMultiPrimitive.java
223 223
		return null;
224 224
	}
225 225

  
226
	public int getShapeType() {
227
		return FShape.MULTI;
228
	}
229

  
230 226
	public Handler[] getHandlers(int type) {
231 227
		int numPrimitives = getPrimitivesNumber();
232 228
		Handler[] handlers = new Handler[numPrimitives];
......
425 421
		return null;
426 422
	}
427 423

  
428
	public int getType() {
429
		return CODE;
430
	}
431

  
432 424
	public GeneralPathX getGeneralPath() {
433 425
		// TODO Auto-generated method stub
434 426
		return null;
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/BaseMultiPrimitive2D.java
93 93
	public GeometryType getGeometryType() {
94 94
		return geomType;
95 95
	}
96

  
97
	/* (non-Javadoc)
98
	 * @see org.gvsig.fmap.geom.Geometry#getType()
99
	 */
100
	public int getType() {
101
		return geomType.getType();
102
	}
96 103
}
97 104

  
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/MultiPoint2DZ.java
118 118
	public double[] getZs() {
119 119
		return z;
120 120
	}
121

  
122
	/**
123
	 * @see org.gvsig.fmap.geom.Geometry#getShapeType()
124
	 */
125
	public int getShapeType() {
126
		return FShape.MULTIPOINT | FShape.Z;
127
	}
128
	
129 121
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/MultiCurve2D.java
3 3
import org.cresques.cts.IProjection;
4 4
import org.gvsig.fmap.geom.Geometry;
5 5
import org.gvsig.fmap.geom.GeometryLocator;
6
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
7 6
import org.gvsig.fmap.geom.aggregate.MultiCurve;
8 7
import org.gvsig.fmap.geom.primitive.Curve;
9
import org.gvsig.fmap.geom.primitive.FShape;
10 8
import org.gvsig.fmap.geom.primitive.impl.Curve2D;
11 9
import org.gvsig.fmap.geom.type.GeometryType;
12 10

  
......
103 101
		return auxCurve;
104 102
	}
105 103

  
106
	/*
107
	 * (non-Javadoc)
108
	 * 
109
	 * @see com.iver.cit.gvsig.fmap.core.FGeometryCollection#getGeometryType()
110
	 */
111
	public int getShapeType() {
112
		return FShape.MULTIPOLYLINE;
113
	}
114

  
115 104
	/* (non-Javadoc)
116 105
	 * @see org.gvsig.fmap.geom.primitive.AbstractPrimitive#getGeometryType()
117 106
	 */
......
132 121
	public void addCurve(Curve curve) {
133 122
		addPrimitive(curve);		
134 123
	}
124

  
125
	/* (non-Javadoc)
126
	 * @see org.gvsig.fmap.geom.aggregate.MultiCurve#getCurveAt(int)
127
	 */
128
	public Curve getCurveAt(int index) {
129
		return (Curve)getPrimitiveAt(index);
130
	}
135 131
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/MultiSolid2DZ.java
2 2

  
3 3
import org.cresques.cts.IProjection;
4 4
import org.gvsig.fmap.geom.GeometryLocator;
5
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
6 5
import org.gvsig.fmap.geom.aggregate.MultiSolid;
7 6
import org.gvsig.fmap.geom.primitive.Solid;
8 7
import org.gvsig.fmap.geom.primitive.impl.Solid2DZ;
......
68 67
	private static final long serialVersionUID = 1L;
69 68

  
70 69
	private static GeometryType geomType = GeometryLocator.getGeometryManager()
71
			.registerGeometryType(MultiSolid2DZ.class, null, MultiSolid.CODE, SUBTYPES.GEOM2DZ);
70
			.registerGeometryType(MultiSolid2DZ.class, TYPES.MULTISOLID, SUBTYPES.GEOM2DZ);
72 71
	public static int CODE = geomType.getId();
73 72

  
74 73
	/**
......
118 117
		addPrimitive(solid);		
119 118
	}
120 119

  
120
	/* (non-Javadoc)
121
	 * @see org.gvsig.fmap.geom.aggregate.MultiSolid#getSolidAt(int)
122
	 */
123
	public Solid getSolidAt(int index) {
124
		return (Solid)getPrimitiveAt(index);
125
	}
126

  
121 127
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/MultiSurface2D.java
104 104
		return auxSurface;
105 105
	}
106 106

  
107
	/*
108
	 * (non-Javadoc)
109
	 * 
110
	 * @see com.iver.cit.gvsig.fmap.core.FGeometryCollection#getGeometryType()
111
	 */
112
	public int getShapeType() {
113
		return FShape.MULTIPOLYGON;
114
	}
115

  
116 107
	/* (non-Javadoc)
117 108
	 * @see org.gvsig.fmap.geom.primitive.AbstractPrimitive#getGeometryType()
118 109
	 */
......
134 125
		addPrimitive(surface);		
135 126
	}
136 127

  
128
	/* (non-Javadoc)
129
	 * @see org.gvsig.fmap.geom.aggregate.MultiSurface#getSurfaceAt(int)
130
	 */
131
	public Surface getSurfaceAt(int index) {
132
		return (Surface)getPrimitiveAt(index);
133
	}
134

  
137 135
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/MultiPoint2D.java
177 177
	/*
178 178
	 * (non-Javadoc)
179 179
	 *
180
	 * @see com.iver.cit.gvsig.fmap.core.FShape#getShapeType()
181
	 */
182
	public int getShapeType() {
183
		return FShape.MULTIPOINT;
184
	}
185

  
186
	/*
187
	 * (non-Javadoc)
188
	 *
189 180
	 * @see com.iver.cit.gvsig.fmap.core.FShape#cloneFShape()
190 181
	 */
191 182
	public FShape cloneFShape() {
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/MultiPrimitive.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
26
 */
27

  
1 28
package org.gvsig.fmap.geom.aggregate;
2 29

  
3 30
import org.gvsig.fmap.geom.primitive.Primitive;
......
2 29

  
30
/**
31
 * <p>
32
 * This interface is equivalent to the GM_MultiPrimitive specified in 
33
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
34
 * MultiPrimitive is the root class for all primitive aggregates. 
35
 * The association role "element" shall be the set of {@link Primitive}'s contained 
36
 * in this MultiPrimitive.
37
 * </p>
38
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
39
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
40
 */
3 41
public interface MultiPrimitive extends Aggregate {
4 42

  
43
	/**
44
	 * Adds a new primitive to the primitive
45
	 * @param primitive
46
	 * The primitive to add
47
	 */
5 48
	void addPrimitive(Primitive primitive);
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/MultiSurface.java
1
package org.gvsig.fmap.geom.aggregate;
2

  
3
import org.gvsig.fmap.geom.primitive.Surface;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Geographic Information System of the Valencian Government
6 2
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
9 6
 * This program is free software; you can redistribute it and/or
10 7
 * modify it under the terms of the GNU General Public License
11 8
 * as published by the Free Software Foundation; either version 2
12 9
 * of the License, or (at your option) any later version.
13
 *
10
 * 
14 11
 * This program is distributed in the hope that it will be useful,
15 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 14
 * GNU General Public License for more details.
18
 *
15
 * 
19 16
 * You should have received a copy of the GNU General Public License
20 17
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
44 21
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id: MultiSurface.java,v 1.1 2008/03/12 08:46:20 cvs Exp $
48
 * $Log: MultiSurface.java,v $
49
 * Revision 1.1  2008/03/12 08:46:20  cvs
50
 * *** empty log message ***
51
 *
52
 *
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
53 26
 */
27

  
28
package org.gvsig.fmap.geom.aggregate;
29

  
30
import org.gvsig.fmap.geom.primitive.OrientableSurface;
31
import org.gvsig.fmap.geom.primitive.Surface;
32

  
54 33
/**
55
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
34
 * <p>
35
 * This interface is equivalent to the GM_MultiSurface specified in 
36
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
37
 * MultiSurface is an aggregate class containing only instances of {@link OrientableSurface}. 
38
 * The association role "element" shall be the set of {@link OrientableSurface}'s 
39
 * contained in this GMultiSurface.
40
 * </p>
41
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
42
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
56 43
 */
57 44
public interface MultiSurface extends Aggregate{
58
	//public final static int CODE = TYPES.MULTISURFACE;
59 45
	
46
	/**
47
	 * Adds a new surface to the  multi surface
48
	 * @param surface
49
	 * The surface to add
50
	 */
60 51
	void addSurface(Surface surface);
52
	
53
	/**
54
	 * Gets the surface that is on a concrete position
55
	 * inside the multi surface 
56
	 * @param index
57
	 * The position
58
	 * @return
59
	 * The selected surface
60
	 */
61
	Surface getSurfaceAt(int index);
61 62
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/MultiPoint.java
1
package org.gvsig.fmap.geom.aggregate;
2

  
3
import org.gvsig.fmap.geom.primitive.Point;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Geographic Information System of the Valencian Government
6 2
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
9 6
 * This program is free software; you can redistribute it and/or
10 7
 * modify it under the terms of the GNU General Public License
11 8
 * as published by the Free Software Foundation; either version 2
12 9
 * of the License, or (at your option) any later version.
13
 *
10
 * 
14 11
 * This program is distributed in the hope that it will be useful,
15 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 14
 * GNU General Public License for more details.
18
 *
15
 * 
19 16
 * You should have received a copy of the GNU General Public License
20 17
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
44 21
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id: MultiPoint.java,v 1.1 2008/03/12 08:46:20 cvs Exp $
48
 * $Log: MultiPoint.java,v $
49
 * Revision 1.1  2008/03/12 08:46:20  cvs
50
 * *** empty log message ***
51
 *
52
 *
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
53 26
 */
27

  
28
package org.gvsig.fmap.geom.aggregate;
29

  
30
import org.gvsig.fmap.geom.primitive.Point;
31

  
54 32
/**
55
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
33
 * <p>
34
 * This interface is equivalent to the GM_MultiPoint specified in 
35
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
36
 * MultiPoint is an aggregate class containing only points. 
37
 * The association role "element" shall be the set of {@link Point}'s contained in 
38
 * this MultiPoint.
39
 * </p>
40
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
41
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
56 42
 */
57 43
public interface MultiPoint extends Aggregate {
58 44
	
45
	/**
46
	 * Adds a new point to the multipoint
47
	 * @param point
48
	 * The point to add
49
	 */
59 50
	void addPoint(Point point);
60 51
	
52
	/**
53
	 * Gets the point that is on a concrete position
54
	 * inside the multi point 
55
	 * @param index
56
	 * The position
57
	 * @return
58
	 * The selected point
59
	 */
61 60
	Point getPointAt(int index);
62 61
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/MultiSolid.java
1
package org.gvsig.fmap.geom.aggregate;
2

  
3
import org.gvsig.fmap.geom.primitive.Solid;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Geographic Information System of the Valencian Government
6 2
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
9 6
 * This program is free software; you can redistribute it and/or
10 7
 * modify it under the terms of the GNU General Public License
11 8
 * as published by the Free Software Foundation; either version 2
12 9
 * of the License, or (at your option) any later version.
13
 *
10
 * 
14 11
 * This program is distributed in the hope that it will be useful,
15 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 14
 * GNU General Public License for more details.
18
 *
15
 * 
19 16
 * You should have received a copy of the GNU General Public License
20 17
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
44 21
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id: MultiSolid.java,v 1.1 2008/03/12 08:46:20 cvs Exp $
48
 * $Log: MultiSolid.java,v $
49
 * Revision 1.1  2008/03/12 08:46:20  cvs
50
 * *** empty log message ***
51
 *
52
 *
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
53 26
 */
27

  
28
package org.gvsig.fmap.geom.aggregate;
29

  
30
import org.gvsig.fmap.geom.primitive.Solid;
31

  
54 32
/**
55
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
33
 * <p>
34
 * This interface is equivalent to the GM_MultiSolid specified in 
35
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
36
 * MultiSolid is an aggregate class containing only solids. The association role "element" 
37
 * shall be the set of {@link Solid}'s contained in this MultiSolid.
38
 * </p>
39
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
40
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
56 41
 */
57 42
public interface MultiSolid extends Aggregate{
58
	//public final static int CODE = TYPES.MULTISOLID;
59 43
	
44
	/**
45
	 * Adds a new solid to the  multi solid
46
	 * @param solid
47
	 * The solid to add
48
	 */
60 49
	void addSolid(Solid solid);
50
	
51
	/**
52
	 * Gets the solid that is on a concrete position
53
	 * inside the multi solid 
54
	 * @param index
55
	 * The position
56
	 * @return
57
	 * The selected solid
58
	 */
59
	Solid getSolidAt(int index);
61 60
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/Aggregate.java
1
package org.gvsig.fmap.geom.aggregate;
2

  
3
import org.gvsig.fmap.geom.Geometry;
4
import org.gvsig.fmap.geom.primitive.Primitive;
5

  
6
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Geographic Information System of the Valencian Government
7 2
 *
8
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
9
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
10 6
 * This program is free software; you can redistribute it and/or
11 7
 * modify it under the terms of the GNU General Public License
12 8
 * as published by the Free Software Foundation; either version 2
13 9
 * of the License, or (at your option) any later version.
14
 *
10
 * 
15 11
 * This program is distributed in the hope that it will be useful,
16 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 14
 * GNU General Public License for more details.
19
 *
15
 * 
20 16
 * You should have received a copy of the GNU General Public License
21 17
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
23
 *
24
 * For more information, contact:
25
 *
26
 *  Generalitat Valenciana
27
 *   Conselleria d'Infraestructures i Transport
28
 *   Av. Blasco Ib??ez, 50
29
 *   46010 VALENCIA
30
 *   SPAIN
31
 *
32
 *      +34 963862235
33
 *   gvsig@gva.es
34
 *      www.gvsig.gva.es
35
 *
36
 *    or
37
 *
38
 *   IVER T.I. S.A
39
 *   Salamanca 50
40
 *   46005 Valencia
41
 *   Spain
42
 *
43
 *   +34 963163400
44
 *   dac@iver.es
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
45 21
 */
46
/* CVS MESSAGES:
47
 *
48
 * $Id: MultiGeometry.java,v 1.1 2008/03/12 08:46:20 cvs Exp $
49
 * $Log: MultiGeometry.java,v $
50
 * Revision 1.1  2008/03/12 08:46:20  cvs
51
 * *** empty log message ***
52
 *
53
 *
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
54 26
 */
27

  
28
package org.gvsig.fmap.geom.aggregate;
29

  
30
import org.gvsig.fmap.geom.Geometry;
31
import org.gvsig.fmap.geom.primitive.Primitive;
32

  
55 33
/**
56
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
34
 * <p>
35
 * This interface is equivalent to the GM_Aggregate specified in 
36
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
37
 * The aggregates gather geometric objects. Since they will often use orientation 
38
 * modification, the curve reference and surface references do not go directly to 
39
 * the {@link Curve} and {@link Surface}, but are directed to {@link OrientableCurve} 
40
 * and {@link OrientableSurface}.
41
 * </p>
42
 * <p>
43
 * Most geometric objects are contained in features, and cannot be held in 
44
 * collections that are strong aggregations. For this reason, the collections 
45
 * described on this package are all weak aggregations, and shall use 
46
 * references to include geometric objects. 
47
 * </p> 
48
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
49
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
57 50
 */
58
public interface Aggregate extends Geometry{
59
	public final static int CODE = TYPES.AGGREGATE;
51
public interface Aggregate extends Geometry{	
60 52
	
61 53
	/**
62 54
	 * @return the number of GM_Primitives that composes
63
	 * this multi geometry
55
	 * this multi geometry.
64 56
	 */
65 57
	public int getPrimitivesNumber();
66 58
			
67 59
	/**
68
	 * Returns one of the GM_Primitive's that is in
69
	 * a concrete position 
60
	 * Returns one of the Primitive's that is in
61
	 * a concrete position.
70 62
	 * @param i
71
	 * Geometry position
63
	 * Geometry position.
72 64
	 * @return
73
	 * A simple geometry
65
	 * A simple geometry.
74 66
	 */
75 67
	public Primitive getPrimitiveAt(int i);
76 68
	
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/complex/Composite.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

  
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
28
package org.gvsig.fmap.geom.complex;
29
/**
30
 * <p>
31
 * This interface is equivalent to the GM_Composite specified in 
32
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
33
 * A geometric composite shall be a geometric complex with an underlying core 
34
 * geometry that is isomorphic to a primitive. Thus, a composite curve is 
35
 * a collection of curves whose geometry interface could be satisfied 
36
 * by a single curve (albeit a much more complex one). 
37
 * </p>
38
 * <p>
39
 * Composites are intended for use as attribute values in datasets in 
40
 * which the underlying geometry has been decomposed, usually to expose its topological nature.
41
 * </p>
42
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
43
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
44
 */
45
public interface Composite extends Complex {
46

  
47
}
48

  
0 49

  
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/complex/Complex.java
1
package org.gvsig.fmap.geom.complex;
2

  
3
import org.gvsig.fmap.geom.Geometry;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
1
/* gvSIG. Geographic Information System of the Valencian Government
6 2
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
9 6
 * This program is free software; you can redistribute it and/or
10 7
 * modify it under the terms of the GNU General Public License
11 8
 * as published by the Free Software Foundation; either version 2
12 9
 * of the License, or (at your option) any later version.
13
 *
10
 * 
14 11
 * This program is distributed in the hope that it will be useful,
15 12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 14
 * GNU General Public License for more details.
18
 *
15
 * 
19 16
 * You should have received a copy of the GNU General Public License
20 17
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
44 21
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id: GeometricComplex.java,v 1.1 2008/03/12 08:46:21 cvs Exp $
48
 * $Log: GeometricComplex.java,v $
49
 * Revision 1.1  2008/03/12 08:46:21  cvs
50
 * *** empty log message ***
51
 *
52
 *
22

  
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
53 26
 */
27

  
28
package org.gvsig.fmap.geom.complex;
29

  
30
import org.gvsig.fmap.geom.Geometry;
31

  
54 32
/**
55
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
33
 * <p>
34
 * This interface is equivalent to the GM_Complex specified in 
35
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
36
 * A Complex is a collection of geometrically disjoint, simple {@link Primitive}'s. 
37
 * If a {@link Primitive} (other than a {@link Point}) is in a particular Complex, 
38
 * then there exists a set of primitives of lower dimension in the same complex 
39
 * that form the boundary of this primitive.
40
 * </p>
41
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
42
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
56 43
 */
57 44
public interface Complex extends Geometry {
58 45

  
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/complex/CompositeCurve.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

  
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
1 28
package org.gvsig.fmap.geom.complex;
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
 *
4
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 *  Generalitat Valenciana
23
 *   Conselleria d'Infraestructures i Transport
24
 *   Av. Blasco Ib??ez, 50
25
 *   46010 VALENCIA
26
 *   SPAIN
27
 *
28
 *      +34 963862235
29
 *   gvsig@gva.es
30
 *      www.gvsig.gva.es
31
 *
32
 *    or
33
 *
34
 *   IVER T.I. S.A
35
 *   Salamanca 50
36
 *   46005 Valencia
37
 *   Spain
38
 *
39
 *   +34 963163400
40
 *   dac@iver.es
41
 */
42
/* CVS MESSAGES:
43
 *
44
 * $Id: CompositeCurve.java,v 1.1 2008/03/12 08:46:21 cvs Exp $
45
 * $Log: CompositeCurve.java,v $
46
 * Revision 1.1  2008/03/12 08:46:21  cvs
47
 * *** empty log message ***
48
 *
49
 *
50
 */
51 29
/**
52
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
30
 * <p>
31
 * This interface is equivalent to the GM_CompositeCurve specified in 
32
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
33
 * A composite curve shall be a {@link Composite} with all the geometric 
34
 * properties of a curve. These properties are instantiated in the operation "curve". 
35
 * Essentially, a composite curve is a list of orientable curves ({@link OrientableCurve}) 
36
 * agreeing in orientation in a manner such that each curve (except the first) begins 
37
 * where the previous one ends.
38
 * </p>
39
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
40
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
53 41
 */
54
public interface CompositeCurve extends Complex{
42
public interface CompositeCurve extends Composite{
55 43

  
56 44
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/complex/CompositeSurface.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

  
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
1 28
package org.gvsig.fmap.geom.complex;
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
 *
4
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 *  Generalitat Valenciana
23
 *   Conselleria d'Infraestructures i Transport
24
 *   Av. Blasco Ib??ez, 50
25
 *   46010 VALENCIA
26
 *   SPAIN
27
 *
28
 *      +34 963862235
29
 *   gvsig@gva.es
30
 *      www.gvsig.gva.es
31
 *
32
 *    or
33
 *
34
 *   IVER T.I. S.A
35
 *   Salamanca 50
36
 *   46005 Valencia
37
 *   Spain
38
 *
39
 *   +34 963163400
40
 *   dac@iver.es
41
 */
42
/* CVS MESSAGES:
43
 *
44
 * $Id: CompositeSurface.java,v 1.1 2008/03/12 08:46:21 cvs Exp $
45
 * $Log: CompositeSurface.java,v $
46
 * Revision 1.1  2008/03/12 08:46:21  cvs
47
 * *** empty log message ***
48
 *
49
 *
50
 */
51 29
/**
52
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
30
 * <p>
31
 * This interface is equivalent to the GM_CompositeSurface specified in 
32
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
33
 * A composite surface shall be a {@link Complex} with all the geometric properties 
34
 * of a surface, and thus can be considered as a type of orientable surface 
35
 * ({@link OrientableSurface}). Essentially, a composite surface is a collection 
36
 * of oriented surfaces that join in pairs on common boundary curves and which, 
37
 * when considered as a whole, form a single surface.
38
 * </p>
39
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
40
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
53 41
 */
54
public interface CompositeSurface extends Complex{
42
public interface CompositeSurface extends Composite{
55 43

  
56 44
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/complex/CompositePoint.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

  
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
28
package org.gvsig.fmap.geom.complex;
29
/**
30
 * <p>
31
 * This interface is equivalent to the GM_CompositePoint specified in 
32
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
33
 * A separate class for composite point is included for completeness. 
34
 * It is a {@link Complex} containing one and only one Point.
35
 * </p>
36
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
37
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
38
 */
39
public interface CompositePoint {
40

  
41
}
42

  
0 43

  
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/complex/CompositeSolid.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

  
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
1 28
package org.gvsig.fmap.geom.complex;
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
 *
4
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
 *
20
 * For more information, contact:
21
 *
22
 *  Generalitat Valenciana
23
 *   Conselleria d'Infraestructures i Transport
24
 *   Av. Blasco Ib??ez, 50
25
 *   46010 VALENCIA
26
 *   SPAIN
27
 *
28
 *      +34 963862235
29
 *   gvsig@gva.es
30
 *      www.gvsig.gva.es
31
 *
32
 *    or
33
 *
34
 *   IVER T.I. S.A
35
 *   Salamanca 50
36
 *   46005 Valencia
37
 *   Spain
38
 *
39
 *   +34 963163400
40
 *   dac@iver.es
41
 */
42
/* CVS MESSAGES:
43
 *
44
 * $Id: CompositeSolid.java,v 1.1 2008/03/12 08:46:21 cvs Exp $
45
 * $Log: CompositeSolid.java,v $
46
 * Revision 1.1  2008/03/12 08:46:21  cvs
47
 * *** empty log message ***
48
 *
49
 *
50
 */
51 29
/**
52
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
30
 * <p>
31
 * This interface is equivalent to the GM_CompositeSolid specified in 
32
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
33
 * A CompositeSolid shall be a {@link Complex} with all the geometric properties of a solid. 
34
 * Essentially, a composite solid is a set of solids that join in pairs on common 
35
 * boundary surfaces to form a single solid.
36
 * </p>
37
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
38
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
53 39
 */
54
public interface CompositeSolid extends Complex{
40
public interface CompositeSolid extends Composite{
55 41

  
56 42
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Arc2D.java
136 136
	 * @see org.gvsig.fmap.geom.primitive.impl.Curve2D#getShapeType()
137 137
	 */
138 138
	public int getShapeType() {
139
		return FShape.ARC;
139
		return TYPES.ARC;
140 140
	}
141 141
	
142 142
	/*
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/DefaultNullGeometry.java
207 207
	}
208 208

  
209 209
	public int getShapeType() {
210
		return FShape.NULL;
210
		return TYPES.NULL;
211 211
	}
212 212

  
213 213
	public Handler[] getStretchingHandlers() {
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/AbstractPrimitive.java
378 378
		}
379 379
		return true;
380 380
	}
381

  
382
	/* (non-Javadoc)
383
	 * @see org.gvsig.fmap.geom.primitive.FShape#getShapeType()
384
	 */
385
	public int getShapeType() {
386
		return getType();
387
	}
388
	
389
	
381 390
}
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Curve2DZ.java
101 101
	 * @see org.gvsig.fmap.geom.primitive.impl.Curve2D#getShapeType()
102 102
	 */
103 103
	public int getShapeType() {
104
		return FShape.LINE | FShape.Z;
104
		return TYPES.CURVE;
105 105
	}
106 106

  
107 107
	/*
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Surface2DZ.java
43 43
import org.cresques.cts.IProjection;
44 44
import org.gvsig.fmap.geom.GeometryLocator;
45 45
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
46
import org.gvsig.fmap.geom.Geometry.TYPES;
46 47
import org.gvsig.fmap.geom.primitive.FShape;
47 48
import org.gvsig.fmap.geom.primitive.GeneralPathX;
48 49
import org.gvsig.fmap.geom.primitive.Surface;
......
104 105
	 * @see org.gvsig.fmap.geom.primitive.impl.Surface2D#getShapeType()
105 106
	 */
106 107
	public int getShapeType() {
107
		return FShape.POLYGON | FShape.Z;
108
		return TYPES.SURFACE;
108 109
	}
109 110

  
110 111
	/* (non-Javadoc)
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Point2DZ.java
43 43
import org.cresques.cts.IProjection;
44 44
import org.gvsig.fmap.geom.GeometryLocator;
45 45
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
46
import org.gvsig.fmap.geom.Geometry.TYPES;
46 47
import org.gvsig.fmap.geom.primitive.FShape;
47 48
import org.gvsig.fmap.geom.primitive.Point;
48 49
import org.gvsig.fmap.geom.type.GeometryType;
......
89 90
	 * @see org.gvsig.fmap.geom.primitive.impl.Point2D#getShapeType()
90 91
	 */
91 92
	public int getShapeType() {
92
		return FShape.POINT | FShape.Z;
93
		return TYPES.POINT;
93 94
	}
94 95

  
95 96
	/*
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Curve2D.java
45 45

  
46 46
import org.cresques.cts.IProjection;
47 47
import org.gvsig.fmap.geom.GeometryLocator;
48
import org.gvsig.fmap.geom.Geometry.TYPES;
48 49
import org.gvsig.fmap.geom.primitive.Curve;
49 50
import org.gvsig.fmap.geom.primitive.FShape;
50 51
import org.gvsig.fmap.geom.primitive.GeneralPathX;
......
87 88
	 * @see org.gvsig.fmap.geom.Geometry#getShapeType()
88 89
	 */
89 90
	public int getShapeType() {
90
		return FShape.LINE;
91
		return TYPES.CURVE;
91 92
	}
92 93

  
93 94
	/*
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Surface2D.java
90 90
	 * @see org.gvsig.fmap.geom.Geometry#getShapeType()
91 91
	 */
92 92
	public int getShapeType() {
93
		return FShape.POLYGON;
93
		return TYPES.SURFACE;
94 94
	}
95 95

  
96 96
	/*
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Point2D.java
50 50
import org.cresques.cts.IProjection;
51 51
import org.gvsig.fmap.geom.DirectPosition;
52 52
import org.gvsig.fmap.geom.GeometryLocator;
53
import org.gvsig.fmap.geom.Geometry.TYPES;
53 54
import org.gvsig.fmap.geom.handler.AbstractHandler;
54 55
import org.gvsig.fmap.geom.handler.FinalHandler;
55 56
import org.gvsig.fmap.geom.handler.Handler;
......
248 249
	 * @see org.gvsig.fmap.geom.primitive.FShape#getShapeType()
249 250
	 */
250 251
	public int getShapeType() {
251
		return FShape.POINT;
252
		return TYPES.POINT;
252 253
	}
253 254

  
254 255
	/**
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Spline2D.java
131 131
	 * @see org.gvsig.fmap.geom.primitive.impl.Curve2D#getShapeType()
132 132
	 */
133 133
	 public int getShapeType() {
134
		 return FShape.LINE;
134
		 return TYPES.CURVE;
135 135
	 }
136 136

  
137 137
	 /* (non-Javadoc)
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/EllipticArc2D.java
174 174
	 * @see org.gvsig.fmap.geom.primitive.impl.Curve2D#getShapeType()
175 175
	 */
176 176
	public int getShapeType() {
177
		return FShape.ARC;
177
		return TYPES.ELLIPTICARC;
178 178
	}
179 179
	
180 180
	/*
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Ellipse2D.java
48 48

  
49 49
import org.cresques.cts.IProjection;
50 50
import org.gvsig.fmap.geom.GeometryLocator;
51
import org.gvsig.fmap.geom.Geometry.TYPES;
51 52
import org.gvsig.fmap.geom.handler.AbstractHandler;
52 53
import org.gvsig.fmap.geom.handler.CuadrantHandler;
53 54
import org.gvsig.fmap.geom.handler.Handler;
......
109 110
     * @see org.gvsig.fmap.geom.primitive.impl.Surface2D#getShapeType()
110 111
     */     
111 112
	public int getShapeType() {
112
		return FShape.ELLIPSE;
113
		return TYPES.ELLIPSE;
113 114
	}
114 115

  
115 116
	/*
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff