geobuffers
This repository contains code that allows simple definitions of polygons defined around a coordinate of interest using geodesic distances. Some of the functionality can be reproduced with geopandas buffer functionality.
Instead, all methods here rely on pyproj.Geod geodetic computations using Clarke 1866 Ellipsoid.
Available shapes
| Name | Parameters | Description | |
|---|---|---|---|
| square | radius, azimuth_angle |
Square with a distance center-to-corner radius and rotated by azimuth_angle |
|
| triangle | radius, azimuth_angle |
Square with a distance center-to-corner radius and rotated by azimuth_angle |
|
| hexagon | radius, azimuth_angle |
Hexagon with a distance center-to-vertex radius and rotated by azimuth_angle |
|
| regpol | n, radius, azimuth_angle |
Regular polygon with n vertices radius metres away from the center, with first vertex at azimuth of azimuth_angle degrees |
|
| fov | radius, azimuth_angle, fov_angle |
Field of view traingle at distance radius, pointing towards angle azimuth_angle with angular width of fov_angle degrees |
Installation
pip install geobuffers
Example Usage
import geobuffers as gbf
from shapely import Point
my_point = Point([1.0, -1.0])
gbf.regpol(my_point,3)
The key feature here is that you get to define the radius in metres and the functions return a polygon with known coordinates, without need to worry about reprojecting.
Metadata
Release files for geobuffers 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| geobuffers-0.1.2.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geobuffers-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / geobuffers-0.1.2.tar.gz
| Download URL | geobuffers-0.1.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59744fc2c5795cb1249b31002a091c6c6cc7d1e3aac7bcbf54c36b2abfaf005e
|
|
BLAKE2b-256 checksum How to use checksums |
219808cc9d4bfc9e74b8a18cb97b5b392b0f0c14eefd5a2cabe150b956d3ac18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / geobuffers-0.1.2-py3-none-any.whl
| Download URL | geobuffers-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ccb0d3018f45a5a84eb5969f421d773f58a9dd7f4c839a0ec2477f916f8692d
|
|
BLAKE2b-256 checksum How to use checksums |
9e353978118602decaed232376e6ebe8fe35fd1d1ed6c4e57145a8c4d6010b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|