一、Geometry 与 Geography 的区别,以及如何选择?
geometry: 几何类型,平面。两个点之间的最短路径是一条直线。
geography: 地理类型,球体。在球体上两点之间的最短路径是一个大圆弧线。
必读:
http://postgis.net/docs/using_postgis_dbmanagement.html#PostGIS_Geography
http://postgis.net/docs/using_postgis_dbmanagement.html#PostGIS_GeographyVSGeometry
二、Geometry的几种类型:
POINT:点
LIN