@Override public void close() throws IOException { if (writer != null) { writer.endFeatureCollection(); writer.flush(); } writer = null; }
@Override protected void doWrite() throws IOException { writer.feature(next); }
public GeoJSONAppendCursor(Writer out) throws IOException { super(Mode.APPEND); writer = new GeoJSONWriter(out); writer.featureCollection(); }