<div dir="ltr">Steve,<div>Thanks - that's the problem, I forgot about geography. Once cast as a geography the values are accurate. </div><div><br></div><div>Clifford</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 12, 2020 at 5:33 PM Stephen Woodbridge <<a href="mailto:stephenwoodbridge37@gmail.com">stephenwoodbridge37@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ST_Area and ST_length are computed in units of the object. for WGS84 <br>
that is degrees. If you want meters then cast the gem to a geography:<br>
<br>
st_area(geom::geography)<br>
st_length(geom::geography)<br>
<br>
and for length you have other function that compute it in terms of spheriod.<br>
<br>
-Steve<br>
<br>
On 6/12/2020 7:30 PM, Clifford Snow wrote:<br>
> When I run st_area(geom) against a geom in WGS84, my understanding is <br>
> that postgis returns the area in square meters. It's not. Instead it <br>
> returns something much smaller. The areas I'm interested in are small <br>
> bounding boxes so spherical measurements should be all that different.<br>
><br>
> I verified that the table SRID is 4326. The boxes all display <br>
> correctly in both Pgadmin4 and QGIS.<br>
><br>
> For example, a bbox around a house returns 9.84003999925341e-09. Yet <br>
> QGIS calculates it as 113.73 sqm. The QGIS calculation seems to be <br>
> more accurate.<br>
><br>
> I know I'm doing something very wrong. Any help would be appreciated.<br>
><br>
> Best,<br>
> Clifford<br>
><br>
> -- <br>
> @osm_washington<br>
> <a href="http://www.snowandsnow.us" rel="noreferrer" target="_blank">www.snowandsnow.us</a> <<a href="https://www.snowandsnow.us" rel="noreferrer" target="_blank">https://www.snowandsnow.us</a>><br>
> OpenStreetMap: Maps with a human touch<br>
><br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>@osm_washington<br></div><div><a href="https://www.snowandsnow.us" target="_blank">www.snowandsnow.us</a></div><div>OpenStreetMap: Maps with a human touch</div></div></div></div></div></div></div>