Geometry

Geometry module

MODULE geom;

COMMAND geom.Area(X_0:wkb):dbl;
COMMENT "";

COMMAND geom.AsBinary(X_0:wkb):str;
COMMENT "";

function geom.AsEWKT(w:wkb):str;;
COMMENT "";

function geom.AsText(w:wkb):str;;
COMMENT "";

function geom.BdMPolyFromText(wkt:str, srid:int):wkb;;
COMMENT "";

function geom.BdPolyFromText(wkt:str, srid:int):wkb;;
COMMENT "";

COMMAND geom.Boundary(X_0:wkb):wkb;
COMMENT "";

COMMAND geom.Buffer(X_0:wkb, X_1:dbl):wkb;
COMMENT "";

COMMAND geom.Centroid(X_0:wkb):wkb;
COMMENT "";

COMMAND geom.Contains(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.Contains(X_0:wkb, X_1:dbl, X_2:dbl):bit;
COMMENT "";

COMMAND geom.Contains(X_0:wkb, X_1:bat[:dbl], X_2:bat[:dbl]):bat[:bit];
COMMENT "";

COMMAND geom.ConvexHull(X_0:wkb):wkb;
COMMENT "";

COMMAND geom.CoordDim(X_0:wkb):int;
COMMENT "";

COMMAND geom.CoveredBy(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.Covers(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.Crosses(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.DWithin(X_0:wkb, X_1:wkb, X_2:dbl):bit;
COMMENT "";

COMMAND geom.DelaunayTriangles(X_0:wkb, X_1:dbl, X_2:int):wkb;
COMMENT "";

COMMAND geom.Difference(X_0:wkb, X_1:wkb):wkb;
COMMENT "";

COMMAND geom.Dimension(X_0:wkb):int;
COMMENT "";

COMMAND geom.Disjoint(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.Distance(X_0:wkb, X_1:wkb):dbl;
COMMENT "";

COMMAND geom.Dump(X_0:wkb) (X_1:bat[:str], X_2:bat[:wkb]);
COMMENT "";

COMMAND geom.DumpPoints(X_0:wkb) (X_1:bat[:str], X_2:bat[:wkb]);
COMMENT "";

COMMAND geom.EndPoint(X_0:wkb):wkb;
COMMENT "";

COMMAND geom.Envelope(X_0:wkb):wkb;
COMMENT "";

COMMAND geom.EnvelopeFromCoordinates(X_0:dbl, X_1:dbl, X_2:dbl, X_3:dbl, X_4:int):wkb;
COMMENT "";

COMMAND geom.Equals(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.ExteriorRing(X_0:wkb):wkb;
COMMENT "";

function geom.Force2D(g:wkb):wkb;;
COMMENT "";

function geom.Force3D(g:wkb):wkb;;
COMMENT "";

COMMAND geom.ForceDimensions(X_0:wkb, X_1:int):wkb;
COMMENT "";

COMMAND geom.FromBinary(X_0:str):wkb;
COMMENT "";

COMMAND geom.FromText(X_0:str, X_1:int, X_2:int):wkb;
COMMENT "";

function geom.GeomCollFromText(wkt:str):wkb;;
COMMENT "";

function geom.GeomCollFromText(wkt:str, srid:int):wkb;;
COMMENT "";

function geom.GeomFromText(wkt:str):wkb;;
COMMENT "";

function geom.GeomFromText(wkt:str, srid:int):wkb;;
COMMENT "";

COMMAND geom.GeometryN(X_0:wkb, X_1:int):wkb;
COMMENT "";

COMMAND geom.GeometryType(X_0:wkb, X_1:int):str;
COMMENT "";

function geom.GeometryType1(w:wkb):str;;
COMMENT "";

function geom.GeometryType2(w:wkb):str;;
COMMENT "";

COMMAND geom.GetCoordinate(X_0:wkb, X_1:int):dbl;
COMMENT "";

COMMAND geom.InteriorRingN(X_0:wkb, X_1:int):wkb;
COMMENT "";

COMMAND geom.InteriorRings(X_0:wkb):wkba;
COMMENT "";

COMMAND geom.Intersection(X_0:wkb, X_1:wkb):wkb;
COMMENT "";

COMMAND geom.Intersects(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.IsClosed(X_0:wkb):bit;
COMMENT "";

COMMAND geom.IsEmpty(X_0:wkb):bit;
COMMENT "";

COMMAND geom.IsRing(X_0:wkb):bit;
COMMENT "";

COMMAND geom.IsSimple(X_0:wkb):bit;
COMMENT "";

COMMAND geom.IsValid(X_0:wkb):bit;
COMMENT "";

COMMAND geom.IsValidDetail(X_0:wkb):str;
COMMENT "";

COMMAND geom.IsValidReason(X_0:wkb):str;
COMMENT "";

COMMAND geom.Length(X_0:wkb):dbl;
COMMENT "";

function geom.LineFromText(wkt:str):wkb;;
COMMENT "";

function geom.LineFromText(wkt:str, srid:int):wkb;;
COMMENT "";

function geom.MLineFromText(wkt:str):wkb;;
COMMENT "";

function geom.MLineFromText(wkt:str, srid:int):wkb;;
COMMENT "";

COMMAND geom.MLineStringToPolygon(X_0:str, X_1:int, X_2:int):wkb;
COMMENT "";

function geom.MPointFromText(wkt:str):wkb;;
COMMENT "";

function geom.MPointFromText(wkt:str, srid:int):wkb;;
COMMENT "";

function geom.MPolyFromText(wkt:str):wkb;;
COMMENT "";

function geom.MPolyFromText(wkt:str, srid:int):wkb;;
COMMENT "";

COMMAND geom.MakeBox2D(X_0:wkb, X_1:wkb):mbr;
COMMENT "";

function geom.MakeEnvelope(xmin:dbl, ymin:dbl, xmax:dbl, ymax:dbl):wkb;;
COMMENT "";

function geom.MakeEnvelope(xmin:dbl, ymin:dbl, xmax:dbl, ymax:dbl, srid:int):wkb;;
COMMENT "";

COMMAND geom.MakeLine(X_0:wkb, X_1:wkb):wkb;
COMMENT "";

COMMAND geom.MakeLine(X_0:bat[:wkb]):wkb;
COMMENT "";

function geom.MakePoint(x:dbl, y:dbl):wkb;;
COMMENT "";

function geom.MakePoint(x:dbl, y:dbl, z:dbl):wkb;;
COMMENT "";

function geom.MakePoint(x:dbl, y:dbl, z:dbl, m:dbl):wkb;;
COMMENT "";

function geom.MakePointM(x:dbl, y:dbl, m:dbl):wkb;;
COMMENT "";

COMMAND geom.MakePointXYZM(X_0:dbl, X_1:dbl, X_2:dbl, X_3:dbl, X_4:int):wkb;
COMMENT "";

function geom.MakePolygon(external:wkb):wkb;;
COMMENT "";

function geom.MakePolygon(external:wkb, srid:int):wkb;;
COMMENT "";

function geom.NPoints(w:wkb):int;;
COMMENT "";

function geom.NRings(w:wkb):int;;
COMMENT "";

COMMAND geom.NumGeometries(X_0:wkb):int;
COMMENT "";

function geom.NumInteriorRings(w:wkb):int;;
COMMENT "";

function geom.NumPoints(w:wkb):int;;
COMMENT "";

COMMAND geom.NumRings(X_0:wkb, X_1:int):int;
COMMENT "";

COMMAND geom.Overlaps(X_0:wkb, X_1:wkb):bit;
COMMENT "";

function geom.PointFromText(wkt:str):wkb;;
COMMENT "";

function geom.PointFromText(wkt:str, srid:int):wkb;;
COMMENT "";

COMMAND geom.PointN(X_0:wkb, X_1:int):wkb;
COMMENT "";

COMMAND geom.PointOnSurface(X_0:wkb):wkb;
COMMENT "";

COMMAND geom.PointsNum(X_0:wkb, X_1:int):int;
COMMENT "";

COMMAND geom.Polygon(X_0:wkb, X_1:bat[:wkb], X_2:int):wkb;
COMMENT "";

function geom.PolygonFromText(wkt:str):wkb;;
COMMENT "";

function geom.PolygonFromText(wkt:str, srid:int):wkb;;
COMMENT "";

COMMAND geom.Relate(X_0:wkb, X_1:wkb, X_2:str):bit;
COMMENT "";

COMMAND geom.Segmentize(X_0:wkb, X_1:dbl):wkb;
COMMENT "";

COMMAND geom.StartPoint(X_0:wkb):wkb;
COMMENT "";

COMMAND geom.SymDifference(X_0:wkb, X_1:wkb):wkb;
COMMENT "";

COMMAND geom.ToText(X_0:wkb, X_1:int):str;
COMMENT "";

COMMAND geom.Touches(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.Transform(X_0:wkb, X_1:int, X_2:int, X_3:str, X_4:str):wkb;
COMMENT "";

function geom.Translate(g:wkb, dx:dbl, dy:dbl):wkb;;
COMMENT "";

function geom.Translate(g:wkb, dx:dbl, dy:dbl, dz:dbl):wkb;;
COMMENT "";

COMMAND geom.Translate3D(X_0:wkb, X_1:dbl, X_2:dbl, X_3:dbl):wkb;
COMMENT "";

COMMAND geom.Union(X_0:wkb, X_1:wkb):wkb;
COMMENT "";

COMMAND geom.Union(X_0:bat[:wkb]):wkb;
COMMENT "";

COMMAND geom.Within(X_0:wkb, X_1:wkb):bit;
COMMENT "";

function geom.X(w:wkb):dbl;;
COMMENT "";

function geom.XMaxFromMBR(b:mbr):dbl;;
COMMENT "";

function geom.XMaxFromWKB(g:wkb):dbl;;
COMMENT "";

function geom.XMinFromMBR(b:mbr):dbl;;
COMMENT "";

function geom.XMinFromWKB(g:wkb):dbl;;
COMMENT "";

function geom.Y(w:wkb):dbl;;
COMMENT "";

function geom.YMaxFromMBR(b:mbr):dbl;;
COMMENT "";

function geom.YMaxFromWKB(g:wkb):dbl;;
COMMENT "";

function geom.YMinFromMBR(b:mbr):dbl;;
COMMENT "";

function geom.YMinFromWKB(g:wkb):dbl;;
COMMENT "";

function geom.Z(w:wkb):dbl;;
COMMENT "";

COMMAND geom.coordinateFromMBR(X_0:mbr, X_1:int):dbl;
COMMENT "";

COMMAND geom.coordinateFromWKB(X_0:wkb, X_1:int):dbl;
COMMENT "";

COMMAND geom.epilogue():void;
COMMENT "";

COMMAND geom.getSRID(X_0:wkb):int;
COMMENT "";

COMMAND geom.getType(X_0:int, X_1:int):str;
COMMENT "";

COMMAND geom.hasM(X_0:int):int;
COMMENT "";

COMMAND geom.hasZ(X_0:int):int;
COMMENT "";

COMMAND geom.mbr(X_0:wkb):mbr;
COMMENT "";

COMMAND geom.mbrAbove(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrAbove(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrBelow(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrBelow(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrContained(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrContained(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrContains(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrContains(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrDistance(X_0:mbr, X_1:mbr):dbl;
COMMENT "";

COMMAND geom.mbrDistance(X_0:wkb, X_1:wkb):dbl;
COMMENT "";

COMMAND geom.mbrEqual(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrEqual(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrLeft(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrLeft(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrAbove(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrAbove(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrBelow(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrBelow(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrLeft(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrLeft(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrRight(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrOverlapOrRight(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrOverlaps(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrOverlaps(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.mbrRight(X_0:mbr, X_1:mbr):bit;
COMMENT "";

COMMAND geom.mbrRight(X_0:wkb, X_1:wkb):bit;
COMMENT "";

COMMAND geom.prelude():void;
COMMENT "";

COMMAND geom.setSRID(X_0:wkb, X_1:int):wkb;
COMMENT "";

Batgeom module

MODULE batgeom;

function batgeom.AsEWKT(w:bat[:wkb]):bat[:str];;
COMMENT "";

function batgeom.AsText(w:bat[:wkb]):bat[:str];;
COMMENT "";

COMMAND batgeom.Boundary(X_0:bat[:wkb]):bat[:wkb];
COMMENT "";

COMMAND batgeom.Contains(X_0:bat[:wkb], X_1:bat[:wkb]):bat[:bit];
COMMENT "";

COMMAND batgeom.Contains(X_0:bat[:wkb], X_1:wkb):bat[:bit];
COMMENT "";

COMMAND batgeom.Contains(X_0:wkb, X_1:bat[:wkb]):bat[:bit];
COMMENT "";

COMMAND batgeom.Dimension(X_0:bat[:wkb]):bat[:int];
COMMENT "";

COMMAND batgeom.Distance(X_0:bat[:wkb], X_1:bat[:wkb]):bat[:dbl];
COMMENT "";

COMMAND batgeom.Distance(X_0:bat[:wkb], X_1:wkb):bat[:dbl];
COMMENT "";

COMMAND batgeom.Distance(X_0:wkb, X_1:bat[:wkb]):bat[:dbl];
COMMENT "";

COMMAND batgeom.Filter(X_0:bat[:wkb], X_1:wkb):bat[:wkb];
COMMENT "";

COMMAND batgeom.Filter(X_0:wkb, X_1:bat[:wkb]):bat[:wkb];
COMMENT "";

COMMAND batgeom.FromText(X_0:bat[:str], X_1:int, X_2:int):bat[:wkb];
COMMENT "";

function batgeom.GeomCollFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.GeomCollFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

function batgeom.GeomFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.GeomFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

COMMAND batgeom.GeometryN(X_0:bat[:wkb], X_1:int):bat[:wkb];
COMMENT "";

COMMAND batgeom.GeometryType(X_0:bat[:wkb], X_1:int):bat[:str];
COMMENT "";

function batgeom.GeometryType1(w:bat[:wkb]):bat[:str];;
COMMENT "";

function batgeom.GeometryType2(w:bat[:wkb]):bat[:str];;
COMMENT "";

COMMAND batgeom.GetCoordinate(X_0:bat[:wkb], X_1:int):bat[:dbl];
COMMENT "";

COMMAND batgeom.IsClosed(X_0:bat[:wkb]):bat[:bit];
COMMENT "";

COMMAND batgeom.IsEmpty(X_0:bat[:wkb]):bat[:bit];
COMMENT "";

COMMAND batgeom.IsRing(X_0:bat[:wkb]):bat[:bit];
COMMENT "";

COMMAND batgeom.IsSimple(X_0:bat[:wkb]):bat[:bit];
COMMENT "";

COMMAND batgeom.IsValid(X_0:bat[:wkb]):bat[:bit];
COMMENT "";

function batgeom.LineFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.LineFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

function batgeom.MLineFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.MLineFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

function batgeom.MPointFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.MPointFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

function batgeom.MPolyFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.MPolyFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

COMMAND batgeom.MakeBox2D(X_0:bat[:wkb], X_1:bat[:wkb]):bat[:mbr];
COMMENT "";

COMMAND batgeom.MakeLine(X_0:bat[:wkb], X_1:bat[:wkb]):bat[:wkb];
COMMENT "";

function batgeom.MakePoint(x:bat[:dbl], y:bat[:dbl]):bat[:wkb];;
COMMENT "";

function batgeom.MakePoint(x:bat[:dbl], y:bat[:dbl], z:bat[:dbl]):bat[:wkb];;
COMMENT "";

function batgeom.MakePoint(x:bat[:dbl], y:bat[:dbl], z:bat[:dbl], m:bat[:dbl]):bat[:wkb];;
COMMENT "";

function batgeom.MakePointM(x:bat[:dbl], y:bat[:dbl], m:bat[:dbl]):bat[:wkb];;
COMMENT "";

COMMAND batgeom.MakePointXYZM(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:dbl], X_3:bat[:dbl], X_4:int):bat[:wkb];
COMMENT "";

function batgeom.NPoints(w:bat[:wkb]):bat[:int];;
COMMENT "";

function batgeom.NRings(w:bat[:wkb]):bat[:int];;
COMMENT "";

COMMAND batgeom.NumGeometries(X_0:bat[:wkb]):bat[:int];
COMMENT "";

function batgeom.NumInteriorRings(w:bat[:wkb]):bat[:int];;
COMMENT "";

function batgeom.NumPoints(w:bat[:wkb]):bat[:int];;
COMMENT "";

COMMAND batgeom.NumRings(X_0:bat[:wkb], X_1:int):bat[:int];
COMMENT "";

function batgeom.PointFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.PointFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

COMMAND batgeom.PointsNum(X_0:bat[:wkb], X_1:int):bat[:int];
COMMENT "";

function batgeom.PolygonFromText(wkt:bat[:str]):bat[:wkb];;
COMMENT "";

function batgeom.PolygonFromText(wkt:bat[:str], srid:int):bat[:wkb];;
COMMENT "";

COMMAND batgeom.ToText(X_0:bat[:wkb], X_1:int):bat[:str];
COMMENT "";

COMMAND batgeom.Union(X_0:bat[:wkb], X_1:bat[:wkb]):bat[:wkb];
COMMENT "";

function batgeom.X(w:bat[:wkb]):bat[:dbl];;
COMMENT "";

function batgeom.XMaxFromMBR(b:bat[:mbr]):bat[:dbl];;
COMMENT "";

function batgeom.XMaxFromWKB(g:bat[:wkb]):bat[:dbl];;
COMMENT "";

function batgeom.XMinFromMBR(b:bat[:mbr]):bat[:dbl];;
COMMENT "";

function batgeom.XMinFromWKB(g:bat[:wkb]):bat[:dbl];;
COMMENT "";

function batgeom.Y(w:bat[:wkb]):bat[:dbl];;
COMMENT "";

function batgeom.YMaxFromMBR(b:bat[:mbr]):bat[:dbl];;
COMMENT "";

function batgeom.YMaxFromWKB(g:bat[:wkb]):bat[:dbl];;
COMMENT "";

function batgeom.YMinFromMBR(b:bat[:mbr]):bat[:dbl];;
COMMENT "";

function batgeom.YMinFromWKB(g:bat[:wkb]):bat[:dbl];;
COMMENT "";

function batgeom.Z(w:bat[:wkb]):bat[:dbl];;
COMMENT "";

COMMAND batgeom.coordinateFromMBR(X_0:bat[:mbr], X_1:int):bat[:dbl];
COMMENT "";

COMMAND batgeom.coordinateFromWKB(X_0:bat[:wkb], X_1:int):bat[:dbl];
COMMENT "";

COMMAND batgeom.mbr(X_0:bat[:wkb]):bat[:mbr];
COMMENT "";

COMMAND batgeom.setSRID(X_0:bat[:wkb], X_1:int):bat[:wkb];
COMMENT "";