🍺 BREW Explorer

← all formulae

libkml

brew install libkml v1.3.0_1 BSD-3-Clause

C++ library for parsing, generating, and manipulating KML and KMZ geographic data files.

Why you might care

Essential for GIS and mapping applications that need to read/write Google Earth and OGC-standard KML files. This is Google's reference implementation and the de facto standard used by GDAL and other geospatial tools; most open-source GIS projects depend on it. Handles both KML markup and Google Earth extensions.

Categories

Alternatives

GDAL Shapely ogr2ogr
2.5k
30-day installs · #867
8.0k
90-day · #904
32.8k
365-day · #844
64
★ GitHub stars · updated 2y ago

Runtime dependencies

Build dependencies

Links

Caveats

libkml uses boost headers. To develop with libkml, install boost.

Blurb generated by claude-haiku-4-5 on 2mo ago.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "GDAL",
    "Shapely",
    "ogr2ogr"
  ],
  "build_dependencies": [
    "boost",
    "cmake"
  ],
  "categories": [
    "library",
    "geospatial",
    "parser"
  ],
  "caveats": "libkml uses boost headers. To develop with libkml, install boost.\n",
  "conflicts_with": [],
  "dependencies": [
    "minizip",
    "uriparser"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Library to parse, generate and operate on KML",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:41:09+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "libkml",
  "github_default_branch": "master",
  "github_last_commit_at": "2024-04-20T13:45:09Z",
  "github_readme_excerpt": "![Awesome logo](bactrian128.png)\n\n[![Travis Build Status](https://travis-ci.org/libkml/libkml.png?branch=master)](https://travis-ci.org/libkml/libkml)\n[![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/github/rashadkm/libkml?branch=master\u0026svg=true)](https://ci.appveyor.com/project/rashadkm/libkml)\n[![Coverity Scan Build Status](https://scan.coverity.com/projects/4788/badge.svg)](https://scan.coverity.com/projects/4788)\n\nThis is Google\u0027s reference implementation of [OGC KML 2.2](http://www.opengeospatial.org/standards/kml). It also includes implementations of Google\u0027s `gx:` extensions used by Google Earth, as well as several utility libraries for working with other formats.\n\nAll of original documentation written by google is imported into \"wiki\" branch:\nhttps://github.com/libkml/libkml/tree/wiki\n\nThe wiki contains documents that describe:\n- An overview of the most recent release\n- Building and running the code\n- Running the unit tests\n- A general API reference guide\n- More details guides to each of the libkml modules\n\nThis libkml project was imported from code.google.com using their \"Export to Github\" tool and then all commits from google/libkml and rashadkm/libkml were merged.\n\nAll issues and wiki from code.google.com have also been imported, thanks to GoogleCodeExporter tool.\n\nThe primary motivation for the fork is the lack of alternatives to the libkml library. Most of the open source GIS projects uses this library for processing kml/kmz filesnotably GDAL, OSSIM, OTB and osgEarth. The development of the libkml project has been shelved by Google without any publicly stated reason so far.\n\nContacting the libkml maintainers on code.google.com failed to get a response. Google copied the project from code.google.com to GitHub and the GitHub repository was a little more active in terms of commits for a short while. Via the GitHub issue https://github.com/google/libkml/issues/4 another attempt to get feedback from Google was made, but other than the di",
  "github_repo": "libkml/libkml",
  "github_stars": 64,
  "github_topics": [],
  "homepage": "https://github.com/libkml/libkml",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 2536,
  "installs_365d": 32817,
  "installs_90d": 7987,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": "2026-06-20T23:47:34+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "libkml",
  "oldnames": [],
  "one_liner": "C++ library for parsing, generating, and manipulating KML and KMZ geographic data files.",
  "optional_dependencies": [],
  "rank_30d": 867,
  "rank_365d": 844,
  "rank_90d": 904,
  "raw_hash": "397aebf22fc9c06e",
  "recommended_dependencies": [],
  "revision": 1,
  "ruby_source_path": "Formula/lib/libkml.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "boost",
    "googletest",
    "pkgconf"
  ],
  "uses_from_macos": [
    "curl",
    "expat"
  ],
  "version_head": null,
  "version_stable": "1.3.0",
  "versioned_formulae": [],
  "why_use_this": "Essential for GIS and mapping applications that need to read/write Google Earth and OGC-standard KML files. This is Google\u0027s reference implementation and the de facto standard used by GDAL and other geospatial tools; most open-source GIS projects depend on it. Handles both KML markup and Google Earth extensions."
}