Distance between two 3D point in geodjango (postgis)
问题 I have the following problem: I created two points, for example: SRID=3857;POINT Z (62780.8532226825 5415035.177460473 100) SRID=3857;POINT Z (62785.8532226825 5415035.177460473 70) As you can see, there is 5m difference in X coordinates, and 30m in Z coordinates. When I run a.distance(b) in django shell, it returns 5 , which is wrong. However, whenIi run in a psql shell: SELECT ST_3DDistance(a.coordinates, b.coordinates) FROM restapi_entityxyz a, restapi_entityxyz b WHERE a.external_id=