public class Geometry extends Object
See the Open Geospatial Consortium Simple Features Access specification for details on the Well-Known-Binary format http://www.opengeospatial.org/standards/sfa
WKB has to be forwards-compatible to the spec, so strict OGC WKB, and EWKB (PostGIS) are both ok.
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGICAL_NAME |
static String |
SRID_FIELD |
static String |
WKB_FIELD |
| Constructor and Description |
|---|
Geometry() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.connect.data.SchemaBuilder |
builder()
Returns a
SchemaBuilder for a Geometry field. |
static org.apache.kafka.connect.data.Struct |
createValue(org.apache.kafka.connect.data.Schema geomSchema,
byte[] wkb,
Integer srid)
Create a value for this schema using WKB and SRID
|
static org.apache.kafka.connect.data.Schema |
schema()
Returns a
SchemaBuilder for a Geometry field, with all other default Schema settings. |
public static final String LOGICAL_NAME
public static final String WKB_FIELD
public static final String SRID_FIELD
public static org.apache.kafka.connect.data.SchemaBuilder builder()
SchemaBuilder for a Geometry field. You can use the resulting SchemaBuilder
to set additional schema settings such as required/optional, default value, and documentation.public static org.apache.kafka.connect.data.Schema schema()
SchemaBuilder for a Geometry field, with all other default Schema settings.builder()public static org.apache.kafka.connect.data.Struct createValue(org.apache.kafka.connect.data.Schema geomSchema,
byte[] wkb,
Integer srid)
geomSchema - a Schema instance which represents a geometry; may not be nullwkb - OGC Well-Known Binary representation of the geometry; may not be nullsrid - the coordinate reference system identifier; may be null if unset/unknownStruct which represents a Connect value for this schema; never nullCopyright © 2019 JBoss by Red Hat. All rights reserved.