<div dir="ltr"><div>It depends on the type of your column. If it's standard "geometry", then it's a straight line in the 2D space defined by your coordinate system. If it's "geography", then it's a curve, aka geodesic or great circle.</div><div><br></div><div>From the manual:</div><div><br></div><div>4.2. PostGIS Geography Type</div><div><a href="https://postgis.net/docs/using_postgis_dbmanagement.html#PostGIS_Geography">https://postgis.net/docs/using_postgis_dbmanagement.html#PostGIS_Geography</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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 accurate measurements, the calculations must take the actual spheroidal shape of the world into account, and the mathematics becomes very complicated indeed.</blockquote><div><br></div><div>Note that many data formats (outside of PostGIS, e.g. Shapefile), do not explicitly define this interpretation. See this Stack Exchange question:</div><div><br></div><div>Are long lines in shapefiles to be considered geodesics or straight lines in the 2D latlong space?</div><div><a href="https://gis.stackexchange.com/q/25670/7599">https://gis.stackexchange.com/q/25670/7599</a></div><div><br></div><div><br></div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'd like to know how PostGIS interprets the curve between two points on the earth, in the context of spatial analysis. Ex, the NW and NE corners of the State of Colorado - is it a 'straight line' in some projection, or a geodetic curve or the intersection of a normal plane with the surface (as in MS Sequel). Possibly, the function called implies this (2D VS. 3D).<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Redirecting to online documentation or discussion would be welcome.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Best regards,<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Jim Walseth</blockquote><div> </div></div></div>