# GEOSwift/GEOSwift

The Swift Geometry Engine.

Repository: https://github.com/GEOSwift/GEOSwift
Canonical: https://ross.abutalabs.com/products/geoswift
Language: Swift
License: MIT
License Family: permissive
Topics: geojson, cartography, maps, geo, geospatial, swift, swift-package, swift-library, swift-linux, apple, ios, macos, watchos, tvos, visionos, xcode, gis
Last push: 2025-11-09T19:17:58+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 51, release rhythm 28, longevity 100
- inputs: {"age_days": 4122, "days_push": 297, "days_rel": 530, "gap_med": 36, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1504, forks 184 (observed 2026-08-28T04:04:54.784123+00:00)

## What it is
A type-safe Swift library wrapping the OSGeo GEOS library for handling geometric objects (points, linestrings, polygons) and topological operations like intersections and overlaps. It supports WKT/WKB reading and writing, GeoJSON via Codable, and multiple coordinate types (XY, XYZ, XYM, XYZM).

## Use cases
- parse geojson in swift
- compute polygon intersection on ios
- read wkt geometry in swift
- check if point is inside polygon swift
- convert wkb to geometry swift
- geospatial operations in ios app

## When to choose
- you need robust geometry and topology operations in Swift on Apple platforms or Linux
- you need GeoJSON, WKT, or WKB parsing with type-safe Swift APIs

## When to avoid
- you need map rendering or UI integration - use GEOSwiftMapKit or GEOSwiftMapboxGL instead
- you cannot accept LGPL 2.1 dynamic-linking constraints of the underlying GEOS library

## Facets
- artifact type: library
- maturity: active
- function: geospatial, parser, serialization
- domain: cross-platform
- platform: -
- tags: geojson, wkt, wkb, geos, gis, geometry, topology, swift-package-manager, geospatial, maps, ios, macos, watchos, tvos, linux, swift

## Member repositories
- GEOSwift/GEOSwift (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.784123+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:44.075959+00:00, confidence not recorded.
  - readme: https://github.com/GEOSwift/GEOSwift (fetched 2026-08-28T04:04:54.784123+00:00, sha 9c2a7fd117ef)
- Data as of 2026-08-30T08:39:29.467469+00:00.
