protected void writePoint(double[] coordinates, ByteBuffer output) { for (double coordinate : coordinates) { output.putDouble(coordinate); } }