PostGIS 计算长度和面积

本文介绍了PostGIS中地理(Geography)和几何(Geometry)类型的区别,强调了在球面上进行距离计算、查询空间交集以及面积分析时的差异。内容包括创建表、查看SRID、选择投影坐标系的方法,并提供了计算距离、查询空间关系及计算面积的SQL示例。此外,还讨论了不同投影坐标系对结果的影响,如3857和4547投影坐标系在计算面积时的差异。

参考官网:http://postgis.net/docs/manual-3.0/using_postgis_dbmanagement.html

相关函数参考:http://postgis.net/docs/manual-3.0/reference.html#Spatial_Relationships

 

The basis for the PostGIS geometry type is a plane. 
The shortest path between two points on the plane is a straight line. 
That means calculations on geometries (areas, distances, lengths, intersections, etc) 
can be calculated using cartesian mathematics and straight line vectors.

The basis for the PostGIS geographic type is a sphere. 
The shortest path between two points on the sphere is a great circle arc. 
That means that calculations on geographies (areas, distances, lengths, intersections, etc) 
must be calculated on the sphere, using more complicated mathematics. 
For more
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值