Revision 5878 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FMultiPoint2D.java
FMultiPoint2D.java | ||
---|---|---|
72 | 72 |
*/ |
73 | 73 |
public class FMultiPoint2D implements IGeometry { |
74 | 74 |
FPoint2D[] points = null; |
75 |
private int type=FShape.POINT; |
|
75 | 76 |
|
76 | 77 |
/** |
77 | 78 |
* Crea un nuevo MultiPoint2D. |
... | ... | |
118 | 119 |
theGeoms[i] = c; |
119 | 120 |
} |
120 | 121 |
MultiPoint geomCol = new GeometryFactory().createMultiPoint(theGeoms); |
121 |
|
|
122 |
|
|
122 |
|
|
123 |
|
|
123 | 124 |
return geomCol; |
124 | 125 |
} |
125 | 126 |
|
... | ... | |
164 | 165 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#getGeometryType() |
165 | 166 |
*/ |
166 | 167 |
public int getGeometryType() { |
167 |
return FShape.MULTIPOINT;
|
|
168 |
return type;
|
|
168 | 169 |
} |
169 | 170 |
|
170 | 171 |
/* (non-Javadoc) |
... | ... | |
200 | 201 |
{ |
201 | 202 |
aux[i] = (FPoint2D) points[i].cloneFShape(); |
202 | 203 |
} |
203 |
return new FMultiPoint2D(aux); |
|
204 |
IGeometry geom=new FMultiPoint2D(aux); |
|
205 |
//geom.setGeometryType(type); |
|
206 |
return geom; |
|
204 | 207 |
} |
205 | 208 |
|
206 | 209 |
/* (non-Javadoc) |
... | ... | |
372 | 375 |
public Shape getInternalShape() { |
373 | 376 |
return this; |
374 | 377 |
} |
378 |
public int getOriginalGeometryType() { |
|
379 |
return FShape.MULTIPOINT; |
|
380 |
} |
|
381 |
public void setGeometryType(int type) { |
|
382 |
this.type=type; |
|
383 |
} |
|
375 | 384 |
} |
Also available in: Unified diff