Package com.macrofocus.molap.exporter
Class GeoJSONDataFrameWriter
- java.lang.Object
-
- com.macrofocus.molap.exporter.AbstractDataFrameWriter
-
- com.macrofocus.molap.exporter.GeoJSONDataFrameWriter
-
- All Implemented Interfaces:
DataFrameWriter
public class GeoJSONDataFrameWriter extends AbstractDataFrameWriter
-
-
Constructor Summary
Constructors Constructor Description GeoJSONDataFrameWriter(java.io.OutputStreamWriter writer, int columnCount, java.lang.String newLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
includeType()
void
nextColumn(boolean hasMore)
void
nextRow()
protected void
write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.Coordinate coord)
protected void
write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.Coordinate[] coord)
protected void
write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.CoordinateSequence coordseq)
protected void
write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.Polygon p)
void
write(java.io.Writer output, org.locationtech.jts.geom.Geometry geom)
void
writeCell(java.lang.Object value, DataFrame dataFrame, java.lang.Object rowKey, java.lang.Object columnKey)
void
writeColumnName(java.lang.String name, boolean hasMore)
void
writeType(java.lang.Class value, boolean hasMore)
-
Methods inherited from class com.macrofocus.molap.exporter.AbstractDataFrameWriter
dateToString, dateToString, numberToString, setTimeZone, start
-
-
-
-
Method Detail
-
writeColumnName
public void writeColumnName(java.lang.String name, boolean hasMore) throws java.io.IOException
- Throws:
java.io.IOException
-
includeType
public boolean includeType()
-
writeType
public void writeType(java.lang.Class value, boolean hasMore) throws java.io.IOException
- Throws:
java.io.IOException
-
writeCell
public void writeCell(java.lang.Object value, DataFrame dataFrame, java.lang.Object rowKey, java.lang.Object columnKey) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(java.io.Writer output, org.locationtech.jts.geom.Geometry geom) throws java.io.IOException
- Throws:
java.io.IOException
-
write
protected void write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.Coordinate coord) throws java.io.IOException
- Throws:
java.io.IOException
-
write
protected void write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.CoordinateSequence coordseq) throws java.io.IOException
- Throws:
java.io.IOException
-
write
protected void write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.Coordinate[] coord) throws java.io.IOException
- Throws:
java.io.IOException
-
write
protected void write(java.io.Writer output, java.text.NumberFormat nf, org.locationtech.jts.geom.Polygon p) throws java.io.IOException
- Throws:
java.io.IOException
-
nextColumn
public void nextColumn(boolean hasMore) throws java.io.IOException
- Throws:
java.io.IOException
-
nextRow
public void nextRow() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-