
実行環境
- Windows
7 32bit - MySQL Community Server 5.7.8rc
- コンソール
: ConEmu 150513 - ogr2ogr : GDAL 1.11.1, released 2014/09/24
インポート時に geomety_columns と spatial_ref_sys テーブルも作られる
MySQL 5.7.8rc
まず
$mysql -u root -p zcta Enter password: ******* Welcome to the MySQL monitor. (..) mysql> show tables; +--------------------+ | Tables_in_zcta | +--------------------+ | geometry_columns | | spatial_ref_sys | | tl_2013_us_zcta510 | +--------------------+ 3 rows in set (0.00 sec)

geometry_columns
MySQL
SELECT table_name, table_rows FROM information_schema.TABLES WHERE table_schema = 'zcta'; +--------------------+------------+ | table_name | table_rows | +--------------------+------------+ | geometry_columns | 1 | | spatial_ref_sys | 1 | | tl_2013_us_zcta510 | 31558 | +--------------------+------------+ 3 rows in set (0.00 sec)

空間参照系カタログの spatial_ref_sys が 1 行しかない
上のとおりmysql> SELECT * FROM spatial_ref_sys; +------+-----------+-----------+-----------------------+ | SRID | AUTH_NAME | AUTH_SRID | SRTEXT +------+-----------+-----------+-----------------------+ | 1 | NULL | NULL | GEOGCS["GCS_North_Ameri can_1983",DATUM["North_American_Datum_1983",SPHEROID["GR S_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UN IT["Degree",0.017453292519943295]] | +------+-----------+-----------+-----------------------+ 1 row in set (0.00 sec)

折り返しで見づらいですが確かに

次に同じ空間参照系のデータをインポートしたら同じ
まだ不明な点が多く手探り状態。まとまって調べる時間がなく断片的な記事になってしまう…。いずれ複数の空間参照系データを続けてインポートするなどしてみます。