| 255 | |
| 256 | |
| 257 | void TextWriter::processOneCSV(PointRef& point) |
| 258 | { |
| 259 | for (auto di = m_dims.begin(); di != m_dims.end(); ++di) |
| 260 | { |
| 261 | if (di != m_dims.begin()) |
| 262 | *m_stream << m_delimiter; |
| 263 | m_stream->precision(di->precision); |
| 264 | *m_stream << point.getFieldAs<double>(di->id); |
| 265 | } |
| 266 | *m_stream << m_newline; |
| 267 | } |
| 268 | |
| 269 | void TextWriter::processOneGeoJSON(PointRef& point) |
| 270 | { |