MySQL中空间数据和批量插入

1.MySQL中的空间扩展

基本Geometry类具有关于Point、Curve、Surface和GeometryCollection的子类:
·Point表示0维对象。
·Curve表示1维对象,具有子类LineString,以及次级子类Line和LinearRing。
·Surface是为2维对象设计的,具有子类Polygon。

参考文章:
https://blog.csdn.net/zzq900503/article/details/17142621
https://blog.csdn.net/woshirsn/article/details/52670383
https://blog.csdn.net/bit_sky/article/details/50056605
https://blog.csdn.net/qq_27690839/article/details/90377891
https://blog.csdn.net/woshirsn/article/details/52670383

MySQL支持以下数据类型:
Geometry:可以存储所有的几何类型
Point:简单点
LINESTRING:简单线
POLYGON:简单面
MULITIPOINT:多点
MULITILINESTRING:多线
MUILITIPOLYGON:多面
GEOMETRYCOLLECTION:任何几何集合

建表:

CREATE TABLE t_geo_test  (
	`ID`  int(11) NOT NULL ,
	`SHAPE`  geometry NOT NULL ,
	PRIMARY KEY (`ID`)
)
ENGINE=MyISAM
DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci
CHECKSUM=0
ROW_FORMAT=DYNAMIC
DELAY_KEY_WRITE=0
;

更多插入数据、查询、建索引、以及MySQL空间相关函数可以参考:
https://www.cnblogs.com/liuwt0911/p/5803679.html

MySQL中地理位置数据扩展geometry的使用心得参考文章:
https://www.linuxidc.com/Linux/2018-09/154191.htm

地理空间数据Geometry在MySQL中使用
https://blog.csdn.net/wiborgite/article/details/85069833
https://blog.csdn.net/wiborgite/article/details/85076270

MySQL GIS空间数据库功能详细学习

https://blog.csdn.net/chaiqi/article/details/23099407/
https://blog.csdn.net/long535/article/details/75714781
https://blog.csdn.net/devcopper/article/details/38088001

2.mysql空间扩展 VS PostGIS

参考文章:
https://www.cnblogs.com/LBSer/p/3629149.html

3.Navicat for MySQL执行SQL语句

参考文章:
https://jingyan.baidu.com/article/a378c960d1b713b3282830fe.html

4.MySQL设置唯一标识,主键

参考文章:
https://blog.csdn.net/qq_29735775/article/details/81165647
https://blog.csdn.net/heiqibaier/article/details/80055830

5.MySQL批量导入数据

https://jingyan.baidu.com/article/3ea514899dcf0352e61bba25.html
https://blog.csdn.net/YYstrong/article/details/76335893
https://blog.csdn.net/u013793732/article/details/52673697
https://jingyan.baidu.com/album/95c9d20d61b01dec4f75615a.html?picindex=6

更多参考文章:
https://yq.aliyun.com/articles/50625
https://bbs.csdn.net/topics/390584295
https://cloud.tencent.com/developer/information/gis空间数据库
https://classicning.iteye.com/blog/100614
https://www.zhihu.com/question/27918946

你可能感兴趣的:(Mysql)