org.geolatte.geom.codec.db.db2.Db2ClobEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL
specification.
The newest version!
package org.geolatte.geom.codec.db.db2;
import org.geolatte.geom.Geometry;
import org.geolatte.geom.Position;
import org.geolatte.geom.codec.Wkt;
import org.geolatte.geom.codec.WktEncoder;
import org.geolatte.geom.codec.db.Encoder;
/**
* An {@code Encoder} for DB2 as used in Hibernate Spatial
*
* Note: this Encoder is to be used in combination with the DB2 EWKT transform group created by David Adler. See the
* Hibernate documentation for the DB2 Dialect.
*
*
* Created by Karel Maesen, Geovise BVBA on 04/06/17.
*/
public class Db2ClobEncoder implements Encoder {
@Override
public > String encode(G geom) {
WktEncoder encoder = Wkt.newEncoder(Wkt.Dialect.DB2_WKT);
return encoder.encode(geom);
}
@Override
public
boolean accepts(Geometry
geom) {
return false;
}
}