1.0 KiB
1.0 KiB
MySQL 5.7.34 数据库设计
核心表
chart_dataset:一个 CM93 数据集根目录chart_dictionary_object:对象字典快照chart_dictionary_attribute:属性字典快照chart_cell:CM93 cell 元数据chart_coverage:_m_sorcoveragechart_feature:公共 feature 元数据chart_feature_attribute:规范化属性chart_point_geometrychart_line_geometrychart_area_geometrychart_sounding_pointchart_raw_recordchart_import_jobchart_import_event
Geometry
MySQL 5.7 不使用 MySQL 8 的 SRID 列限制。 所有标准化 geometry 写入时显式:
ST_GeomFromWKB(%s, 4326)
并在 chart_feature.normalized_srid 记录 4326。
原始值
CM93 的:
- header bounds
- source scale
- raw geotype
- raw feature bytes
- raw attribute bytes
- coverage offset
必须保存。
数值属性
chart_feature_attribute 同时提供:
value_intvalue_realvalue_textvalue_jsonraw_value_blob
这样既保留 typed value,也允许审计原始数据。