mirror of
https://github.com/MariaDB/server.git
synced 2025-07-01 03:26:54 +03:00
MDEV-60 Support for Spatial Reference systems for the GIS data.
The GEOMETRY field metadata is stored in the FRM file. SRID for a spatial column now can be stored, it was added to the CREATE TABLE syntax, so the AddGeometryData() stored procedure is now possible. Script adding the required Add/DropGeometryColumn sp-s added.
This commit is contained in:
committed by
Sergei Golubchik
parent
c4655cf862
commit
c4cb15e87b
@ -1716,8 +1716,16 @@ create table t1(g GEOMETRY, pt POINT);
|
||||
create table t2(g LINESTRING, pl POLYGON);
|
||||
select * from information_schema.geometry_columns;
|
||||
F_TABLE_CATALOG F_TABLE_SCHEMA F_TABLE_NAME F_GEOMETRY_COLUMN G_TABLE_CATALOG G_TABLE_SCHEMA G_TABLE_NAME G_GEOMETRY_COLUMN STORAGE_TYPE GEOMETRY_TYPE COORD_DIMENSION MAX_PPR SRID
|
||||
def test t1 def test t1 g 1 0 2 0 0 0
|
||||
def test t1 def test t1 pt 1 1 2 0 0 0
|
||||
def test t2 def test t2 g 1 2 2 0 0 0
|
||||
def test t2 def test t2 pl 1 3 2 0 0 0
|
||||
def test t1 def test t1 g 1 0 2 0 0
|
||||
def test t1 def test t1 pt 1 1 2 0 0
|
||||
def test t2 def test t2 g 1 2 2 0 0
|
||||
def test t2 def test t2 pl 1 3 2 0 0
|
||||
drop table t1, t2;
|
||||
10.1 tests
|
||||
create table t1(g GEOMETRY(9,4) REF_SYSTEM_ID=101, pt POINT(8,2), pg GEOMETRY REF_SYSTEM_ID=102);
|
||||
SELECT SRID from information_schema.geometry_columns WHERE G_TABLE_NAME='t1';
|
||||
SRID
|
||||
101
|
||||
0
|
||||
102
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user