9.2.5.4. geo_metadata 地理元数据表¶
## 字段
列名 | 类型 | 是否非空 | 默认值 | 备注 |
———- | ————– | ——– | —- | ————————- |
id | int | not null | null | 自增ID |
geodata_id | int | not null | | 关联地理数据表的id |
min_x | double | not null | 0.00000000 | 空间范围MinX |
min_y | double | not null | 0.00000000 | 空间范围MinY |
max_x | double | not null | 0.00000000 | 空间范围MaxX |
max_y | double | not null | 0.00000000 | 空间范围MaxY |
geometry_type | varchar(20) | not null | “” | 几何类型:如Point、Polygon、MultiPolygon等 |
crs | text | not null | “” | 坐标参考系CRS信息,wkt格式 |
createtime | datetime | nullable | CurrentDateTime | 创建时间 |
updatetime | datetime | nullable | CurrentDateTime | 更新时间 |
deletetime | datetime | nullable | CurrentDateTime | 删除时间 |
## 索引
字段 | 是否唯一 | 索引方法 | 备注 |
— | —- | —- | — |
geodata_id | False | BTree | 数据编号建索引,通过该字段与geodata表的id关联 |
## 说明
## 建表语句
CREATE TABLE `geo_metadata` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`geodata_id` int(11) NOT NULL,
`min_x` double(20,8) NOT NULL DEFAULT 0.00000000,
`min_y` double(20,8) NOT NULL DEFAULT 0.00000000,
`max_x` double(20,8) NOT NULL DEFAULT 0.00000000,
`max_y` double(20,8) NOT NULL DEFAULT 0.00000000,
`geometry_type` varchar(20) NOT NULL,
`crs` text NOT NULL,
PRIMARY KEY (`id`),
KEY `geo_metadata_index_geodata_id` (`geodata_id`) USING BTREE
);