Bonsanto/polygon-geohasher

Returns 'set()' when a very coarse resolution is requested

Opened this issue · 1 comments

Why is the code unwilling to generate geohashes with coarse resolution (e.g. 2 or 3 digits)? When I attempt that it returns 'set()'.

The polygon_to_geohashes function defaults to using the inner=True argument, indicating that it only takes into account geohashes that are entirely contained within a specified polygon:

>>> polygon_to_geohashes(polygon, precision=3, inner=True)
set()
>>> polygon_to_geohashes(polygon, precision=3, inner=False)
{'swb'}