Build a circular sector polygon feature spanning the angle between two given bearings, a center point and a radius. A pizza piece! 🍕

Related tags

sectr
Overview

sectr 🍕

Build a circular sector polygon feature (pizza piece 😅 ) spanning the angle between two given bearings, a radius and a center point.

installation

go get -u github.com/iwpnd/sectr

usage

Logo

package main

import (
  "fmt"

  "github.com/iwpnd/sectr"
  )

func main() {
	p := sectr.Point{Lat: 52.25, Lng: 13.37}
	sector := sectr.NewSector(p, 100, 0, 90)

  fmt.Printf("%s", sector.JSON())
}

>> {
  "type": "Polygon",
  "coordinates": [
    [
      [13.37,52.25],
      [13.37,52.25089932],
      [13.37012803,52.2508959],
      [13.3702803,52.2508828],
      [13.37040491,52.25086448],
      [13.37055029,52.25083383],
      [13.37068965,52.25079405],
      [13.37080006,52.25075423],
      [13.37092446,52.2506989],
      [13.37103872,52.25063591],
      [13.3711253,52.25057807],
      [13.37121783,52.25050289],
      [13.37128479,52.25043599],
      [13.37135219,52.25035138],
      [13.37140478,52.25026293],
      [13.37143686,52.25018697],
      [13.37146091,52.250094],
      [13.37146896,52.24999999],
      [13.37,52.25]
    ]
  ]
}

License

MIT

Acknowledgement

Chris Veness for refreshing my university left-overs with this blog moveable-type

Maintainer

Benjamin Ramser - @iwpnd

Project Link: https://github.com/iwpnd/sectr

Releases(v0.1.2)
  • v0.1.2(Sep 4, 2021)

  • v0.1.1(Sep 4, 2021)

  • v0.1.0(Sep 4, 2021)

    image

    sectr 🍕

    Build a circular sector (pizza piece 😅 ) spanning the angle between two given bearings, a radius and a center point.

    installation

    go get -u github.com/iwpnd/sectr
    

    usage

    package main
    
    import (
      "fmt"
    
      "github.com/iwpnd/sectr"
      )
    
    func main() {
    	p := sectr.Point{Lat: 52.25, Lng: 13.37}
    	sector := sectr.NewSector(p, 100, 0, 90)
    
      fmt.Printf("%s", sector.JSON())
    }
    
    >> {
      "type": "Polygon",
      "coordinates": [
        [
          [13.37,52.25],
          [13.37,52.25089932],
          [13.37012803,52.2508959],
          [13.3702803,52.2508828],
          [13.37040491,52.25086448],
          [13.37055029,52.25083383],
          [13.37068965,52.25079405],
          [13.37080006,52.25075423],
          [13.37092446,52.2506989],
          [13.37103872,52.25063591],
          [13.3711253,52.25057807],
          [13.37121783,52.25050289],
          [13.37128479,52.25043599],
          [13.37135219,52.25035138],
          [13.37140478,52.25026293],
          [13.37143686,52.25018697],
          [13.37146091,52.250094],
          [13.37146896,52.24999999],
          [13.37,52.25]
        ]
      ]
    }
    

    License

    MIT

    Acknowledgement

    Chris Veness for refreshing my university left-overs with this blog moveable-type

    Maintainer

    Benjamin Ramser - @iwpnd

    Project Link: https://github.com/iwpnd/sectr

    Source code(tar.gz)
    Source code(zip)
Owner
Ben
geographer turned spatial engineer turned data-something turned software developer
Ben
hack-browser-data is an open-source tool that could help you decrypt data from the browser.

