Revision 47432 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/curve/line/Line2DM.java
Line2DM.java | ||
---|---|---|
23 | 23 |
package org.gvsig.fmap.geom.jts.primitive.curve.line; |
24 | 24 |
|
25 | 25 |
import com.vividsolutions.jts.geom.Coordinate; |
26 |
import com.vividsolutions.jts.geom.CoordinateSequence; |
|
26 | 27 |
import com.vividsolutions.jts.operation.buffer.BufferParameters; |
27 | 28 |
import org.gvsig.fmap.geom.Geometry; |
29 |
import org.gvsig.fmap.geom.jts.util.ArrayListCoordinateSequence; |
|
28 | 30 |
import org.gvsig.fmap.geom.jts.util.JTSUtils; |
29 | 31 |
import org.gvsig.fmap.geom.jts.util.OpenJUMPUtils; |
30 | 32 |
import org.gvsig.fmap.geom.operation.GeometryOperationException; |
... | ... | |
58 | 60 |
super(Geometry.TYPES.LINE, coordinates); |
59 | 61 |
} |
60 | 62 |
|
63 |
public Line2DM(ArrayListCoordinateSequence coordinates) { |
|
64 |
super(Geometry.TYPES.LINE, coordinates); |
|
65 |
} |
|
61 | 66 |
|
67 |
|
|
62 | 68 |
/* (non-Javadoc) |
63 | 69 |
* @see org.gvsig.fmap.geom.Geometry#cloneGeometry() |
64 | 70 |
*/ |
... | ... | |
117 | 123 |
return false; |
118 | 124 |
} |
119 | 125 |
for(int i=0; i < this.getNumVertices(); i++){ |
120 |
if(other.coordinates.get(i).getOrdinate(2)!=this.coordinates.get(i).getOrdinate(2)){
|
|
121 |
return false; |
|
122 |
}; |
|
126 |
if(other.coordinates.get(i).getOrdinate(CoordinateSequence.M)!=this.coordinates.get(i).getOrdinate(CoordinateSequence.M)){
|
|
127 |
return false;
|
|
128 |
};
|
|
123 | 129 |
} |
124 | 130 |
return true; |
125 | 131 |
} else { |
126 | 132 |
return false; |
127 | 133 |
} |
128 | 134 |
} |
135 |
|
|
136 |
@Override |
|
137 |
public Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
138 |
Geometry c = this.cloneGeometry(); |
|
139 |
return c; |
|
140 |
} |
|
141 |
|
|
142 |
|
|
129 | 143 |
} |
Also available in: Unified diff