mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
SRID support.
GeomertyFromWKB() function. SRID() function. ::store() methods for Field_geom. Code cleanup. myisam/sp_key.c: SRID support. mysql-test/r/gis.result: We should use GeometryFromWKB(). mysql-test/t/gis.test: We should use GeometryFromWKB(). sql/field.cc: SRID support. ::store() methods for Field_geom. Code cleanup. sql/field.h: SRID support. ::store() methods for Field_geom. Code cleanup. sql/item_cmpfunc.cc: SRID support. Code cleanup. sql/item_create.cc: Code cleanup. sql/item_create.h: Code cleanup. sql/item_func.cc: SRID support. Code cleanup. sql/item_func.h: SRID support. sql/item_strfunc.cc: SRID support. GeometryFromWKB() function. Code cleanup. sql/item_strfunc.h: SRID support. GeometryFromWKB() function. Code cleanup. sql/lex.h: GeometryFromWKB() function. SRID() function. sql/spatial.cc: Code cleanup. sql/spatial.h: Code cleanup. sql/sql_yacc.yy: Fix for xxxFromText() functions. GeometryFromWKB() function.
This commit is contained in:
parent
1c1f407dd3
commit
3ccd93c704
16 changed files with 414 additions and 271 deletions
|
|
@ -78,17 +78,17 @@ int Geometry::create_from_wkb(const char *data, uint32 data_len)
|
|||
{
|
||||
uint32 geom_type;
|
||||
|
||||
if (data_len < 1+4)
|
||||
if (data_len < 1 + 4)
|
||||
return 1;
|
||||
data += sizeof(char);
|
||||
|
||||
data++;
|
||||
//FIXME: check byte ordering
|
||||
geom_type = uint4korr(data);
|
||||
data += 4;
|
||||
m_vmt = find_class(geom_type);
|
||||
if (!m_vmt) return -1;
|
||||
m_data = data;
|
||||
m_data_end = data + data_len;
|
||||
geom_type= uint4korr(data);
|
||||
data+= 4;
|
||||
m_vmt= find_class(geom_type);
|
||||
if (!m_vmt)
|
||||
return -1;
|
||||
m_data= data;
|
||||
m_data_end= data + data_len;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue