diff options
author | unknown <ram@mysql.r18.ru> | 2003-02-26 19:13:01 +0400 |
---|---|---|
committer | unknown <ram@mysql.r18.ru> | 2003-02-26 19:13:01 +0400 |
commit | d2b0d3fa88a894c6380e577eaa8d10b81f667566 (patch) | |
tree | e796cd10f7ad05c63312f62e74d4b43928399407 /sql/spatial.h | |
parent | c20de066453a5327ed62bb33026bac6464a1fcdf (diff) | |
download | mariadb-git-d2b0d3fa88a894c6380e577eaa8d10b81f667566.tar.gz |
Added num_geometries() and geometry_n() methods for MultiX geometry objects.
Diffstat (limited to 'sql/spatial.h')
-rw-r--r-- | sql/spatial.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/spatial.h b/sql/spatial.h index 3f09e86e823..15e4f7353ed 100644 --- a/sql/spatial.h +++ b/sql/spatial.h @@ -413,7 +413,6 @@ public: int end_point(String *point) const; int point_n(uint32 n, String *result) const; int dimension(uint32 *dim) const { *dim = 1; return 0; } -// IsRing }; /***************************** Polygon *******************************/ @@ -433,7 +432,6 @@ public: int centroid_xy(double *x, double *y) const; int centroid(String *result) const; int dimension(uint32 *dim) const { *dim = 2; return 0; } -// PointOnSurface }; /***************************** MultiPoint *******************************/ @@ -445,6 +443,9 @@ public: int init_from_text(GTextReadStream *trs, String *wkb); int get_data_as_text(String *txt) const; int get_mbr(MBR *mbr) const; + + int num_geometries(uint32 *num) const; + int geometry_n(uint32 num, String *result) const; int dimension(uint32 *dim) const { *dim = 0; return 0; } }; @@ -458,6 +459,8 @@ public: int get_data_as_text(String *txt) const; int get_mbr(MBR *mbr) const; + int num_geometries(uint32 *num) const; + int geometry_n(uint32 num, String *result) const; int length(double *len) const; int is_closed(int *closed) const; int dimension(uint32 *dim) const { *dim = 1; return 0; } @@ -473,10 +476,11 @@ public: int get_data_as_text(String *txt) const; int get_mbr(MBR *mbr) const; + int num_geometries(uint32 *num) const; + int geometry_n(uint32 num, String *result) const; int area(double *ar) const; int centroid(String *result) const; int dimension(uint32 *dim) const { *dim = 2; return 0; } -// PointOnSurface }; /***************************** GeometryCollection *******************************/ |