Revision 29798 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/operation/towkt/ToWKT.java
ToWKT.java | ||
---|---|---|
9 | 9 |
import com.vividsolutions.jts.io.WKTWriter; |
10 | 10 |
|
11 | 11 |
public class ToWKT extends GeometryOperation { |
12 |
|
|
12 |
public static final String NAME = "toWKT"; |
|
13 |
public static final int CODE = GeometryLocator.getGeometryManager(). |
|
14 |
getGeometryOperationCode(NAME); |
|
15 |
|
|
13 | 16 |
private static WKTWriter writer = new WKTWriter(); |
14 | 17 |
|
15 |
public static final int CODE = GeometryLocator.getGeometryManager() |
|
16 |
.registerGeometryOperation("toWKT", new ToWKT()); |
|
17 |
|
|
18 | 18 |
public Object invoke(Geometry geom, GeometryOperationContext ctx) { |
19 | 19 |
return writer.write(Converter.geometryToJts(geom)); |
20 | 20 |
} |
Also available in: Unified diff