Class KMLDemoWriter
java.lang.Object
org.opensextant.extractors.geo.social.KMLDemoWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
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 Summary
Modifier and TypeFieldDescriptionprotected org.opensextant.giscore.output.IGISOutputStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
write
(org.opensextant.data.social.Tweet t, GeoInference a) Save off a tweet and its geo
-
Field Details
-
outputStream
protected org.opensextant.giscore.output.IGISOutputStream outputStream
-
-
Constructor Details
-
KMLDemoWriter
- Throws:
IOException
-
-
Method Details
-
write
Save off a tweet and its geo- Parameters:
t
- tweeta
- annotation which must have a coordinate "lat", "lon"
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-