| 1 | /* Copyright (c) 2002, 2004-2007 MySQL AB |
| 2 | Use is subject to license terms |
| 3 | |
| 4 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation; version 2 of the License. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License |
| 14 | along with this program; if not, write to the Free Software |
| 15 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ |
| 16 | |
| 17 | #ifndef _SP_DEFS_H |
| 18 | #define _SP_DEFS_H |
| 19 | |
| 20 | #define SPDIMS 2 |
| 21 | #define SPTYPE HA_KEYTYPE_DOUBLE |
| 22 | #define SPLEN 8 |
| 23 | |
| 24 | #ifdef HAVE_SPATIAL |
| 25 | |
| 26 | enum wkbType |
| 27 | { |
| 28 | wkbPoint = 1, |
| 29 | wkbLineString = 2, |
| 30 | wkbPolygon = 3, |
| 31 | wkbMultiPoint = 4, |
| 32 | wkbMultiLineString = 5, |
| 33 | wkbMultiPolygon = 6, |
| 34 | wkbGeometryCollection = 7 |
| 35 | }; |
| 36 | |
| 37 | enum wkbByteOrder |
| 38 | { |
| 39 | wkbXDR = 0, /* Big Endian */ |
| 40 | wkbNDR = 1 /* Little Endian */ |
| 41 | }; |
| 42 | |
| 43 | uint sp_make_key(register MI_INFO *info, uint keynr, uchar *key, |
| 44 | const uchar *record, my_off_t filepos); |
| 45 | |
| 46 | #endif /*HAVE_SPATIAL*/ |
| 47 | #endif /* _SP_DEFS_H */ |
| 48 | |