Documentation
¶
Index ¶
- Constants
- func DeserializeLinestring(buf []byte, srid uint32) (l sql.Linestring)
- func DeserializePoint(buf []byte, srid uint32) (p sql.Point)
- func DeserializePolygon(srid uint32, buf []byte) (p sql.Polygon)
- func ParseEWKBHeader(buf []byte) (srid uint32, bigEndian bool, typ uint32)
- func ParseEWKBPoint(buf []byte) (x, y float64)
- func SerializeLinestring(l sql.Linestring) (buf []byte)
- func SerializePoint(p sql.Point) (buf []byte)
- func SerializePolygon(p sql.Polygon) (buf []byte)
- func WriteEWKBHeader(buf []byte, srid, typ uint32)
- func WriteEWKBPointData(buf []byte, x, y float64)
Constants ¶
View Source
const ( SRIDSize = 4 EndianSize = 1 TypeSize = 4 EWKBHeaderSize = SRIDSize + EndianSize + TypeSize PointSize = 16 CountSize = 4 )
View Source
const ( PointType = 1 LinestringType = 2 PolygonType = 3 )
Variables ¶
This section is empty.
Functions ¶
func DeserializeLinestring ¶
func DeserializeLinestring(buf []byte, srid uint32) (l sql.Linestring)
func ParseEWKBHeader ¶
ParseEWKBHeader converts the header potion of a EWKB byte array to srid, endianness, and geometry type
func ParseEWKBPoint ¶
func SerializeLinestring ¶
func SerializeLinestring(l sql.Linestring) (buf []byte)
func SerializePoint ¶
func SerializePolygon ¶
func WriteEWKBHeader ¶
func WriteEWKBPointData ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.