package
0.14.7
Repository: https://github.com/gabereiser/go-mysql-server.git
Documentation: pkg.go.dev

# Functions

EvalGeomFromWKB takes in arguments for the ST_FROMWKB functions, and parses them to their corresponding geometry type.
No description provided by the author
No description provided by the author
No description provided by the author
GeomCollToWKT converts a sql.Polygon to a string.
No description provided by the author
LineToWKT converts a sql.LineString to a string.
No description provided by the author
No description provided by the author
No description provided by the author
MultiLineStringToWKT converts a sql.Polygon to a string.
MultiPointToWKT converts a sql.MultiPoint to a string.
MultiPolygonToWKT converts a sql.Polygon to a string.
NewArea creates a new Area expression.
NewAsGeoJSON creates a new point expression.
NewAsWKB creates a new point expression.
NewAsWKT creates a new point expression.
NewDimension creates a new point expression.
NewDistance creates a new Distance expression.
NewEndPoint creates a new EndPoint expression.
NewGeomColl creates a new geometrycollection expression.
NewGeomCollFromText creates a new multilinestring expression.
NewGeomCollFromWKB creates a new geometrycollection expression.
NewGeomFromGeoJSON creates a new point expression.
NewGeomFromText creates a new point expression.
NewGeomFromWKB creates a new geometry expression.
NewIntersects creates a new Intersects expression.
NewIsClosed creates a new EndPoint expression.
NewLatitude creates a new ST_LATITUDE expression.
NewLineFromText creates a new point expression.
NewLineFromWKB creates a new point expression.
NewLineString creates a new LineString.
NewLongitude creates a new ST_LONGITUDE expression.
NewMLineFromText creates a new multilinestring expression.
NewMLineFromWKB creates a new point expression.
NewMPointFromText creates a new MultiPoint expression.
NewMPointFromWKB creates a new point expression.
NewMPolyFromText creates a new multilinestring expression.
NewMPolyFromWKB creates a new multipolygon expression.
NewMultiLineString creates a new multilinestring expression.
NewMultiPoint creates a new MultiPoint.
NewMultiPolygon creates a new multipolygon expression.
NewSTLength creates a new STX expression.
NewPoint creates a new point expression.
NewPointFromText creates a new point expression.
NewPointFromWKB creates a new point expression.
NewPolyFromText creates a new polygon expression.
NewPolyFromWKB creates a new point expression.
NewPolygon creates a new polygon expression.
NewSRID creates a new STX expression.
NewStartPoint creates a new StartPoint expression.
NewSTLength creates a new STLength expression.
NewSTX creates a new STX expression.
NewSTY creates a new STY expression.
NewSwapXY creates a new point expression.
NewWithin creates a new Within expression.
ParseAxisOrder takes in a key, value string and determines the order of the xy coords.
No description provided by the author
ParseWKTHeader should extract the type and data from the geometry string `end` is used to detect extra characters after a valid geometry.
No description provided by the author
PointToWKT converts a sql.Point to a string.
PolygonToWKT converts a sql.Polygon to a string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WKTToGeom expects a string in WKT format, and converts it to a geometry type.
WKTToGeomColl Expects a string like "((1 2, 3 4), (5 6, 7 8), ...), ...".
WKTToLine expects a string like "1.2 3.4, 5.6 7.8, ...".
WKTToMLine Expects a string like "(1 2, 3 4), (5 6, 7 8), ...".
WKTToMPoint expects a string like "1.2 3.4, 5.6 7.8, ...".
WKTToMPoly Expects a string like "((1 2, 3 4), (5 6, 7 8), ...), ...".
WKTToPoint expects a string like this "1.2 3.4".
WKTToPoly Expects a string like "(1 2, 3 4), (5 6, 7 8), ...".

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrNoUnits is thrown when the specified SRID does not have units.
No description provided by the author

# Structs

Area is a function that returns the Area of a Polygon.
AsGeoJSON is a function that returns a point type from a WKT string.
AsWKB is a function that converts a spatial type into WKB format (alias for AsBinary).
AsWKT is a function that converts a spatial type into WKT format (alias for AsText).
Dimension is a function that converts a spatial type into WKT format (alias for AsText).
Distance is a function that returns the shortest distance between two geometries.
EndPoint is a function that returns the last point of a LineString.
GeomColl is a function that returns a GeometryCollection.
GeomCollFromText is a function that returns a MultiPolygon type from a WKT string.
GeomCollFromWKB is a function that returns a polygon type from a WKB byte array.
GeomFromGeoJSON is a function returns a geometry based on a string.
GeomFromText is a function that returns a point type from a WKT string.
GeomFromWKB is a function that returns a geometry type from a WKB byte array.
Intersects is a function that returns true if the two geometries intersect.
IsClosed is a function that checks if a LineString or MultiLineString is close.
Latitude is a function that returns the x value from a given point.
LineFromText is a function that returns a LineString type from a WKT string.
LineFromWKB is a function that returns a linestring type from a WKB byte array.
LineString is a function that returns a point type containing values Y and Y.
Longitude is a function that returns the x value from a given point.
MLineFromText is a function that returns a MultiLineString type from a WKT string.
MLineFromWKB is a function that returns a polygon type from a WKB byte array.
MultiPoint is a function that returns a MultiPoint type from a WKT string.
MPointFromWKB is a function that returns a linestring type from a WKB byte array.
MPolyFromText is a function that returns a MultiPolygon type from a WKT string.
MPolyFromWKB is a function that returns a polygon type from a WKB byte array.
MultiLineString is a function that returns a MultiLineString.
MultiPoint is a function that returns a set of Points.
MultiPolygon is a function that returns a MultiPolygon.
Perimeter is a function that returns the Perimeter of a Polygon Not in MySQL, basing off: https://postgis.net/docs/ST_Perimeter.html.
Point is a function that returns a point type containing values Y and Y.
PointFromText is a function that returns a Point type from a WKT string.
PointFromWKB is a function that returns a point type from a WKB byte array.
PolyFromText is a function that returns a Polygon type from a WKT string.
PolyFromWKB is a function that returns a polygon type from a WKB byte array.
Polygon is a function that returns a Polygon.
No description provided by the author
SRID is a function that returns SRID of Geometry object or returns a new object with altered SRID.
StartPoint is a function that returns the first point of a LineString.
STLength is a function that returns the STLength of a LineString.
STX is a function that returns the x value from a given point.
STY is a function that returns the y value from a given point.
SwapXY is a function that returns a spatial type with their X and Y values swapped.
Within is a function that true if left is spatially within right.