Skip to main content

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 square radius, azimuth_angle Square with a distance center-to-corner radius and rotated by azimuth_angle
triangle triangle radius, azimuth_angle Square with a distance center-to-corner radius and rotated by azimuth_angle
hex hexagon radius, azimuth_angle Hexagon with a distance center-to-vertex radius and rotated by azimuth_angle
13-gon 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 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)

triangle

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)

Source distribution for geobuffers 0.1.2
File Size Uploaded
geobuffers-0.1.2.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geobuffers 0.1.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page