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