https://github.com/socrata/exkml
kml parser
https://github.com/socrata/exkml
engineering socrata-platform
Last synced: 4 months ago
JSON representation
kml parser
- Host: GitHub
- URL: https://github.com/socrata/exkml
- Owner: socrata
- License: apache-2.0
- Created: 2017-09-12T00:03:22.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2022-06-01T15:33:22.000Z (about 4 years ago)
- Last Synced: 2025-10-21T15:36:43.537Z (8 months ago)
- Topics: engineering, socrata-platform
- Language: Elixir
- Size: 14.9 MB
- Stars: 7
- Watchers: 24
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Exkml
parse KML placemarks from a stream
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `exkml` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:exkml, "~> 0.1.0"}
]
end
```
## Usage
```elixir
File.stream!("something.kml", [], 2048)
|> Exkml.stream!()
|> Enum.into([])
|> IO.inspect
```
might print
```elixir
[{[
%Multiline{lines: [
%Line{points: [
%Point{x: 101.0, y: 0.0},
%Point{x: 101.0, y: 1.0}]}]},
%Multipoint{points: [
%Point{x: 102.0, y: 0.5}]}],
%{"a_string" => "first value"}}
]
```