Skip to content
kml parser
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.gitignore
LICENSE
README.md
mix.exs
mix.lock
test.sh

README.md

Exkml

parse KML placemarks from a stream

Installation

If available in Hex, the package can be installed by adding exkml to your list of dependencies in mix.exs:

def deps do
  [
    {:exkml, "~> 0.1.0"}
  ]
end

Usage

File.stream!("something.kml", [], 2048)
|> Exkml.placemarks!()
|> Enum.into([])
|> IO.inspect

might print

[{[
  %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"}}
]
You can’t perform that action at this time.