[geos-devel] distance

Sean Gillies sean.gillies at gmail.com
Fri Aug 26 13:38:41 EDT 2011

On Fri, Aug 26, 2011 at 9:50 AM, Tomas Neme <lacrymology at gmail.com> wrote:
> I'm looking at the geos API and I don't undestand what units are the
> distance parameters supposed to be..
> I'm trying to use buffer, to create a 1km circle around a Point
> defined in SRID=22186, and.. I have no clue how to do this.
> Thanks
> Tomas

Hi Tomas,

All the GEOS operations are done in a unitless Cartesian space.
Distance is unitless. For example, the distance between a point at (0,
0) and (1, 1) is sqrt(2). 22186 has units of meters, right? As long as
your distances are in meters (1000 in your case), you'll be fine.



More information about the geos-devel mailing list