geobuffers - a minipackage for computing areas around points
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file geobuffers-0.1.2.tar.gz
.
File metadata
- Download URL: geobuffers-0.1.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59744fc2c5795cb1249b31002a091c6c6cc7d1e3aac7bcbf54c36b2abfaf005e |
|
MD5 | 308951e8c346be5c7dec5fa80d39d04b |
|
BLAKE2b-256 | 219808cc9d4bfc9e74b8a18cb97b5b392b0f0c14eefd5a2cabe150b956d3ac18 |
File details
Details for the file geobuffers-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: geobuffers-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccb0d3018f45a5a84eb5969f421d773f58a9dd7f4c839a0ec2477f916f8692d |
|
MD5 | 6feae345f0938078a979c7b93cd3c65d |
|
BLAKE2b-256 | 9e353978118602decaed232376e6ebe8fe35fd1d1ed6c4e57145a8c4d6010b8f |