hack-browser-data is an open-source tool that could help you decrypt data ( password|bookmark|cookie|history|credit card|download

idiotc4t 78 Sep 22, 2021
Decrypt passwords/cookies/history/bookmarks from the browser.

hack-browser-data is an open-source tool that could help you decrypt data ( passwords|bookmarks|cookies|history ) from the browser. It supports the most popular browsers on the market and runs on Windows, macOS and Linux.

ᴍᴏᴏɴD4ʀᴋ 3.6k Sep 24, 2021
chia深入研究以及一些工具(WIP)

深入理解CHIA before starting 由于最近针对chia做了一次修改,所以对chia进行了一些研究,梳理一下,共同研究 sk: 私钥 pk: 公钥,可以通过私钥获取 一起贡献 一起来打造中文共识文档 https://docs.google.com/document/d/1e94Hd

chuwt 71 Sep 17, 2021
sops is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP

sops is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP. (demo)

Mozilla 8.2k Sep 18, 2021
Windows helpers for GnuPG tools suite - OpenSSH, WSL 1, WSL2, Cygwin, MSYS2, Git4Windows, Putty...

win-gpg-agent Simple set of tools to make working with GPG and SSH keys easier on Windows 10. Windows 10 has ssh-agent service (with support for persi

rupor 65 Sep 17, 2021
A phoenix Chain client based on the go-ethereum fork,the new PoA consensus engine is based on the VRF algorithm.

Phoenix Official Golang implementation of the Phoenix protocol. !!!The current version is for testing and developing purposes only!!! Building the sou

g_master 5 Sep 10, 2021
Community-run technology powering the cryptocurrency, and decentralized applications on TrustFi Network

Go TrustFi-Ethereum Official Golang implementation of the TrustFi-Ethereum protocol. Automated builds are available for stable releases and the unstab

TrustFi Network 786 May 26, 2021
check-cert: Go-based tooling to check/verify certs

check-cert: Go-based tooling to check/verify certs

Adam Chalkley 5 Sep 20, 2021
Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.

Themis provides strong, usable cryptography for busy people General purpose cryptographic library for storage and messaging for iOS (Swift, Obj-C), An

Cossack Labs 1.4k Sep 25, 2021
A dead simple tool to sign files and verify digital signatures.

minisign minisign is a dead simple tool to sign files and verify signatures. $ minisign -G

Andreas Auernhammer 39 Sep 7, 2021
Split and distribute your private keys securely amongst untrusted network

cocert An experimental tool for splitting and distributing your private keys safely* cocert, generates ECDSA - P521 key and uses a technique known as

Furkan Türkal 134 Sep 8, 2021
A simple and lightweight encrypted password manager written in Go.

Osiris Password Manager A simple and lightweight encrypted password manager written in Go

null 33 May 31, 2021
Cryptographic Addition Chain Generation in Go

Cryptographic Addition Chain Generation in Go addchain generates short addition chains for exponents of cryptographic interest with results rivaling t

Michael McLoughlin 115 Sep 7, 2021
Yet another Binance Smart Chain client based on TrustFi Network

TrustFi Smart Chain The goal of TrustFi Smart Chain is to bring programmability and interoperability to Binance Chain. In order to embrace the existin

TrustFi Network 19 Mar 27, 2021
Get any cryptocurrencies ticker and trade data in real time from multiple exchanges and then save it in multiple storage systems.

Cryptogalaxy is an app which will get any cryptocurrencies ticker and trade data in real time from multiple exchanges and then saves it in multiple storage systems.

Pavan Shetty 51 Sep 17, 2021
Automatic HTTPS for any Go program: fully-managed TLS certificate issuance and renewal

Easy and Powerful TLS Automation The same library used by the Caddy Web Server Caddy's automagic TLS features—now for your own Go programs—in one powe

Caddy 3.7k Sep 20, 2021
:money_with_wings: CLI app for interacting with paymail service providers

Paymail Inspector CLI application for interacting with paymail service providers Table of Contents Installation Commands Documentation Examples & Test

MrZ 34 Sep 20, 2021
A plugin that turn hashicorp vault into blockchain wallet.

dq-vault - Hashicorp vault BTC/ETH plugin This vault plugin stores a user's mnemonic inside vault in an encrypted manner. The plugin uses this stored

Deqode 3 Aug 9, 2021