Revision 42464 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/surface/filledspline/FilledSpline3DM.java
FilledSpline3DM.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
import com.vividsolutions.jts.geom.Coordinate; |
26 | 26 |
|
27 |
import org.cresques.cts.ICoordTrans; |
|
28 |
|
|
27 | 29 |
import org.gvsig.fmap.geom.Geometry; |
28 | 30 |
import org.gvsig.fmap.geom.jts.primitive.curve.spline.BaseSpline3DM; |
29 | 31 |
import org.gvsig.fmap.geom.jts.util.JTSUtils; |
... | ... | |
154 | 156 |
public Geometry offset(double distance) throws GeometryOperationNotSupportedException, GeometryOperationException { |
155 | 157 |
return JTSUtils.createGeometry(getJTS().buffer(distance)); |
156 | 158 |
} |
159 |
|
|
160 |
/* (non-Javadoc) |
|
161 |
* @see org.gvsig.fmap.geom.jts.primitive.curve.spline.AbstractSpline#reProject(org.cresques.cts.ICoordTrans) |
|
162 |
*/ |
|
163 |
@Override |
|
164 |
public void reProject(ICoordTrans ct) { |
|
165 |
super.reProject(ct); |
|
166 |
if (coordinates.size()>=2 && !isClosed()) { |
|
167 |
closePrimitive(); |
|
168 |
} |
|
169 |
} |
|
157 | 170 |
} |
Also available in: Unified diff