Documentation ¶
Index ¶
- func AppendAll(b ...[]byte) []byte
- func BoundingBox_GeometryCollection(gs []*geojson.Geometry) []float64
- func BoundingBox_LineStringGeometry(line [][]float64) []float64
- func BoundingBox_MultiLineStringGeometry(multiline [][][]float64) []float64
- func BoundingBox_MultiPointGeometry(pts [][]float64) []float64
- func BoundingBox_MultiPolygonGeometry(multipolygon [][][][]float64) []float64
- func BoundingBox_PointGeometry(pt []float64) []float64
- func BoundingBox_Points(pts [][]float64) []float64
- func BoundingBox_PolygonGeometry(polygon [][][]float64) []float64
- func ConvertPt(pt []float64) []int64
- func EncodeVarint32(x uint32) []byte
- func EncodeVarint_Value(x uint64, typeint int) []byte
- func Expand_BoundingBoxs(bboxs [][]float64) []float64
- func FloatVal32(f float32) []byte
- func FloatVal64(f float64) []byte
- func Get_BoundingBox(g *geojson.Geometry) []float64
- func MakeKeyValue(key string, value interface{}) []byte
- func MakeLine(line [][]float64) ([]byte, []int64)
- func MakeLine2(line [][]float64) ([]uint64, []int64)
- func MakeMultiPolygon(multipolygon [][][][]float64) ([]byte, []int64)
- func MakePoint(pt []float64) []byte
- func MakePolygon(polygon [][][]float64) ([]byte, []int64)
- func MakePolygon2(polygon [][][]float64) ([]uint64, []int64)
- func Push_Two_BoundingBoxs(bb1 []float64, bb2 []float64) []float64
- func ReadBB(bytevals []byte) []float64
- func ReadFeature(bytevals []byte) *geojson.Feature
- func WriteFeature(feat *geojson.Feature) []byte
- func WritePackedUint64(geom []uint64) []byte
- func WritePackedUint64_2(geom []uint64) []byte
- func WriteValue(value interface{}) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoundingBox_GeometryCollection ¶
func BoundingBox_GeometryCollection(gs []*geojson.Geometry) []float64
Returns a BoundingBox for a geometry collection
func BoundingBox_LineStringGeometry ¶
Returns BoundingBox for a LineString
func BoundingBox_MultiLineStringGeometry ¶
Returns BoundingBox for a MultiLineString
func BoundingBox_MultiPointGeometry ¶
Returns BoundingBox for a MultiPoint
func BoundingBox_MultiPolygonGeometry ¶
Returns BoundingBox for a Polygon
func BoundingBox_PointGeometry ¶
boudning box on a normal point geometry relatively useless
func BoundingBox_Points ¶
BoundingBox implementation as per https://tools.ietf.org/html/rfc7946 BoundingBox syntax: "bbox": [west, south, east, north] BoundingBox defaults "bbox": [-180.0, -90.0, 180.0, 90.0]
func BoundingBox_PolygonGeometry ¶
Returns BoundingBox for a Polygon
func EncodeVarint_Value ¶
encodes are var int value
func Expand_BoundingBoxs ¶
this functions takes an array of bounding box objects and pushses them all out
func Get_BoundingBox ¶
func Get_BoundingBox(g *geojson.Geometry) []float64
retrieves a boundingbox for a given geometry
func MakeKeyValue ¶
func MakeMultiPolygon ¶
creates a multi polygon array
func Push_Two_BoundingBoxs ¶
func WritePackedUint64 ¶
writes a packed uint32 number this function was benchmarked against several implementations to reduce allocations, i found this one to be the best
func WritePackedUint64_2 ¶
writes a packed uint32 number this function was benchmarked against several implementations to reduce allocations, i found this one to be the best
func WriteValue ¶
func WriteValue(value interface{}) []byte
writes a value and returns the bytes of such value does not implement write sint currently
Types ¶
This section is empty.