当我们尝试保存值时,为什么 PostGIS
不验证 GEOMETRY
字段的 longitude
和 latitude
latitude
大于 90(latitude > 90
)?
最佳答案
看看这张照片:
可以看到纬度值在[-90, 90]
之间.
理论上你可以有纬度 > 90
或 < -90
但是那个will correspond to an equivalent coordinate with an inverse longitude .
这可能会导致创建 2 个或更多具有相同坐标的不同条目,因此 PostGIS 不会验证 [-90, 90] 范围之外的纬度。
关于postgresql - Django POSTGIS 多面体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44152426/