Geofeatures2
A lightweight, high performance geometry library in Swift.
Install / Use
/learn @tonystone/Geofeatures2README
WARNING This project is in a pre-release state. There is active work going on that will result in API changes that can/will break code while things are finished. Use with caution.
For a stable release, please use the latest release of GeoFeature 1 which can be found at https://github.com/tonystone/geofeatures.
GeoFeatures 
<a href="https://github.com/tonystone/geofeatures2/" target="_blank">
<img src="https://img.shields.io/badge/Platforms-ios%20%7C%20osx%20%7C%20watchos%20%7C%20tvos%20%7C%20linux%20-lightgray.svg?style=flat" alt="Platforms: ios | osx | watchos | tvos | Linux">
</a>
<a href="https://github.com/tonystone/geofeatures2/" target="_blank">
<img src="https://img.shields.io/badge/Compatible-CocoaPods%20%7C%20Swift%20PM-lightgray.svg?style=flat" alt="Compatible: CocoaPods | Swift PM">
</a>
<a href="https://github.com/tonystone/geofeatures2/" target="_blank">
<img src="https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat" alt="Swift 5.0">
</a>
<a href="https://github.com/tonystone/geofeatures2/" target="_blank">
<img src="https://img.shields.io/cocoapods/v/GeoFeatures.svg?style=flat" alt="Pod Version">
</a>
<a href="https://github.com/tonystone/geofeatures2/" target="_blank">
<img src="https://travis-ci.org/tonystone/geofeatures2.svg?branch=master" alt="Build Status">
</a>
<a href="https://codecov.io/gh/tonystone/geofeatures2">
<img src="https://codecov.io/gh/tonystone/geofeatures2/branch/master/graph/badge.svg?token=pR1BEC4A1s" alt="Codecov" />
</a>
Introduction
GeoFeatures is a lightweight, high performance geometry library for Swift. It supports the full set of geometric primitives such as Point, Polygon, and LineString as well as collection classes such as MultiPoint, MultiPolygon,and MultiLineString.

Features
- [x] Easy to use.
- [x] Point, MultiPoint, LineString, LinearRing, MultiLineString, Polygon, MultiPolygon, Box and GeometryCollection implementations.
- [x] WKT (Well-Known-Text) input and output.
- [x] GeoJSON input and output.
- [x] Swift: Written in pure Swift.
- [x] Open Sourced under the the Apache License, Version 2.0.
Sources and Binaries
You can find the latest sources and binaries on github.
Installation (Swift Package Manager)
GeoFeatures supports dependency management via Swift Package Manager on OSX and Linux.
Please see Swift Package Manager for further information.
Installation (CocoaPods)
GeoFeatures is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GeoFeatures"
See the "Using CocoaPods" guide for more information.
Communication and Contributions
- If you found a bug, and can provide steps to reliably reproduce it, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute
- Review Documentation/GeoFeatures-Development.
- Fork it! GeoFeatures repository
- Create your feature branch off of master:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :-)
For instructions on how to build GeoFeatures for development, please see Documentation/GeoFeatures-Development.
Minimum Requirements
Build Environment
| Platform | Swift | Swift Build | Xcode | |:--------:|:-----:|:----------:|:------:| | Linux | 5.0| ✔ | ✘ | | OSX | 5.0| ✔ | Xcode 11.3 |
Minimum Runtime Version
| iOS | OS X | Linux | |:---:|:-----:|:------------:| | 8.0 | 10.10 | Ubuntu 14.04, 16.04, 16.10 |
Note:
To build and run on Linux we have a a preconfigure Vagrant file located at https://github.com/tonystone/vagrant-swift
See the README for instructions.
License
GeoFeatures is released under the Apache License, Version 2.0
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate 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
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
