only encode layers with actual feature data - closes #2