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