public class MySqlGeometry extends Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
wkb |
| Modifier | Constructor and Description |
|---|---|
private |
MySqlGeometry(byte[] wkb)
Create a MySqlGeometry using the supplied wkb, note this should be the cleaned wkb for MySQL
|
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
convertToWkb(byte[] source)
Since MySQL prepends 4 bytes as type prefix, we remove those bytes in order to have a valid WKB
representation
|
static MySqlGeometry |
fromBytes(byte[] mysqlBytes)
Create a MySqlGeometry from the original byte array from MySQL binlog event
|
mil.nga.wkb.geom.Point |
getPoint()
It returns a Point coordinate according to OpenGIS based on the WKB
|
byte[] |
getWkb()
Returns the standard well-known binary representation of the MySQL byte
|
private MySqlGeometry(byte[] wkb)
wkb - the Well-Known binary representation of the coordinate in the standard formatpublic static MySqlGeometry fromBytes(byte[] mysqlBytes)
mysqlBytes - he original byte array from MySQL binlog eventMySqlGeometry which represents a MySqlGeometry APIpublic byte[] getWkb()
byte[] which represents the standard well-known binarypublic mil.nga.wkb.geom.Point getPoint()
Point point coordinateprivate static byte[] convertToWkb(byte[] source)
source - the original byte array from MySQL binlog eventbyte[] which represents the standard well-known binaryCopyright © 2017 JBoss by Red Hat. All rights reserved.