epgsql_geometry.hrl 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. -record(point,{
  2. point_type :: any(),
  3. x :: float(),
  4. y :: float(),
  5. z :: float() | undefined,
  6. m :: float() | undefined
  7. }).
  8. -record(multi_point,{
  9. point_type :: any(),
  10. points :: [ewkb:point(ewkb:point_type())]
  11. }).
  12. -record(line_string,{
  13. point_type :: any(),
  14. points :: [ewkb:point(ewkb:point_type())]
  15. }).
  16. -record(multi_line_string,{
  17. point_type :: any(),
  18. line_strings :: [ewkb:line_string(ewkb:point_type())]
  19. }).
  20. -record(circular_string,{
  21. point_type :: any(),
  22. points :: [ewkb:point(ewkb:point_type())]
  23. }).
  24. -record(compound_curve,{
  25. point_type :: any(),
  26. lines :: [ewkb:basic_string(ewkb:point_type())]
  27. }).
  28. -record(multi_curve,{
  29. point_type :: any(),
  30. curves :: [ewkb:curve(ewkb:point_type())]
  31. }).
  32. -record(polygon,{
  33. point_type :: any(),
  34. rings :: [ewkb:line_string(ewkb:point_type())]
  35. }).
  36. -record(multi_polygon,{
  37. point_type :: any(),
  38. polygons :: [ewkb:polygon(ewkb:point_type())]
  39. }).
  40. -record(triangle,{
  41. point_type :: any(),
  42. rings :: [ewkb:line_string(ewkb:point_type())]
  43. }).
  44. -record(curve_polygon,{
  45. point_type :: any(),
  46. rings :: [ewkb:curve(ewkb:point_type())]
  47. }).
  48. -record(polyhedral_surface,{
  49. point_type :: any(),
  50. polygons :: [ewkb:polygon(ewkb:point_type())]
  51. }).
  52. -record(multi_surface,{
  53. point_type :: any(),
  54. surfaces :: [ewkb:surface(ewkb:point_type())]
  55. }).
  56. -record(tin,{
  57. point_type :: any(),
  58. triangles :: [ewkb:triangle(ewkb:point_type())]
  59. }).