Proj4rb
Proj4rb is a ruby binding for the Proj carthographic projections library.
Install / Use
/learn @cfis/Proj4rbREADME
proj4rb
Ruby bindings for the Proj coordinate transformation library. The Proj library supports converting coordinates between a number of different coordinate systems and projections.
Installation
Next install the Proj library. This varies per system, but you want to install the latest version possible. Once installed, you'll need to make sure that libproj is on your operating system's load path.
Then install the gem:
gem install proj4rb
Quick Start
require 'proj'
# Create a transformation between two coordinate systems
transform = Proj::Transformation.new('EPSG:31467', 'EPSG:4326')
# Transform a coordinate
from = Proj::Coordinate.new(x: 5428192.0, y: 3458305.0, z: -5.1790915237)
to = transform.forward(from)
puts "lat: #{to.x}, lon: #{to.y}"
Documentation
Full documentation is available at https://cfis.github.io/proj4rb/ including:
Environment Variables
See Configuration for details.
PROJ_LIB_PATH- Override the path to thelibprojshared library.PROJ_DATA- Path to the folder containingproj.db(Proj 6+). Must be set before Ruby launches.
License
proj4rb is released under the MIT license.
Authors
The proj4rb Ruby bindings were started by Guilhem Vellut with most of the code written by Jochen Topf. Charlie Savage ported the code to Windows, added the Windows build infrastructure, rewrote the code to use FFI and then ruby-bindgen, and updated it to support Proj version 5 through 9.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
