summaryrefslogtreecommitdiff
path: root/sql/spatial.h
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-02-26 19:13:01 +0400
committerunknown <ram@mysql.r18.ru>2003-02-26 19:13:01 +0400
commitd2b0d3fa88a894c6380e577eaa8d10b81f667566 (patch)
treee796cd10f7ad05c63312f62e74d4b43928399407 /sql/spatial.h
parentc20de066453a5327ed62bb33026bac6464a1fcdf (diff)
downloadmariadb-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.h10
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 *******************************/