xoa.core.geo.Circle

xoa.core.geo.Circle#

class xoa.core.geo.Circle(lon, lat, dist, radius=6371000.0)[source]#

A circle of great circle distance around a point

Parameters:
  • lon (float) – Center

  • lat (float) – Center

  • dist (float) – Distance, in the units of radius

  • radius (float) – Radius of the sphere, which defaults to the earth radius in meters

__init__(lon, lat, dist, radius=6371000.0)[source]#

Methods

bounds([grow])

Get lonmin, lonmax, latmin, latmax, for a radius grown by an angle in radians

contains(lon, lat[, margin])

Boolean array of the points that are in the circle, grown by an optional margin

Attributes