Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
/ exkml Public archive
forked from socrata/exkml

kml parser

License

Notifications You must be signed in to change notification settings

felt/exkml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.stream!()
|> 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"}}
]

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 99.7%
  • Shell 0.3%