Class KMLDemoWriter

java.lang.Object
org.opensextant.extractors.geo.social.KMLDemoWriter
All Implemented Interfaces:
Closeable, AutoCloseable

public class KMLDemoWriter extends Object implements Closeable
A cleaner approach to outputting geocoding data to KML using GISCore. See also Xponents GISDataFormatter, FormatterFactory.getInstance("KML") See also Xponents-Examples where the concept of GIS outputs is somewhat generalized, but not very flexible.
Author:
ubaldino
  • Field Details

    • outputStream

      protected org.opensextant.giscore.output.IGISOutputStream outputStream
  • Constructor Details

  • Method Details

    • write

      public void write(org.opensextant.data.social.Tweet t, GeoInference a)
      Save off a tweet and its geo
      Parameters:
      t - tweet
      a - annotation which must have a coordinate "lat", "lon"
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException