   (:require [com.lemondronor.orbital-detector :as orbdet]
             [com.lemonodor.gflags :as gflags]
             [clojure.data.xml :as xml]
-            [clojure.string :as string])
+            [clojure.string :as string]
+            [geo.spatial :as spatial])
   (:import ())
   (:gen-class))
 

            [:coordinates
             (string/join
              "\n"
              (map #(str (:lon (:position %))
                         ","
                         (:lat (:position %))
                         ","
                         (feet-to-meters (:altitude %)))
                   rs))]]])
        groups)]])))



    (->> args
         (mapcat orbdet/read-log)
         (filter-icaos (gflags/flags :icaos))
         (filter has-position?)
         reports2path
         xml/emit-str
         println)))
