I am building an application where I need to build a radius n meters around a given lat, lon. the st_buffer overload that uses a geography type for the first parameter would work fine, however, I am using an ORM that does not provide the ability to cast a geom to geography.
I tried setting the SRID to 4326 but it still outputs the circle in much larger units.
Is there some calculation/formula I can use to convert n meters to whatever units the geometry type uses?
For geography this may not behave as expected if object is sufficiently large that it falls between two UTM zones or crosses the datelinehttps://postgis.net/docs/ST_Buffer.html – ziggy Nov 08 '19 at 18:34