Module ewkb

Encoder/decoder for PostGIS binary data representation.

Description

Encoder/decoder for PostGIS binary data representation.

Data Types

basic_string()

basic_string(PointType) = #circular_string{point_type = PointType, points = [ewkb:point(ewkb:point_type())]} | #line_string{point_type = PointType, points = [ewkb:point(ewkb:point_type())]}

curve()

curve(PointType) = #circular_string{point_type = PointType, points = [ewkb:point(ewkb:point_type())]} | #line_string{point_type = PointType, points = [ewkb:point(ewkb:point_type())]} | #compound_curve{point_type = PointType, lines = [ewkb:basic_string(ewkb:point_type())]}

curve_polygon()

curve_polygon(PointType) = #curve_polygon{point_type = PointType, rings = [ewkb:curve(ewkb:point_type())]}

geom_type()

geom_type() = geometry | point | line_string | polygon | multi_point | multi_line_string | multi_polygon | geometry_collection | circular_string | compound_curve | curve_polygon | multi_curve | multi_surface | curve | surface | polyhedral_surface | tin | triangle

geometry()

geometry() = geometry(point_type())

geometry()

geometry(PointType) = point(PointType) | line_string(PointType) | triangle(PointType) | tin(PointType) | curve(PointType) | surface(PointType) | multi_point(PointType) | multi_line_string(PointType) | multi_polygon(PointType) | multi_curve(PointType) | multi_surface(PointType) | geometry_collection(PointType)

geometry_collection()

geometry_collection(PointType) = [geometry(PointType)]

line_string()

line_string(PointType) = #line_string{point_type = PointType, points = [ewkb:point(ewkb:point_type())]}

multi_curve()

multi_curve(PointType) = #multi_curve{point_type = PointType, curves = [ewkb:curve(ewkb:point_type())]}

multi_line_string()

multi_line_string(PointType) = #multi_line_string{point_type = PointType, line_strings = [ewkb:line_string(ewkb:point_type())]}

multi_point()

multi_point(PointType) = #multi_point{point_type = PointType, points = [ewkb:point(ewkb:point_type())]}

multi_polygon()

multi_polygon(PointType) = #multi_polygon{point_type = PointType, polygons = [ewkb:polygon(ewkb:point_type())]}

multi_surface()

multi_surface(PointType) = #multi_surface{point_type = PointType, surfaces = [ewkb:surface(ewkb:point_type())]}

point()

point(PointType) = #point{point_type = PointType, x = float(), y = float(), z = float() | undefined, m = float() | undefined}

point_type()

point_type() = '2d' | '3d' | '2dm' | '3dm'

polygon()

polygon(PointType) = #polygon{point_type = PointType, rings = [ewkb:line_string(ewkb:point_type())]}

polyhedral_surface()

polyhedral_surface(PointType) = #polyhedral_surface{point_type = PointType, polygons = [ewkb:polygon(ewkb:point_type())]}

surface()

surface(PointType) = polygon(PointType) | curve_polygon(PointType) | polyhedral_surface(PointType)

tin()

tin(PointType) = #tin{point_type = PointType, triangles = [ewkb:triangle(ewkb:point_type())]}

triangle()

triangle(PointType) = #triangle{point_type = PointType, rings = [ewkb:line_string(ewkb:point_type())]}

Function Index

decode_geometry/1
encode_geometry/1

Function Details

decode_geometry/1

decode_geometry(Binary::binary()) -> geometry()

encode_geometry/1

encode_geometry(Geometry::geometry()) -> binary()


Generated by EDoc