{"id":13582105,"url":"https://github.com/twpayne/go-kml","last_synced_at":"2025-05-16T12:09:12.780Z","repository":{"id":46859845,"uuid":"46381950","full_name":"twpayne/go-kml","owner":"twpayne","description":"Package kml provides convenience methods for creating and writing KML documents.","archived":false,"fork":false,"pushed_at":"2025-04-03T21:07:10.000Z","size":204,"stargazers_count":92,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-14T03:09:12.985Z","etag":null,"topics":["encoding","geospatial","gis","go","golang","google-earth","kml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twpayne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-17T23:23:29.000Z","updated_at":"2025-05-11T22:18:58.000Z","dependencies_parsed_at":"2023-01-22T11:15:26.961Z","dependency_job_id":"209aa31d-d8fb-422c-a0e6-cc82f1cb9aa9","html_url":"https://github.com/twpayne/go-kml","commit_stats":{"total_commits":205,"total_committers":3,"mean_commits":68.33333333333333,"dds":"0.019512195121951237","last_synced_commit":"5262c255b641e81e7ec46780c51784f11abdd2e4"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-kml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-kml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-kml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twpayne%2Fgo-kml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twpayne","download_url":"https://codeload.github.com/twpayne/go-kml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527087,"owners_count":22085918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["encoding","geospatial","gis","go","golang","google-earth","kml"],"created_at":"2024-08-01T15:02:25.852Z","updated_at":"2025-05-16T12:09:12.731Z","avatar_url":"https://github.com/twpayne.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go-kml\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/twpayne/go-kml/v3)](https://pkg.go.dev/github.com/twpayne/go-kml/v3)\n\nPackage `kml` provides convenience methods for creating and writing KML documents.\n\n## Key Features\n\n* Simple API for building arbitrarily complex KML documents.\n* Support for all KML elements, including Google Earth `gx:` extensions.\n* Compatibility with the standard library [`encoding/xml`](https://pkg.go.dev/encoding/xml) package.\n* Pretty (neatly indented) and compact (minimum size) output formats.\n* Support for shared `Style` and `StyleMap` elements.\n* Simple mapping between functions and KML elements.\n* Convenience functions for using standard KML icons.\n* Convenience functions for spherical geometry.\n\n## Example\n\n```go\nfunc ExampleKML() {\n    k := kml.KML(\n        kml.Placemark(\n            kml.Name(\"Simple placemark\"),\n            kml.Description(\"Attached to the ground. Intelligently places itself at the height of the underlying terrain.\"),\n            kml.Point(\n                kml.Coordinates(kml.Coordinate{Lon: -122.0822035425683, Lat: 37.42228990140251}),\n            ),\n        ),\n    )\n    if err := k.WriteIndent(os.Stdout, \"\", \"  \"); err != nil {\n        log.Fatal(err)\n    }\n}\n```\n\nOutput:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003ckml xmlns=\"http://www.opengis.net/kml/2.2\"\u003e\n  \u003cPlacemark\u003e\n    \u003cname\u003eSimple placemark\u003c/name\u003e\n    \u003cdescription\u003eAttached to the ground. Intelligently places itself at the height of the underlying terrain.\u003c/description\u003e\n    \u003cPoint\u003e\n      \u003ccoordinates\u003e-122.0822035425683,37.42228990140251\u003c/coordinates\u003e\n    \u003c/Point\u003e\n  \u003c/Placemark\u003e\n\u003c/kml\u003e\n```\n\nThere are more [examples in the\ndocumentation](https://pkg.go.dev/github.com/twpayne/go-kml/v3#pkg-examples)\ncorresponding to the [examples in the KML\ntutorial](https://developers.google.com/kml/documentation/kml_tut).\n\n## Subpackages\n\n* [`icon`](https://pkg.go.dev/github.com/twpayne/go-kml/v3/icon) Convenience functions for using standard KML icons.\n* [`sphere`](https://pkg.go.dev/github.com/twpayne/go-kml/v3/sphere) Convenience functions for spherical geometry.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwpayne%2Fgo-kml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwpayne%2Fgo-kml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwpayne%2Fgo-kml/lists"}